# CVE-2024-35787: md/md-bitmap: fix incorrect usage for sb\_index

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **Published:** 2024-05-17T12:24:35.137Z
- **Modified:** 2026-08-05T11:29:55.072Z

## Who should check

- Anyone running Linux \>= d7038f951828da19fa9aafddfa087b69032c9687, \< 736ad6c577a367834118f57417038d45bb5e0a31; \>= d7038f951828da19fa9aafddfa087b69032c9687, \< 55e55eb65fd5e09faf5a0e49ffcdd37905aaf4da; \>= d7038f951828da19fa9aafddfa087b69032c9687, \< 5a95815b17428ce2f56ec18da5e0d1b2a1a15240; \>= d7038f951828da19fa9aafddfa087b69032c9687, \< ecbd8ebb51bf7e4939d83b9e6022a55cac44ef06
- Anyone running Linux 6.6

## Description

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

md/md-bitmap: fix incorrect usage for sb\_index

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):
 md\_bitmap\_file\_set\_bit+0x110/0x1d8 \[md\_mod\]
 md\_bitmap\_startwrite+0x13c/0x240 \[md\_mod\]
 raid1\_make\_request+0x6b0/0x1c08 \[raid1\]
 md\_handle\_request+0x1dc/0x368 \[md\_mod\]
 md\_submit\_bio+0x80/0xf8 \[md\_mod\]
 \_\_submit\_bio+0x178/0x300
 submit\_bio\_noacct\_nocheck+0x11c/0x338
 submit\_bio\_noacct+0x134/0x614
 submit\_bio+0x28/0xdc
 submit\_bh\_wbc+0x130/0x1cc
 submit\_bh+0x1c/0x28

## Affected and fixed versions

- Linux: \>= d7038f951828da19fa9aafddfa087b69032c9687, \< 736ad6c577a367834118f57417038d45bb5e0a31; \>= d7038f951828da19fa9aafddfa087b69032c9687, \< 55e55eb65fd5e09faf5a0e49ffcdd37905aaf4da; \>= d7038f951828da19fa9aafddfa087b69032c9687, \< 5a95815b17428ce2f56ec18da5e0d1b2a1a15240; \>= d7038f951828da19fa9aafddfa087b69032c9687, \< ecbd8ebb51bf7e4939d83b9e6022a55cac44ef06 (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35787. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35787.md
Affected: Linux >= d7038f951828da19fa9aafddfa087b69032c9687, < 736ad6c577a367834118f57417038d45bb5e0a31; >= d7038f951828da19fa9aafddfa087b69032c9687, < 55e55eb65fd5e09faf5a0e49ffcdd37905aaf4da; >= d7038f951828da19fa9aafddfa087b69032c9687, < 5a95815b17428ce2f56ec18da5e0d1b2a1a15240; >= d7038f951828da19fa9aafd…
Fixed in: Linux 736ad6c577a367834118f57417038d45bb5e0a31, Linux 55e55eb65fd5e09faf5a0e49ffcdd37905aaf4da, Linux 5a95815b17428ce2f56ec18da5e0d1b2a1a15240

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35787 being exploited?

There is no confirmed exploitation: CVE-2024-35787 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35787?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35787?

Linux \>= d7038f951828da19fa9aafddfa087b69032c9687, \< 736ad6c577a367834118f57417038d45bb5e0a31; \>= d7038f951828da19fa9aafddfa087b69032c9687, \< 55e55eb65fd5e09faf5a0e49ffcdd37905aaf4da; \>= d7038f951828da19fa9aafddfa087b69032c9687, \< 5a95815b17428ce2f56ec18da5e0d1b2a1a15240; \>= d7038f951828da19fa9aafddfa087b69032c9687, \< ecbd8ebb51bf7e4939d83b9e6022a55cac44ef06; Linux 6.6.

### Is there a fix for CVE-2024-35787?

Yes. Fixed in Linux 736ad6c577a367834118f57417038d45bb5e0a31, Linux 55e55eb65fd5e09faf5a0e49ffcdd37905aaf4da, Linux 5a95815b17428ce2f56ec18da5e0d1b2a1a15240. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-35787?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/736ad6c577a367834118f57417038d45bb5e0a31>
- patch: <https://git.kernel.org/stable/c/55e55eb65fd5e09faf5a0e49ffcdd37905aaf4da>
- patch: <https://git.kernel.org/stable/c/5a95815b17428ce2f56ec18da5e0d1b2a1a15240>
- patch: <https://git.kernel.org/stable/c/ecbd8ebb51bf7e4939d83b9e6022a55cac44ef06>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35787>

HTML: <https://flawdb.com/CVE-2024-35787> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35787>
