CVE-2026-139731: scsi: mpi3mr: Fix buffer overflow when caching log data
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In the Linux kernel’s scsi: mpi3mr log-data caching, calculate the payload room after the header and clamp the copy to that size.
Event History
Frequently Asked Questions
What systems are exposed to this issue?
Systems running the Linux kernel with the mpi3mr SCSI driver are relevant. The provided information does not identify affected kernel versions, hardware models, or configuration conditions.
When can the overflow occur?
The overflow occurs while caching log data when the copy is sized using the full log-data slot rather than the space remaining after its header. A controller reply can also produce an entry size smaller than the header, so safe handling requires calculating payload capacity first and limiting the copy to that capacity.
How can I tell whether the issue has been addressed in my kernel source?
Check whether the mpi3mr log-data caching code calculates available payload room before copying and clamps the copy length to that room. The listed stable-kernel references contain the resolving changes.