CVE-2026-139726: scsi: mpi3mr: Fix out-of-bounds read in SAS topology change events
In the Linux kernel, the following vulnerability has been resolved:
scsi: mpi3mr: Fix out-of-bounds read in SAS topology change events
The number of entries in a SAS topology change event is used to walk the entry array without being compared against the amount of event data that was received, so the walk can run past the end of the buffer.
Work out how many entries the payload can hold and skip the event if it claims more.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - 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 SAS topology change event handler, calculate how many entries the received payload can hold and skip the event if it claims more entries.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems running the Linux kernel with the mpi3mr SCSI driver are relevant. Exposure depends on the driver receiving SAS topology change events.
What condition triggers the out-of-bounds read?
A SAS topology change event must claim more entries than are present in the received event payload. The vulnerable code uses the claimed entry count to walk the entry array without first confirming that the payload can contain that many entries.
What mitigation is available if the fix cannot be applied immediately?
The provided data identifies the affected processing path as SAS topology change events in the mpi3mr driver, but does not specify a configuration workaround. Reducing exposure would require avoiding use of the affected driver or preventing it from processing such events, where operationally feasible.
How does the fix handle malformed events?
The fix calculates how many entries fit in the received payload and skips an event when its claimed entry count exceeds that limit.