nvmet-rdma: fix double puts after a failed RDMA WRITE
CVE-2026-139150Published 30 Nov 2026, 13:32 UTC
Real-world risk
3.8/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.1
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from Linux)
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 nvmet_rdma_write_data_done() posts the SEND once the metadata check result is known. By then the request has been completed and its references put: __nvmet_req_complete() put ns->ref and the pc_ref, and nvmet_req_complete() sq->ref, right after queuing the response. The error branch of nvmet_rdma_write_data_done() copies the one from nvmet_rdma_read_data_done() and calls nvmet_req_uninit(), 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 nvmet_sq_destroy() sleeps forever, or percpu_ref_put() dereferences NULL after percpu_ref_exit(). 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 nvmet_req_uninit(). The branch still releases the RDMA context and the response, which is all the request owns at that point.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Linux kernelUbiquitous | = 5.8 | 7.4-rc1 |
What to do
Update to a fixed version: 7.4-rc1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.6% chance of exploitation in 30 days (percentile 52), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.45 × threat 0.853.825
- Rounded to one decimal between 0.1 and 103.8
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 3 Dec 2026 Risk 3.8 (cvss fallback)
Weakness
No weakness type given.
References
- https://git.kernel.org/stable/c/04284e1aaa2644d0545b4da5796032b9bbaf3bf7
- https://git.kernel.org/stable/c/8ad99847a4404d6511e9dc96d3424145594dc878
- https://git.kernel.org/stable/c/96ef50841a6b1dd9aca7e6161306574c16f9dab7
- https://git.kernel.org/stable/c/924393942038ea82073719ce999cc7272584f40e
- https://git.kernel.org/stable/c/5355474f0cef789cf22236351cf18d09ffa46984
- https://git.kernel.org/stable/c/7adbb35416225a013739854fc5014417a835b4ad
- https://git.kernel.org/stable/c/79c4b29b0520d52010caf94bc7b1b44c3e9de6f1
- https://git.kernel.org/stable/c/f1dac2a2e75260d1466d9f03ccf0944d6d0449a4
- CVE-2026-139150 on CVE.org