CVE-2023-53376CWE-125

CVE-2023-53376

High · published September 18, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
5.5
In the wild
Unconfirmed
What it is

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 find_first_zero_bit() called from

mpi3mr_send_event_ack() for miroc->evtack_cmds_bitmap.

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 bitmap_zalloc() instead of

kzalloc() and krealloc(). For memory free, call bitmap_free() instead of

kfree(). For zero clear, call bitmap_clear() instead of memset().

Remove three fields for bitmap byte sizes in struct scmd_priv which are no

longer required. Replace the field dev_handle_bitmap_sz with

dev_handle_bitmap_bits to keep number of bits of removepend_bitmap across

resize.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00166 · 5.5th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2025-09-18T18:15Z
Affected products (2)
ProductVersionsFixed in
linux/linux_kernel≥ 5.14, < 6.1.186.1.18
linux/linux_kernel≥ 6.2, < 6.2.56.2.5
References (3)
EPSS history
Timeline
  • 18 SEP 13:33Z
    scsi: mpi3mr: Use number of bits to manage bitmap sizes
    cvelistv5