CVE-2023-53376: scsi: mpi3mr: Use number of bits to manage bitmap sizes

Published Sep 18, 2025
·
Updated

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

scsi: mpi3mr: Use number of bits to manage bitmap sizes

To allocate bitmaps, the mpi3mr driver calculates sizes of bitmaps using byte as unit. However, bitmap helper functions assume that bitmaps are allocated using unsigned long as unit. This gap causes memory access beyond the bitmap sizes and results in "BUG: KASAN: slab-out-of-bounds". The BUG was observed at firmware download to eHBA-9600. Call trace indicated that the out-of-bounds access happened in findfirstzerobit() called from mpi3mrsendeventack() for miroc->evtackcmdsbitmap.

To fix the BUG, do not use bytes to manage bitmap sizes. Instead, use number of bits, and call bitmap helper functions which take number of bits as arguments. For memory allocation, call bitmapzalloc() instead of kzalloc() and krealloc(). For memory free, call bitmapfree() instead of kfree(). For zero clear, call bitmapclear() instead of memset().

Remove three fields for bitmap byte sizes in struct scmdpriv which are no longer required. Replace the field devhandlebitmapsz with devhandlebitmapbits to keep number of bits of removependbitmap across resize.

Affected Software

4 affected components
Linux Linux kernel
Linux Linux kernel>=5.14<6.1.18
Linux Linux kernel>=6.2<6.2.5
Microsoft cbl2 kernel 5.15.186.1-1

Event History

Sep 18, 2025
CVE Published
via MITRE·01:33 PM
Data Sourced
via MITRE·01:33 PM
DescriptionSeverity
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Dec 14, 2025
Data Sourced
via Microsoft·02:01 PM
DescriptionSeverityWeaknessAffected Software
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-2023-53376?

CVE-2023-53376 has been classified with a severity that may allow for improper bitmap management in the mpi3mr driver.

2

How do I fix CVE-2023-53376?

To fix CVE-2023-53376, you should update your Linux kernel to the latest version that contains the patches for this vulnerability.

3

What systems are affected by CVE-2023-53376?

CVE-2023-53376 affects the Linux kernel, specifically those using the mpi3mr driver.

4

What are the potential impacts of CVE-2023-53376?

The potential impacts of CVE-2023-53376 include risks of improper bitmap size management, leading to system instability or security issues.

5

When was CVE-2023-53376 reported?

CVE-2023-53376 was reported in 2023, highlighting an issue in bitmap management within 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