CVE-2024-35794
Description
In the Linux kernel, the following vulnerability has been resolved:dm-raid: really frozen sync_thread during suspend1) commit f52f5c71f3d4 (md: fix stopping sync thread) remove MD_RECOVERY_FROZEN from __md_stop_writes() and doesnt realize that dm-raid relies on __md_stop_writes() to frozen sync_thread indirectly. Fix this problem by adding MD_RECOVERY_FROZEN in md_stop_writes(), and since stop_sync_thread() is only used for dm-raid in this case, also move stop_sync_thread() to md_stop_writes().2) The flag MD_RECOVERY_FROZEN doesnt mean that sync thread is frozen, it only prevent new sync_thread to start, and it cant stop the running sync thread; In order to frozen sync_thread, after seting the flag, stop_sync_thread() should be used.3) The flag MD_RECOVERY_FROZEN doesnt mean that writes are stopped, use it as condition for md_stop_writes() in raid_postsuspend() doesnt look correct. Consider that reentrant stop_sync_thread() do nothing, always call md_stop_writes() in raid_postsuspend().4) raid_message can set/clear the flag MD_RECOVERY_FROZEN at anytime, and if MD_RECOVERY_FROZEN is cleared while the array is suspended, new sync_thread can start unexpected. Fix this by disallow raid_message() to change sync_thread status during suspend.Note that after commit f52f5c71f3d4 (md: fix stopping sync thread), thetest shell/lvconvert-raid-reshape.sh start to hang in stop_sync_thread(),and with previous fixes, the test wont hang there anymore, however, thetest will still fail and complain that ext4 is corrupted. And with thispatch, the test wont hang due to stop_sync_thread() or fail due to ext4is corrupted anymore. However, there is still a deadlock related todm-raid456 that will be fixed in following patches.
Risk Information
Associated Vulnerability
| Vulnerability | OS Platform |
|---|---|
| Linux kernel (USN-6816-1) linux-image-6.8.0-1006-ibm_6.8.0-1006.6_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-6.8.0-35-generic_6.8.0-35.35+1_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-6.8.0-35-lowlatency_6.8.0-35.35.1_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-generic_6.8.0-35.35_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-generic-hwe-24.04_6.8.0-35.35_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-ibm_6.8.0-1006.6_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-ibm-classic_6.8.0-1006.6_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-ibm-lts-24.04_6.8.0-1006.6_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-kvm_6.8.0-35.35_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-lowlatency_6.8.0-35.35.1_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-virtual_6.8.0-35.35_amd64.deb | Linux |
| Linux kernel (USN-6816-1) linux-image-virtual-hwe-24.04_6.8.0-35.35_amd64.deb | Linux |
| Linux kernel for Amazon Web Services (AWS) systems (USN-6817-1) linux-image-6.8.0-1008-gcp_6.8.0-1008.9_amd64.deb | Linux |
| Linux kernel for Amazon Web Services (AWS) systems (USN-6817-1) linux-image-6.8.0-1009-aws_6.8.0-1009.9_amd64.deb | Linux |
| Linux kernel for Amazon Web Services (AWS) systems (USN-6817-1) linux-image-aws_6.8.0-1009.9_amd64.deb | Linux |
| Linux kernel for Amazon Web Services (AWS) systems (USN-6817-1) linux-image-gcp_6.8.0-1008.9_amd64.deb | Linux |
| Linux kernel for OEM systems (USN-6817-2) linux-image-6.8.0-1006-oem_6.8.0-1006.6_amd64.deb | Linux |
| Linux kernel for OEM systems (USN-6817-2) linux-image-oem-24.04_6.8.0-1006.6+1_amd64.deb | Linux |
| Linux kernel for OEM systems (USN-6817-2) linux-image-oem-24.04a_6.8.0-1006.6+1_amd64.deb | Linux |
| Linux kernel for Microsoft Azure Cloud systems (USN-6817-3) linux-image-6.8.0-1004-gke_6.8.0-1004.7_amd64.deb | Linux |
| Linux kernel for Microsoft Azure Cloud systems (USN-6817-3) linux-image-6.8.0-1008-azure_6.8.0-1008.8_amd64.deb | Linux |
| Linux kernel for Microsoft Azure Cloud systems (USN-6817-3) linux-image-6.8.0-1008-azure-fde_6.8.0-1008.8_amd64.deb | Linux |
| Linux kernel for Microsoft Azure Cloud systems (USN-6817-3) linux-image-azure_6.8.0-1008.8_amd64.deb | Linux |
| Linux kernel for Microsoft Azure Cloud systems (USN-6817-3) linux-image-azure-fde_6.8.0-1008.8_amd64.deb | Linux |
| Linux kernel for Microsoft Azure Cloud systems (USN-6817-3) linux-image-gke_6.8.0-1004.7_amd64.deb | Linux |
| Linux kernel for Oracle Cloud systems (USN-6878-1) linux-image-6.8.0-1006-oracle_6.8.0-1006.6_amd64.deb | Linux |
| Linux kernel for Oracle Cloud systems (USN-6878-1) linux-image-oracle_6.8.0-1006.6_amd64.deb | Linux |
| (RHSA-2024:9315)Moderate: security update rv-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update rtla-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update python3-perf-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update perf-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-uki-virt-addons-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-uki-virt-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-tools-libs-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-tools-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-modules-extra-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-modules-core-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-modules-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-headers-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-doc-5.14.0-503.11.1.el9_5.noarch.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-devel-matched-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-devel-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-debug-uki-virt-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-debug-modules-extra-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-debug-modules-core-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-debug-modules-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-debug-devel-matched-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-debug-devel-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-debug-core-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-debug-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-core-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-abi-stablelists-5.14.0-503.11.1.el9_5.noarch.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update kernel-5.14.0-503.11.1.el9_5.x86_64.rpm | Linux |
| (RHSA-2024:9315)Moderate: security update bpftool-7.4.0-503.11.1.el9_5.x86_64.rpm | Linux |
Patch Details
No records foundReferences
https://nvd.nist.gov/vuln/detail/CVE-2023-1234
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1234