CVE-2026-143283: nvmet-rdma: take a device off the list last
In the Linux kernel, the following vulnerability has been resolved:
nvmet-rdma: take a device off the list last
nvmetrdmaremoveone() disconnects the queues of a device and flushes nvmet-wq, but since commit a3dd7d0022c3 it returns right away if the device isn't on devicelist. nvmetrdmafreedev(), run by the release work of the last queue, takes the device off that list first and frees the SRQs and the PD afterwards. A device removal in between finds nothing on the list, returns, and the RDMA core frees the device under ibdeallocpd().
Free the SRQs and the PD first and unlist the device last, so the remove callback finds it and its flush waits for the release work.
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.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch a3dd7d0022c3
Event History
Frequently Asked Questions
Which systems are exposed to this race condition?
The issue affects Linux kernel systems using the nvmet-rdma path, where an RDMA device can be removed while release work for the device's last queue is running.
What sequence causes the unsafe device free?
The race occurs when nvmet_rdma_free_dev() removes a device from device_list before freeing its SRQs and protection domain, and device removal happens in that interval. The remove callback then finds no listed device and returns without waiting for the queue release work, allowing the RDMA core to free the device during protection-domain deallocation.
What does the fix change?
The fix frees the SRQs and protection domain before removing the device from device_list. This ensures a concurrent remove callback can still find the device and flush the work that releases it.