CVE-2024-40901: scsi: mpt3sas: Avoid test/set_bit() operating in non-allocated memory

Published Jul 12, 2024
·
Updated

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

scsi: mpt3sas: Avoid test/setbit() operating in non-allocated memory

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

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024071207-CVE-2024-40901-05c4@gregkh/T

Other sources

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

scsi: mpt3sas: Avoid test/setbit() operating in non-allocated memory

There is a potential out-of-bounds access when using testbit() on a single word. The testbit() and setbit() functions operate on long values, and when testing or setting a single word, they can exceed the word boundary. KASAN detects this issue and produces a dump:

BUG: KASAN: slab-out-of-bounds in scsihadddevice.constprop.0 (./arch/x86/include/asm/bitops.h:60 ./include/asm-generic/bitops/instrumented-atomic.h:29 drivers/scsi/mpt3sas/mpt3sasscsih.c:7331) mpt3sas

Write of size 8 at addr ffff8881d26e3c60 by task kworker/u1536:2/2965

For full log, please look at [1].

Make the allocation at least the size of sizeof(unsigned long) so that setbit() and testbit() have sufficient room for read/write operations without overwriting unallocated memory.

[1] Link: https://lore.kernel.org/all/ZkNcALr3W3KGYYJG@gmail.com/

NVD

Linux Kernel is vulnerable to a denial of service, caused by out-of-bounds access when using testbit() in mpt3sasbase.c. A local authenticated attacker could exploit this vulnerability to cause a denial of service.

IBM

Affected Software

24 affected componentsFixes available
redhat/kernel<4.19.317
4.19.317
redhat/kernel<5.4.279
5.4.279
redhat/kernel<5.10.221
5.10.221
redhat/kernel<5.15.162
5.15.162
redhat/kernel<6.1.95
6.1.95
redhat/kernel<6.6.35
6.6.35
redhat/kernel<6.9.6
6.9.6
redhat/kernel<6.10
6.10
Linux Linux kernel>=4.10<4.19.317
Linux Linux kernel>=4.20<5.4.279
Linux Linux kernel>=5.5<5.10.221
Linux Linux kernel>=5.11<5.15.162
Linux Linux kernel>=5.16<6.1.95
Linux Linux kernel>=6.2<6.6.35
Linux Linux kernel>=6.7<6.9.6
Linux Linux kernel=6.10-rc1
Linux Linux kernel=6.10-rc2
Linux Linux kernel=6.10-rc3
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-1
debian/linux-6.1
6.1.129-1~deb11u1

Event History

Jul 12, 2024
CVE Published
via MITRE·12:20 PM
Data Sourced
via MITRE·12:20 PM
Description
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 27, 2025
Data Sourced
via Ubuntu·05:24 PM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-40901?

CVE-2024-40901 has been assigned a severity rating that indicates a high potential for impact on system integrity and performance.

2

How do I fix CVE-2024-40901?

To resolve CVE-2024-40901, update the Linux kernel to a secure version as specified in the affected software list.

3

What systems are affected by CVE-2024-40901?

CVE-2024-40901 affects specific versions of the Linux kernel including 4.19.317, 5.4.279, and all listed subsequent versions.

4

Is CVE-2024-40901 publicly known?

Yes, CVE-2024-40901 is publicly documented and was addressed by the Linux kernel security community.

5

What does the vulnerability CVE-2024-40901 involve?

CVE-2024-40901 concerns a memory handling issue in the SCSI mpt3sas driver 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