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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-09-18T13:33:22.364Z
- **Modified:** 2026-08-05T09:13:44.095Z

## Who should check

- Anyone running Linux \>= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, \< 6a675a6d57d31da43d8da576465c1cd5d5b0bd3d; \>= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, \< 8ac713d2e9845e9234bb12ae5903040685d5aff9; \>= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, \< 339e61565f81a6534afdc18fd854b2e2628bf5db
- Anyone running Linux 5.14

## Description

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.

## Affected and fixed versions

- Linux: \>= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, \< 6a675a6d57d31da43d8da576465c1cd5d5b0bd3d; \>= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, \< 8ac713d2e9845e9234bb12ae5903040685d5aff9; \>= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, \< 339e61565f81a6534afdc18fd854b2e2628bf5db (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

- Upgrade Linux to 339e61565f81a6534afdc18fd854b2e2628bf5db or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53376. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53376.md
Affected: Linux >= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, < 6a675a6d57d31da43d8da576465c1cd5d5b0bd3d; >= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, < 8ac713d2e9845e9234bb12ae5903040685d5aff9; >= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, < 339e61565f81a6534afdc18fd854b2e2628bf5db; Linux 5.14
Fixed in: Linux 6a675a6d57d31da43d8da576465c1cd5d5b0bd3d, Linux 8ac713d2e9845e9234bb12ae5903040685d5aff9, Linux 339e61565f81a6534afdc18fd854b2e2628bf5db

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53376 being exploited?

There is no confirmed exploitation: CVE-2023-53376 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53376?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53376?

Linux \>= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, \< 6a675a6d57d31da43d8da576465c1cd5d5b0bd3d; \>= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, \< 8ac713d2e9845e9234bb12ae5903040685d5aff9; \>= 824a156633dfdb0e17979a0d0bb2c757d1bb949c, \< 339e61565f81a6534afdc18fd854b2e2628bf5db; Linux 5.14.

### Is there a fix for CVE-2023-53376?

Yes. Fixed in Linux 6a675a6d57d31da43d8da576465c1cd5d5b0bd3d, Linux 8ac713d2e9845e9234bb12ae5903040685d5aff9, Linux 339e61565f81a6534afdc18fd854b2e2628bf5db. Upgrade Linux to 339e61565f81a6534afdc18fd854b2e2628bf5db or later.

### How do I check if I'm affected by CVE-2023-53376?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/6a675a6d57d31da43d8da576465c1cd5d5b0bd3d>
- patch: <https://git.kernel.org/stable/c/8ac713d2e9845e9234bb12ae5903040685d5aff9>
- patch: <https://git.kernel.org/stable/c/339e61565f81a6534afdc18fd854b2e2628bf5db>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53376>

HTML: <https://flawdb.com/CVE-2023-53376> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53376>
