PT-2024-5439 · Linux+8 · Linux Kernel+8

Dan Moulding

+1

·

Published

2024-04-08

·

Updated

2025-09-29

·

CVE-2024-39476

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.6.37
Description The issue is related to a deadlock in the raid5d() function, which can cause the system to hang. This is due to a weird dependence in the current implementation of raid5d():
  1. md check recovery() from raid5d() must hold reconfig mutex to clear MD SB CHANGE PENDING;
  2. raid5d() handles IO in a deadloop, until all IO are issued;
  3. IO from raid5d() must wait for MD SB CHANGE PENDING to be cleared. This behavior was introduced before version 2.6, and as a consequence, if another context holds reconfig mutex and md check recovery() can't update super block, then raid5d() will waste one CPU at 100% by the deadloop, until reconfig mutex is released.
Recommendations To resolve the issue, update the Linux kernel to version 6.6.37 or later. As a temporary workaround, consider disabling the raid5d() function until a patch is available. Restrict access to the vulnerable module to minimize the risk of exploitation. Avoid using the md check recovery() function in the affected API endpoint until the issue is resolved. Apply the fix by skipping issue IO if MD SB CHANGE PENDING is still set after md check recovery(), allowing the daemon thread to be woken up when reconfig mutex is released.

Exploit

Fix

Improper Locking

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2024:5101
ALSA-2024:5102
ALSA-2024:5928
ALSA-2025_16880
ALT-PU-2024-10855
ALT-PU-2024-11524
ALT-PU-2024-13979
ALT-PU-2024-14046
ALT-PU-2024-17597
AZL-43282
BDU:2024-06088
CESA-2024_5101
CESA-2024_5102
CVE-2024-39476
DSA-5730-1
INFSA-2024_5101
INFSA-2024_5102
INFSA-2024_5928
MGASA-2024-0263
MGASA-2024-0266
OESA-2024-1941
OESA-2024-1942
OESA-2024-2028
OESA-2024-2076
OPENSUSE-SU-2024_3983-1
OPENSUSE-SU-2024_3985-1
RHSA-2024:5101
RHSA-2024:5102
RHSA-2024:5928
RHSA-2024:8107
RHSA-2024_5101
RHSA-2024_5102
RHSA-2024_5928
RLSA-2024:5101
RLSA-2024:5102
RXSA-2024:5101
SUSE-SU-2024:3194-1
SUSE-SU-2024:3195-1
SUSE-SU-2024:3383-1
SUSE-SU-2024:3983-1
SUSE-SU-2024:3985-1
SUSE-SU-2024:4100-1
SUSE-SU-2024:4364-1
SUSE-SU-2025:0034-1
SUSE-SU-2025:20044-1
SUSE-SU-2025:20047-1

Affected Products

Alt Linux
Almalinux
Astra Linux
Centos
Linux Kernel
Red Hat
Red Os
Rocky Linux
Suse