CVE-2024-35794: dm-raid: really frozen sync_thread during suspend
In the Linux kernel, the following vulnerability has been resolved:
dm-raid: really frozen sync_thread during suspend
1) commit f52f5c71f3d4 ("md: fix stopping sync thread") remove
MD_RECOVERY_FROZEN from __md_stop_writes() and doesn't 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 doesn't mean that sync thread is frozen,
it only prevent new sync_thread to start, and it can't 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 doesn't mean that writes are stopped, use
it as condition for md_stop_writes() in raid_postsuspend() doesn't
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"), the
test shell/lvconvert-raid-reshape.sh start to hang in stop_sync_thread(),
and with previous fixes, the test won't hang there anymore, however, the
test will still fail and complain that ext4 is corrupted. And with this
patch, the test won't hang due to stop_sync_thread() or fail due to ext4
is corrupted anymore. However, there is still a deadlock related to
dm-raid456 that will be fixed in following patches.
Security readout for executives and security teams
Plain-English summary
CVE-2024-35794 is a Linux kernel dm-raid suspend bug. During suspend, the RAID synchronization thread could keep running or restart unexpectedly, causing hangs and filesystem corruption in kernel testing. The sources do not provide CVSS, broad exploit evidence, or distribution-specific package status.
Executive priority
Treat as targeted operational risk, not confirmed internet-scale exploitation. Patch promptly where Linux dm-raid protects important data or availability, because the documented failure mode includes hangs and filesystem corruption.
Technical view
The fix restores correct MD_RECOVERY_FROZEN and stop_sync_thread handling in md_stop_writes(), always stops writes during raid_postsuspend(), and blocks raid_message changes to sync thread state while suspended. The kernel note says prior behavior could hang lvconvert RAID reshape testing and corrupt ext4.
Likely exposure
Exposure is most relevant to Linux systems using dm-raid, especially suspend/resume or RAID reshape workflows. Distribution exposure depends on vendor backports and kernel package versions, which are not provided in the source bundle.
Exploitation context
No active exploitation is supported by the provided sources, and the CVE is not marked KEV. The available evidence describes a kernel reliability and data-integrity bug found through testing, not a public weaponized attack path.
Researcher notes
Evidence is limited to the CVE record and upstream stable commit references. No CWE, CVSS, exploit status, or distribution matrix is provided. Validate exact affected and fixed ranges through the relevant distribution kernel advisory.
Mitigation direction
Check Linux distribution advisories for CVE-2024-35794 kernel fixes.
Prioritize kernel updates on systems using dm-raid or suspend workflows.
Map deployed kernels against vendor-patched package versions, not only upstream versions.
Avoid risky dm-raid maintenance during suspend until patched.
Validation and detection
Inventory Linux hosts using dm-raid or device-mapper RAID.
Confirm running kernel packages include the referenced stable fixes or vendor backports.
Review logs for suspend, dm-raid, md, reshape, or filesystem corruption symptoms.
Test suspend/resume and RAID maintenance workflows in staging after patching.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-35794 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.