# CVE-2026-139731: scsi: mpi3mr: Fix buffer overflow when caching log data

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

> **AI summary (AI-generated, claude-haiku-5-5):** An attacker can trigger a buffer overflow in the Linux kernel's mpi3mr SCSI driver when caching log data, by causing the copy to write past the end of a log slot.

## Who should check

- Anyone running Linux \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< ae6868f44e1977cbc6ef4fccbf289cc100c0f42a; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 415e38d80d19e1b754edec8b2b3819aab033b149; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 2841b026431455e55015506fde993279a06a2b5b; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 7a4044f890fc3091610ea6bfe62de24d7a81d0a4; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 27b51ecdd2258bc261f5330eda0694bdc2685fd1; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 9ff1af19c488efad66f2b803eefa0abd5fdac8f4
- Anyone running Linux 5.19

## Description

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

scsi: mpi3mr: Fix buffer overflow when caching log data

Each log data slot holds a header followed by the payload, but the copy was
sized against the whole slot and so wrote one header length past the end of
it. Subtracting the header on its own is not enough either, because the
entry size is derived from the controller reply size and can be smaller
than the header.

Work out the payload room first and clamp the copy to it.

## Affected and fixed versions

- Linux: \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< ae6868f44e1977cbc6ef4fccbf289cc100c0f42a; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 415e38d80d19e1b754edec8b2b3819aab033b149; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 2841b026431455e55015506fde993279a06a2b5b; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 7a4044f890fc3091610ea6bfe62de24d7a81d0a4; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 27b51ecdd2258bc261f5330eda0694bdc2685fd1; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 9ff1af19c488efad66f2b803eefa0abd5fdac8f4 (cvelist)
- Linux: 5.19 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 9ff1af19c488efad66f2b803eefa0abd5fdac8f4 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-139731. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139731.md
Affected: Linux >= 43ca110050988c7a0e581d24ce212ef34a4cdf29, < ae6868f44e1977cbc6ef4fccbf289cc100c0f42a; >= 43ca110050988c7a0e581d24ce212ef34a4cdf29, < 415e38d80d19e1b754edec8b2b3819aab033b149; >= 43ca110050988c7a0e581d24ce212ef34a4cdf29, < 2841b026431455e55015506fde993279a06a2b5b; >= 43ca110050988c7a0e581d2…
Fixed in: Linux 415e38d80d19e1b754edec8b2b3819aab033b149, Linux 2841b026431455e55015506fde993279a06a2b5b, Linux 7a4044f890fc3091610ea6bfe62de24d7a81d0a4, Linux 27b51ecdd2258bc261f5330eda0694bdc2685fd1, Linux 9ff1af19c488efad66f2b803eefa0abd5fdac8f4

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-139731 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< ae6868f44e1977cbc6ef4fccbf289cc100c0f42a; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 415e38d80d19e1b754edec8b2b3819aab033b149; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 2841b026431455e55015506fde993279a06a2b5b; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 7a4044f890fc3091610ea6bfe62de24d7a81d0a4; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 27b51ecdd2258bc261f5330eda0694bdc2685fd1; \>= 43ca110050988c7a0e581d24ce212ef34a4cdf29, \< 9ff1af19c488efad66f2b803eefa0abd5fdac8f4; Linux 5.19.

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

Yes. Fixed in Linux 415e38d80d19e1b754edec8b2b3819aab033b149, Linux 2841b026431455e55015506fde993279a06a2b5b, Linux 7a4044f890fc3091610ea6bfe62de24d7a81d0a4, Linux 27b51ecdd2258bc261f5330eda0694bdc2685fd1, Linux 9ff1af19c488efad66f2b803eefa0abd5fdac8f4. Upgrade Linux to 9ff1af19c488efad66f2b803eefa0abd5fdac8f4 or later.

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

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/ae6868f44e1977cbc6ef4fccbf289cc100c0f42a>
- other: <https://git.kernel.org/stable/c/415e38d80d19e1b754edec8b2b3819aab033b149>
- other: <https://git.kernel.org/stable/c/2841b026431455e55015506fde993279a06a2b5b>
- other: <https://git.kernel.org/stable/c/7a4044f890fc3091610ea6bfe62de24d7a81d0a4>
- other: <https://git.kernel.org/stable/c/27b51ecdd2258bc261f5330eda0694bdc2685fd1>
- other: <https://git.kernel.org/stable/c/9ff1af19c488efad66f2b803eefa0abd5fdac8f4>

## 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-139731>

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