CVE-2026-139719: scsi: mpi3mr: Fix NULL pointer dereference on PCI error recovery
In the Linux kernel, the following vulnerability has been resolved:
scsi: mpi3mr: Fix NULL pointer dereference on PCI error recovery
On a frozen PCI channel the driver unmaps the register window and frees the interrupts, but leaves the firmware event workqueue running. An event handler that is already in flight can still reach the register window after it has been unmapped.
Stop event processing and drain the queue first, and start it again when the channel resumes.
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.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
For the scsi: mpi3mr driver, stop event processing and drain the firmware event workqueue before unmapping the register window; restart event processing when the PCI channel resumes.
Event History
Frequently Asked Questions
What conditions are required to trigger the issue?
The PCI channel must enter a frozen error-recovery state while mpi3mr firmware event processing is active. An event handler already in flight can then access the register window after the driver has unmapped it.
Which systems are realistically exposed?
Systems using the Linux kernel mpi3mr SCSI driver are exposed when they experience PCI error recovery involving a frozen channel. The issue concerns the driver's handling of firmware-event work during that recovery path.
What does the fix change?
The fix stops firmware event processing and drains the event workqueue before the driver unmaps the register window and frees interrupts. It restarts event processing when the PCI channel resumes.