CVE-2026-139150: nvmet-rdma: fix double puts after a failed RDMA WRITE
In the Linux kernel, the following vulnerability has been resolved:
nvmet-rdma: fix double puts after a failed RDMA WRITE
For a read with T10-PI the RDMA WRITE is posted alone and nvmetrdmawritedatadone() posts the SEND once the metadata check result is known. By then the request has been completed and its references put: nvmetreqcomplete() put ns->ref and the pcref, and nvmetreqcomplete() sq->ref, right after queuing the response. The error branch of nvmetrdmawritedatadone() copies the one from nvmetrdmareaddatadone() and calls nvmetrequninit(), which puts all three again. A WRITE fails whenever the connection ends with reads in flight, which is up to the host. Depending on timing the sq->ref count goes to zero early and the queue is freed under the remaining completions, or never reaches zero and nvmetsqdestroy() sleeps forever, or percpurefput() dereferences NULL after percpurefexit(). ns->ref stays too low for good, so disabling the namespace hangs too. Reproduced with KASAN over rxe with a test patch forcing the PI path.
Drop the nvmetrequninit(). The branch still releases the RDMA context and the response, which is all the request owns at that point.
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.275 - 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 Linux kernel nvmet-RDMA read-data completion path, drop the nvmet_req_uninit() call to prevent double puts after a failed RDMA WRITE.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel NVMe-over-Fabrics RDMA target path are exposed when handling reads with T10 protection information (T10-PI). The failure condition described occurs when an RDMA WRITE fails because the connection ends while reads are in flight.
What can trigger the faulty cleanup path?
A host can trigger it by ending the connection while reads are in flight, causing the RDMA WRITE to fail. The affected path is specifically the T10-PI read flow, where the RDMA WRITE is posted separately before the SEND response.
What are the operational effects if the issue occurs?
Depending on timing, the submission queue can be freed while completions remain, queue destruction can sleep indefinitely, or a percpu reference operation can dereference NULL after teardown. Namespace reference accounting can also remain too low, causing namespace disable operations to hang.
Is there a workaround if the fix cannot be deployed immediately?
The provided data identifies connection termination with reads in flight as the trigger. Avoiding such disconnects during T10-PI NVMe-oF RDMA read activity may reduce exposure, but no complete workaround is provided.