Kernel memory corruption via undersized pending bitmap
Published Jul 12, 2024 · Updated Aug 5, 2026
Out-of-bounds access in the Linux kernel mpt3sas SCSI driver allows local users to corrupt adjacent heap memory during device addition. The _scsih_add_device path allocates a one-byte pending bitmap, but test_bit() and set_bit() access an unsigned-long word and write beyond it. Reachability requires the mpt3sas driver to add a device; the documented result is an eight-byte heap overwrite detected by KASAN.
Summary
What happened
Out-of-bounds access in the Linux kernel mpt3sas SCSI driver allows local users to corrupt adjacent heap memory during device addition. The _scsih_add_device path allocates a one-byte pending bitmap, but test_bit() and set_bit() access an unsigned-long word and write beyond it. Reachability requires the mpt3sas driver to add a device; the documented result is an eight-byte heap overwrite detected by KASAN.
The record
- CVE
- CVE-2024-40901
- Published
- Jul 12, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-787
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 12, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=4.10
- Affected versionversion=c696f7b83edeac804e898952058089143f49ca0a <0081d2b3ae0a17a86b8cc0fa3c8bdc54e233ba16
- Affected versionversion=c696f7b83edeac804e898952058089143f49ca0a <18abb5db0aa9b2d48f7037a88b41af2eef821674
- Affected versionversion=c696f7b83edeac804e898952058089143f49ca0a <19649e49a6df07cd2e03e0a11396fd3a99485ec2
- Affected versionversion=c696f7b83edeac804e898952058089143f49ca0a <4254dfeda82f20844299dca6c38cbffcfd499f41
- Affected versionversion=c696f7b83edeac804e898952058089143f49ca0a <46bab2bcd771e725ff5ca3a68ba68cfeac45676c
- Affected versionversion=c696f7b83edeac804e898952058089143f49ca0a <521f333e644c4246ca04a4fc4772edc53dd2a801
- Affected versionversion=c696f7b83edeac804e898952058089143f49ca0a <9079338c5a0d1f1fee34fb1c9e99b754efe414c5
- Affected versionversion=c696f7b83edeac804e898952058089143f49ca0a <e9bce7c751f6d6c7be88c0bc081a66aaf61a23ee
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo