CVE-2026-139732: scsi: mpi3mr: Fix target device reference leak in BSG task management
In the Linux kernel, the following vulnerability has been resolved:
scsi: mpi3mr: Fix target device reference leak in BSG task management
The target device lookup takes a reference, but it is only dropped inside a branch that also requires the SCSI target data to be set up. When it is not, the reference is leaked.
Drop the reference whenever the lookup succeeded.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Drop the target device reference whenever the lookup succeeds, including when the SCSI target data is not set up.
Event History
Frequently Asked Questions
Under what condition does the reference leak occur?
The leak occurs when BSG task management successfully looks up a target device but the associated SCSI target data has not been set up. In that path, the prior logic did not drop the reference obtained by the lookup.
What component is involved in the affected code path?
The issue is in the Linux kernel SCSI mpi3mr driver's BSG task-management handling. Systems using that driver and invoking this path are the relevant exposure scope described by the available data.
What does the fix change?
The fix drops the target-device reference whenever the lookup succeeds, rather than only when the SCSI target data is present.