CVE-2026-139720: scsi: mpi3mr: Fix use-after-free of the firmware event workqueue
In the Linux kernel, the following vulnerability has been resolved:
scsi: mpi3mr: Fix use-after-free of the firmware event workqueue
The enqueue path reads the workqueue pointer before taking the event lock, while the remove path clears that pointer and destroys the workqueue while holding it. The enqueue can therefore reach queuework() after the workqueue is gone.
Move the check inside the lock.
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 scsi: mpi3mr enqueue path, move the workqueue-pointer check inside the event lock so the remove path cannot destroy the workqueue while enqueue is using it.
Event History
Frequently Asked Questions
Under what condition can the use-after-free occur?
It requires a race between firmware-event enqueueing and device removal. The enqueue path can read the workqueue pointer before taking the event lock, while removal clears and destroys that workqueue under the lock, allowing queue_work() to be called after destruction.
What does the fix change to prevent the race?
The workqueue-pointer check is moved inside the event lock. This prevents enqueueing from acting on a workqueue that the removal path has cleared and destroyed.