CVE-2026-143281: nvmet-rdma: disconnect a queue on device removal
In the Linux kernel, the following vulnerability has been resolved:
nvmet-rdma: disconnect a queue on device removal
cmaremoveone() sends DEVICEREMOVAL to the owner of every cmid on the device and then waits, without timeout, until they're all destroyed. nvmetrdmadeviceremoval() does nothing for a queue cmid and leaves the queues to nvmetrdmaremoveone(), which only works if that runs first. As a module it does, nvmet-rdma registers after rdmacm. Built in, both register at the same initcall level and drivers/Makefile lists nvme/ ahead of infiniband/, so cmaremoveone() runs first and waits for cmids that only the later callback would destroy. Since the RDMA CM drops all later events for a cmid once it has sent DEVICEREMOVAL, a peer closing its connection doesn't help either. One connection from anyone who can reach the port hangs "rdma link delete" until something else ends the queue.
Call nvmetrdmaqueuedisconnect() for the queue. It unlists the queue and queues the release work, which destroys the cmid. Don't wait for it, rdmadestroyid() waits for the handler to return, which was the deadlock before commit f1d4ef7d8883.
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 - Compensating control
In nvmet_rdma_device_removal(), call nvmet_rdma_queue_disconnect() for the queue.
Event History
Frequently Asked Questions
Who is exposed to this issue?
Systems using the Linux kernel's NVMe target RDMA transport are exposed when an RDMA device is removed while it has an active queue connection. A party able to reach the NVMe-RDMA port can create the connection that triggers the hang.
What is the operational impact?
Removing the RDMA link can hang indefinitely because RDMA CM waits for queue cm_ids to be destroyed. Closing the peer connection after DEVICE_REMOVAL does not resolve the hang, because later events for that cm_id are dropped.
Are built-in and module configurations affected in the same way?
The problematic ordering is described for built-in configurations, where nvmet-rdma and rdma_cm register at the same initcall level and NVMe initialization precedes InfiniBand. When nvmet-rdma is a module, it registers after rdma_cm, so its removal callback runs first.
What change resolves the deadlock?
The fix disconnects the affected queue during device removal using nvmet_rdma_queue_disconnect(). This unlists the queue and schedules release work to destroy its cm_id without waiting in the device-removal callback.