AZL-118490: CVE-2026-143283 affecting package kernel 6.6.161.1-1
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.
- Compensating control
In nvmet_rdma_free_dev(), free the SRQs and PD before taking the device off the device list; unlist the device last.
Event History
Frequently Asked Questions
Which systems are exposed to this race condition?
The issue is in the nvmet-rdma path of the Linux kernel and involves RDMA devices serving NVMe target queues. The vulnerable sequence requires device removal to occur while the release work for the last queue is freeing the device resources.
Why does queue disconnection not reliably prevent the problem?
The remove callback normally disconnects queues and flushes nvmet-wq, but it returns immediately when the device has already been removed from device_list. In that state, the release work can still be freeing SRQs and the protection domain when the RDMA core frees the device.
What ordering change resolves the race?
SRQs and the protection domain must be freed before removing the device from device_list. Keeping the device listed until those resources are released ensures the remove callback can find it and wait for the release work to finish.