Skip to main content
Network Thinking Solutions Logo

CVE-2024-39476

Linux kernel: md/raid5: fix deadlock that raid5d() wait for itself to clear MD_SB_CHANGE_PENDING

All CVEs
CVE-2024-39476Published 7/5/2024

Linux kernel: md/raid5: fix deadlock that raid5d() wait for itself to clear MD_SB_CHANGE_PENDING

Vendor advisory
CVSS5.5Medium

Overview

In the Linux kernel, the following vulnerability has been resolved: md/raid5: fix deadlock that raid5d() wait for itself to clear MD_SB_CHANGE_PENDING Xiao reported that lvm2 test lvconvert-raid-takeover.sh can hang with small possibility, the root cause is exactly the same as commit bed9e27baf52 ("Revert "md/raid5: Wait for MD_SB_CHANGE_PENDING in raid5d"") However, Dan reported another hang after that, and junxiao investigated the problem and found out that this is caused by plugged bio can't issue from raid5d(). Current implementation in raid5d() has a weird dependence: 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 behaviour is introduce before v2.6, and for consequence, if other context hold 'reconfig_mutex', and md_check_recovery() can't update super_block, then raid5d() will waste one cpu 100% by the deadloop, until 'reconfig_mutex' is released. Refer to the implementation from raid1 and raid10, fix this problem by skipping issue IO if MD_SB_CHANGE_PENDING is still set after md_check_recovery(), daemon thread will be woken up when 'reconfig_mutex' is released. Meanwhile, the hang problem will be fixed as well.

Published
7/5/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 4.19, < 4.19.316

Verify advisory

Source
linux kernel
linux
≥ 5.4, < 5.4.278

Verify advisory

Source
linux kernel
linux
≥ 5.10, < 5.10.219

Verify advisory

Source
linux kernel
linux
≥ 5.15, < 5.15.161

Verify advisory

Source
linux kernel
linux
≥ 6.1, < 6.1.94

Verify advisory

Source
linux kernel
linux
≥ 6.6, < 6.6.34

Verify advisory

Source
linux kernel
linux
≥ 6.9, < 6.9.5

Verify advisory

Source
Linux
Linux
≥ f3d55bd5b7b928ad82f8075d89c908702f3593ab, < b32aa95843cac6b12c2c014d40fca18aef24a347

Verify advisory

Source
Linux
Linux
≥ 1c00bb624cd084e2006520ad0edacaff0fb941c4, < 634ba3c97ec413cb10681c7b196db43ee461ecf4

Verify advisory

Source
Linux
Linux
≥ 782b3e71c957991ac8ae53318bc369049d49bb53, < aa64464c8f4d2ab92f6d0b959a1e0767b829d787

Verify advisory

Source
Linux
Linux
≥ 9e86dffd0b02594d2e7c60c6db9e889c0395414b, < 098d54934814dd876963abfe751c3b1cf7fbe56a

Verify advisory

Source
Linux
Linux
≥ 5e2cf333b7bd5d3e62595a44d598a254c697cd74, < 3f8d5e802d4cedd445f9a89be8c3fd2d0e99024b

Verify advisory

Source
Linux
Linux
≥ 5e2cf333b7bd5d3e62595a44d598a254c697cd74, < cd2538e5af495b3c747e503db346470fc1ffc447

Verify advisory

Source
Linux
Linux
≥ 5e2cf333b7bd5d3e62595a44d598a254c697cd74, < e332a12f65d8fed8cf63bedb4e9317bb872b9ac7

Verify advisory

Source
Linux
Linux
≥ 5e2cf333b7bd5d3e62595a44d598a254c697cd74, < 151f66bb618d1fd0eeb84acb61b4a9fa5d8bb0fa

Verify advisory

Source
Linux
Linux
7d808fe6af8409cf9f46ed2b10840e5788985e9b

Verify advisory

Source
Linux
Linux
2cab058f2b147e0b7c01546ba00445e5701861f5

Verify advisory

Source
Linux
Linux
91962e40ec3d26e291db230cd45b302da2aff200

Verify advisory

Source
Linux
Linux
≥ 4.19.262, < 4.19.316

Verify advisory

Source
Linux
Linux
≥ 5.4.220, < 5.4.278

Verify advisory

Source
Linux
Linux
≥ 5.10.150, < 5.10.219

Verify advisory

Source
Linux
Linux
≥ 5.15.75, < 5.15.161

Verify advisory

Source
Linux
Linux
≥ 4.14.296, < 4.15

Verify advisory

Source
Linux
Linux
≥ 5.19.17, < 5.20

Verify advisory

Source
Linux
Linux
≥ 6.0.3, < 6.1

Verify advisory

Source
Linux
Linux
6.1

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.