# CVE-2026-139723: scsi: mpi3mr: Fix buffer overflow in the BSG target device map

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-11-30T13:37:22.801Z
- **Modified:** 2026-11-30T14:20:03.503Z

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker able to trigger the mpi3mr driver's BSG target device map allocation can overflow a heap buffer in the Linux kernel by causing a u16 size wraparound.

## Who should check

- Anyone running Linux \>= 8ba997b22f2cd5d29aad8c39f6201f7608ed0c04, \< 18f8301c66da25bbd4efed6ee39d57f31c66b88f; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 60b25364d7e430c202fb3f1aa24247914d7b1d53; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 89930d3c26c282526f904118ddbe0d5b5755cb0b; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< fe81812af36bad609d233f11ba989dedcde41ca3; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 203b3072e7aa10d98b3f2b766693ea925cfc571d; 2f3d3fa5b8ed7d3b147478f42b00b468eeb1ecd2; \>= 6.1.16, \< 6.1.193; \>= 6.2.3, \< 6.3
- Anyone running Linux 6.3

## Description

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

scsi: mpi3mr: Fix buffer overflow in the BSG target device map

The size of the target device map buffer is held in a u16 while the number
of devices it is derived from is not bounded to fit. With enough devices
the size wraps, a short buffer is allocated, and the loop that fills it
writes past the end.

Do the calculation in size\_t.

## Affected and fixed versions

- Linux: \>= 8ba997b22f2cd5d29aad8c39f6201f7608ed0c04, \< 18f8301c66da25bbd4efed6ee39d57f31c66b88f; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 60b25364d7e430c202fb3f1aa24247914d7b1d53; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 89930d3c26c282526f904118ddbe0d5b5755cb0b; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< fe81812af36bad609d233f11ba989dedcde41ca3; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 203b3072e7aa10d98b3f2b766693ea925cfc571d; 2f3d3fa5b8ed7d3b147478f42b00b468eeb1ecd2; \>= 6.1.16, \< 6.1.193; \>= 6.2.3, \< 6.3 (cvelist)
- Linux: 6.3 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 6.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-139723.md
Affected: Linux >= 8ba997b22f2cd5d29aad8c39f6201f7608ed0c04, < 18f8301c66da25bbd4efed6ee39d57f31c66b88f; >= fb428a2005fc1260d18b989cc5199f281617f44d, < 60b25364d7e430c202fb3f1aa24247914d7b1d53; >= fb428a2005fc1260d18b989cc5199f281617f44d, < 89930d3c26c282526f904118ddbe0d5b5755cb0b; >= fb428a2005fc1260d18b989…
Fixed in: Linux 18f8301c66da25bbd4efed6ee39d57f31c66b88f, Linux 60b25364d7e430c202fb3f1aa24247914d7b1d53, Linux 89930d3c26c282526f904118ddbe0d5b5755cb0b, Linux 3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8, Linux 203b3072e7aa10d98b3f2b766693ea925cfc571d, Linux 6.1.193, Linux 6.3

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-2026-139723 being exploited?

There is no confirmed exploitation: CVE-2026-139723 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139723?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-139723?

Linux \>= 8ba997b22f2cd5d29aad8c39f6201f7608ed0c04, \< 18f8301c66da25bbd4efed6ee39d57f31c66b88f; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 60b25364d7e430c202fb3f1aa24247914d7b1d53; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 89930d3c26c282526f904118ddbe0d5b5755cb0b; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< fe81812af36bad609d233f11ba989dedcde41ca3; \>= fb428a2005fc1260d18b989cc5199f281617f44d, \< 203b3072e7aa10d98b3f2b766693ea925cfc571d; 2f3d3fa5b8ed7d3b147478f42b00b468eeb1ecd2; \>= 6.1.16, \< 6.1.193; \>= 6.2.3, \< 6.3; Linux 6.3.

### Is there a fix for CVE-2026-139723?

Yes. Fixed in Linux 18f8301c66da25bbd4efed6ee39d57f31c66b88f, Linux 60b25364d7e430c202fb3f1aa24247914d7b1d53, Linux 89930d3c26c282526f904118ddbe0d5b5755cb0b, Linux 3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8, Linux 203b3072e7aa10d98b3f2b766693ea925cfc571d, Linux 6.1.193, Linux 6.3. Upgrade Linux to 6.3 or later.

### How do I check if I'm affected by CVE-2026-139723?

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

- other: <https://git.kernel.org/stable/c/18f8301c66da25bbd4efed6ee39d57f31c66b88f>
- other: <https://git.kernel.org/stable/c/60b25364d7e430c202fb3f1aa24247914d7b1d53>
- other: <https://git.kernel.org/stable/c/89930d3c26c282526f904118ddbe0d5b5755cb0b>
- other: <https://git.kernel.org/stable/c/3d858ac76ace4dee07d8d556ff72d7cd3aa3ccd8>
- other: <https://git.kernel.org/stable/c/fe81812af36bad609d233f11ba989dedcde41ca3>
- other: <https://git.kernel.org/stable/c/203b3072e7aa10d98b3f2b766693ea925cfc571d>

## 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-2026-139723>

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