CVE-2026-143285: nvmet-rdma: disconnect only established queues
In the Linux kernel, the following vulnerability has been resolved:
nvmet-rdma: disconnect only established queues
Over iWARP, rdmadisconnect() sleeps in iwcmdisconnect() until the ESTABLISHED event of the connection has been handled, and iwcm handles all events of all connections one at a time on iwcmwq. nvmetrdmadestroyportqueues(), nvmetrdmaremoveone() and nvmetrdmadeletectrl() walk the queue list with nvmetrdmaqueuemutex held and call rdmadisconnect() for each, while nvmetrdmacmhandler() takes the same mutex. If the walk sleeps on a queue whose ESTABLISHED is queued behind another queue's event, both are stuck and iWARP connection handling is dead until reboot. A peer sets that up by connecting in a loop, or over siw by asking for MPA peer-to-peer mode and then staying silent, which delays ESTABLISHED indefinitely.
Only call rdmadisconnect() for a queue in NVMETRDMAQLIVE, which the handler sets when it gets ESTABLISHED. A queue that never got there is left to the release work: ibdrainqp() moves the QP to the error state, which ends the connection, and rdmadestroyid() tells the peer. Over IB and RoCE the skipped call did nothing more than that.
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.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, call rdma_disconnect() only for queues in NVMET_RDMA_Q_LIVE.
Event History
Frequently Asked Questions
Which deployments are most exposed to this deadlock?
Linux NVMe target deployments using NVMe-oF RDMA over iWARP are most exposed. The issue can also be triggered with SoftiWARP (siw) when a peer requests MPA peer-to-peer mode and remains silent.
What must an attacker or peer do to trigger the condition?
A peer can repeatedly initiate connections so that an ESTABLISHED event is delayed behind another connection event. With siw, requesting MPA peer-to-peer mode and then staying silent can delay ESTABLISHED indefinitely.
What is the operational impact if the condition is triggered?
iWARP connection handling can deadlock because queue teardown holds the queue mutex while waiting in rdma_disconnect(), while the connection handler needs that same mutex. Connection handling remains stuck until reboot.
How does the fix avoid the deadlock?
The fix calls rdma_disconnect() only for queues that reached NVMET_RDMA_Q_LIVE after receiving ESTABLISHED. Queues that never became live are cleaned up by release work, which drains the QP and destroys the RDMA ID.
Does the changed behavior affect InfiniBand or RoCE teardown?
For InfiniBand and RoCE, skipping rdma_disconnect() for queues that never reached the live state does not change the effective cleanup behavior described here. The skipped call did no more than the subsequent cleanup actions.