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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-05-17T12:24:35.137Z
- Modified: 2026-08-05T11:29:55.072Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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

(As written by CVE List.)

## Affected

- Linux Linux: from d7038f951828da19fa9aafddfa087b69032c9687 before 736ad6c577a367834118f57417038d45bb5e0a31; from d7038f951828da19fa9aafddfa087b69032c9687 before 55e55eb65fd5e09faf5a0e49ffcdd37905aaf4da; from d7038f951828da19fa9aafddfa087b69032c9687 before 5a95815b17428ce2f56ec18da5e0d1b2a1a15240; from d7038f951828da19fa9aafddfa087b69032c9687 before ecbd8ebb51bf7e4939d83b9e6022a55cac44ef06; 6.6 (not affected: before 6.6; from 6.6.24 up to 6.6.*; from 6.7.12 up to 6.7.*; from 6.8.3 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.6 before 6.6.24; from 6.7 before 6.7.12; from 6.8 before 6.8.3

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2024-35787](https://www.cve.org/CVERecord?id=CVE-2024-35787), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-35787](https://nvd.nist.gov/vuln/detail/CVE-2024-35787), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-35787 · Whole record: https://cve.day/CVE-2024-35787.json · Rebuilt by cve.day 2026-11-25T22:58:40.507Z
