CVE-2026-139735: scsi: mpi3mr: Fix buffer overflow in BSG passthrough request copy
In the Linux kernel, the following vulnerability has been resolved:
scsi: mpi3mr: Fix buffer overflow in BSG passthrough request copy
The size of an incoming BSG request is checked using a variable that is narrower than the field it is read from, so large values wrap and pass the check. The copy that follows then uses the full value and writes past the request buffer.
Widen the variable and copy only the amount that was checked.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel's scsi: mpi3mr BSG passthrough request copy, widen the variable used to check the incoming request size and copy only the amount that was checked.
Event History
Frequently Asked Questions
What must an attacker be able to do to trigger this issue?
An attacker must be able to submit a BSG passthrough request to the mpi3mr SCSI driver with a size value large enough to wrap when checked. The subsequent copy uses the full size, which can write beyond the request buffer.
Which systems are exposed?
Systems running the Linux kernel with the mpi3mr driver and accepting BSG passthrough requests to that driver are relevant. The provided information does not identify affected kernel versions or whether this interface is accessible to unprivileged local users.
What is the mitigation if an updated kernel cannot be deployed immediately?
Restrict access to BSG passthrough requests for mpi3mr-managed devices so untrusted users or workloads cannot submit crafted requests. The provided fix widens the size-check variable and limits copying to the checked amount.