CVE-2024-35787: md/md-bitmap: fix incorrect usage for sb_index

Published May 17, 2024
·
Updated

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

md/md-bitmap: fix incorrect usage for sbindex

Commit d7038f951828 ("md-bitmap: don't use ->index for pages backing the bitmap file") removed page->index from bitmap code, but left wrong code logic for clustered-md. current code never set slot offset for cluster nodes, will sometimes cause crash in clustered env.

Call trace (partly): mdbitmapfilesetbit+0x110/0x1d8 [mdmod] mdbitmapstartwrite+0x13c/0x240 [mdmod] raid1makerequest+0x6b0/0x1c08 [raid1] mdhandlerequest+0x1dc/0x368 [mdmod] mdsubmitbio+0x80/0xf8 [mdmod] submitbio+0x178/0x300 submitbionoacctnocheck+0x11c/0x338 submitbionoacct+0x134/0x614 submitbio+0x28/0xdc submitbhwbc+0x130/0x1cc submitbh+0x1c/0x28

Other sources

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

md/md-bitmap: fix incorrect usage for sbindex

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

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024051707-CVE-2024-35787-dede@gregkh/T

Red Hat

Affected Software

8 affected componentsFixes available
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
redhat/kernel<6.6.24
6.6.24
redhat/kernel<6.7.12
6.7.12
redhat/kernel<6.8.3
6.8.3
redhat/kernel<6.9
6.9
Linux Linux kernel>=6.6<6.6.24
Linux Linux kernel>=6.7<6.7.12
Linux Linux kernel>=6.8<6.8.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed 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.6.24
  3. Upgrade

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

    Fixed in 6.7.12
  4. Upgrade

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

    Fixed in 6.8.3
  5. Upgrade

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

    Fixed in 6.9
  6. Upgrade

    Upgrade Linux kernel md/md-bitmap to a version that resolves this vulnerability.

    Patch CVE-2024-35787
  7. Compensating control

    If running clustered-md environments, temporarily avoid using md-bitmap until the fix for CVE-2024-35787 is applied, to prevent crashes caused by the incorrect clustered-md slot-offset logic.

Event History

May 17, 2024
CVE Published
via MITRE·12:24 PM
Data Sourced
via MITRE·12:24 PM
DescriptionSeverity
Data Sourced
via NVD·01:15 PM
Description
Data Sourced
via NVD·01:15 PM
RemedySeverityAffected Software
Data Sourced
via Red Hat·09:11 PM
DescriptionSeverityAffected Software
Jun 8, 2024
Data Sourced
via Launchpad·01:15 AM
Description
Dec 1, 2024
Data Sourced
via Ubuntu·05:29 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-35787?

CVE-2024-35787 has been classified with a moderate severity level due to its potential impact on the Linux kernel.

2

How do I fix CVE-2024-35787?

To mitigate CVE-2024-35787, update the Linux kernel to version 6.6.24 or any of the specified remedial versions listed in the vulnerability details.

3

Which software is affected by CVE-2024-35787?

CVE-2024-35787 affects several versions of the Linux kernel, specifically those prior to versions 6.6.24, 6.7.12, 6.8.3, and 6.9.

4

What issue does CVE-2024-35787 address?

CVE-2024-35787 addresses incorrect logic in the bitmap code of the Linux kernel's multi-device (md) subsystem.

5

Can CVE-2024-35787 affect system stability?

Yes, exploiting CVE-2024-35787 could potentially impact the stability of systems running vulnerable versions of the Linux kernel.

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