CVE-2024-35787

Source
https://cve.org/CVERecord?id=CVE-2024-35787
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35787.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-35787
Downstream
Published
2024-05-17T12:24:35.137Z
Modified
2026-03-14T12:34:01.979676Z
Summary
md/md-bitmap: fix incorrect usage for sb_index
Details

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): 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

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/35xxx/CVE-2024-35787.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d7038f951828da19fa9aafddfa087b69032c9687
Fixed
736ad6c577a367834118f57417038d45bb5e0a31
Fixed
55e55eb65fd5e09faf5a0e49ffcdd37905aaf4da
Fixed
5a95815b17428ce2f56ec18da5e0d1b2a1a15240
Fixed
ecbd8ebb51bf7e4939d83b9e6022a55cac44ef06

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-35787.json"