CVE-2024-35808: md/dm-raid: don't call md_reap_sync_thread() directly

Published May 17, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

md/dm-raid: don't call mdreapsyncthread() directly

Currently mdreapsyncthread() is called from raidmessage() directly without holding 'reconfigmutex', this is definitely unsafe because mdreapsyncthread() can change many fields that is protected by 'reconfigmutex'.

However, hold 'reconfigmutex' here is still problematic because this will cause deadlock, for example, commit 130443d60b1b ("md: refactor idle/frozensyncthread() to fix deadlock").

Fix this problem by using stopsyncthread() to unregister syncthread, like md/raid did.

Other sources

In the Linux kernel, the following vulnerability has been resolved:

md/dm-raid: don't call mdreapsyncthread() directly

The Linux kernel CVE team has assigned CVE-2024-35808 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024051740-CVE-2024-35808-2bf6@gregkh/T

Red Hat

Affected Software

14 affected componentsFixes available
debian/linux<=5.10.223-1, <=5.10.234-1, <=6.1.129-1, <=6.1.135-1
6.12.25-16.12.27-1
Linux Linux kernel>=3.10<6.7.12
Linux Linux kernel>=6.8<6.8.3
redhat/kernel<6.7.12
6.7.12
redhat/kernel<6.8.3
6.8.3
redhat/kernel<6.9
6.9
Microsoft azl3 hyperv-daemons 6.6.22.1-2<6.6.35.1-1
6.6.35.1-1
Microsoft azl3 kernel 6.6.104.2-4
Microsoft azl3 kernel 6.6.112.1-2
Microsoft azl3 kernel 6.6.96.2-1
Microsoft azl3 kernel 6.6.96.2-2
Microsoft azl3 kernel 6.6.119.3-1
Microsoft azl3 kernel 6.6.117.1-1
Microsoft azl3 hyperv-daemons 6.6.35.1-1<6.6.35.1-1
6.6.35.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.12.25-1Fixed in 6.12.27-1
  2. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.7.12
  3. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.8.3
  4. Upgrade

    Upgrade redhat/kernel to a version that resolves this vulnerability.

    Fixed in 6.9
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.35.1-1
  6. Configuration

    Modify md/dm-raid code so that raid_message() no longer calls md_reap_sync_thread() directly; instead, unregister/stop the sync_thread using stop_sync_thread() (as md/raid does). Ensure reconfig_mutex is not held in a way that would trigger deadlock (e.g., avoid the deadlock scenario addressed by commit 130443d60b1b in md: refactor idle/frozen_sync_thread() to fix deadlock).

    Linux kernel md/dm-raid md/dm-raid sync_thread handling (use stop_sync_thread() instead of calling md_reap_sync_thread() directly) = Use stop_sync_thread() to unregister sync_thread rather than calling md_reap_sync_thread() directly from raid_message()

Event History

May 17, 2024
CVE Published
via MITRE·01:23 PM
Data Sourced
via MITRE·01:23 PM
DescriptionSeverity
Data Sourced
via NVD·02:15 PM
Description
Data Sourced
via NVD·02:15 PM
RemedySeverityWeaknessAffected Software
Data Sourced
via Red Hat·11:46 PM
DescriptionSeverityAffected Software
Jun 8, 2024
Data Sourced
via Launchpad·01:15 AM
Description
Sep 11, 2024
Data Sourced
via Microsoft·12:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·12:00 AM
Affected Software
Updated
via Microsoft·12:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Apr 29, 2025
Data Sourced
via Ubuntu·06:21 AM
RemedyDescriptionSeverityAffected Software
Dec 28, 58560
Event
via MITRE·08:57 AM

Frequently Asked Questions

1

What is the severity of CVE-2024-35808?

CVE-2024-35808 has been rated with high severity due to its potential to lead to data corruption or system instability.

2

How do I fix CVE-2024-35808?

To resolve CVE-2024-35808, you should upgrade to kernel versions 6.7.12, 6.8.3, 6.9, or the specified Debian versions 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1.

3

What systems are affected by CVE-2024-35808?

CVE-2024-35808 affects specific versions of the Linux kernel, including Red Hat kernel and Debian Linux packages.

4

What causes CVE-2024-35808?

CVE-2024-35808 is caused by a race condition due to the unsafe direct call of md_reap_sync_thread() without holding 'reconfig_mutex'.

5

Is there a workaround for CVE-2024-35808?

There is no recommended workaround for CVE-2024-35808, so applying the available patches is essential.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203