Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139150

published high CVSS 3.1 · 8.1

nvmet-rdma: fix double puts after a failed RDMA WRITE

Published
30 Nov 2026, 13:32:02 UTC
Updated
01 Dec 2026, 05:41:35 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxb09160c3996c11d62a08f9534c755103a10a89b4 to < 04284e1aaa2644d0545b4da5796032b9bbaf3bf7 · b09160c3996c11d62a08f9534c755103a10a89b4 to < 8ad99847a4404d6511e9dc96d3424145594dc878 · b09160c3996c11d62a08f9534c755103a10a89b4 to < 96ef50841a6b1dd9aca7e6161306574c16f9dab7 · b09160c3996c11d62a08f9534c755103a10a89b4 to < 924393942038ea82073719ce999cc7272584f40e · b09160c3996c11d62a08f9534c755103a10a89b4 to < 5355474f0cef789cf22236351cf18d09ffa46984 · b09160c3996c11d62a08f9534c755103a10a89b4 to < 7adbb35416225a013739854fc5014417a835b4ad · b09160c3996c11d62a08f9534c755103a10a89b4 to < 79c4b29b0520d52010caf94bc7b1b44c3e9de6f1 · b09160c3996c11d62a08f9534c755103a10a89b4 to < f1dac2a2e75260d1466d9f03ccf0944d6d0449a4 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
8.1 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The fix patches nvmet_rdma_write_data_done(), which runs when the RDMA WRITE that nvmet_rdma_queue_response() posts for a PI-enabled Read fails. The host controls that failure: the rkey in the Read capsule's keyed SGL (nvmet_rdma_map_sgl_keyed) causes REM_ACCESS_ERR, and dropping the connection causes FLUSH_ERR. PI requires mlx5 (IBK_INTEGRITY_HANDOVER), which runs on RoCEv2, a routable fabric. AC:H - ctrl->pi_support needs two configfs opt-ins, both off by default: the port's param_pi_enable and the subsystem's attr_pi_enable. It also needs a bdev with a CRC integrity profile and an mlx5 HCA. The attacker cannot create that configuration. The UAF outcome also needs another read still at the backing device after the early zero. PR:N - nvmet_req_init() and the RDMA CM connect path check only the hostnqn the host asserts in the Connect capsule, unless the optional DH-HMAC-CHAP is configured. An unauthenticated fabric peer can therefore open an I/O queue and issue Reads, much like an AUTH_SYS client. UI:N - No victim action is needed. The remote host issues the Read and then makes the WRITE fail or flush itself, through its rkey or its own disconnect. S:U - The refcount corruption and use-after-free stay inside the target kernel's own nvmet structures (nvmet_rdma_queue, the rsps array, and the sq/ns percpu_refs). No VM, IOMMU or sandbox boundary is crossed. C:H - When other in-flight reads drive sq->ref to zero early, nvmet_rdma_free_queue() kfree()s the queue and rsps array. A late nvmet_bio_done()->nvmet_req_complete() then dereferences req->sq and req->ops from freed memory, a heap UAF that can be turned into a read primitive. I:H - The same late completion writes cqe fields into the freed rsp. It also calls req->ops->queue_response through a pointer loaded from freed memory, so reallocated contents control an indirect call. A:H - With nothing else outstanding, the extra put leaves sq->ref at -1 after percpu_ref_kill_and_confirm(), so nvmet_sq_destroy() waits on free_done forever, and repeated connects hang more teardown workers. The undercounted ns->ref makes nvmet_ns_disable() hang, and a put after percpu_ref_exit() dereferences NULL.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux b09160c3996c11d62a08f9534c755103a10a89b4 to < 04284e1aaa2644d0545b4da5796032b9bbaf3bf7 (affected · git)b09160c3996c11d62a08f9534c755103a10a89b4 to < 8ad99847a4404d6511e9dc96d3424145594dc878 (affected · git)b09160c3996c11d62a08f9534c755103a10a89b4 to < 96ef50841a6b1dd9aca7e6161306574c16f9dab7 (affected · git)b09160c3996c11d62a08f9534c755103a10a89b4 to < 924393942038ea82073719ce999cc7272584f40e (affected · git)b09160c3996c11d62a08f9534c755103a10a89b4 to < 5355474f0cef789cf22236351cf18d09ffa46984 (affected · git)b09160c3996c11d62a08f9534c755103a10a89b4 to < 7adbb35416225a013739854fc5014417a835b4ad (affected · git)b09160c3996c11d62a08f9534c755103a10a89b4 to < 79c4b29b0520d52010caf94bc7b1b44c3e9de6f1 (affected · git)b09160c3996c11d62a08f9534c755103a10a89b4 to < f1dac2a2e75260d1466d9f03ccf0944d6d0449a4 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.8 (affected)0 to < 5.8 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

nvmet-rdma: fix double puts after a failed RDMA WRITE

Provenance

Schema
5.2
Searchable
yes
Content hash
880f68234393f376c48695ec1caf34f3c67e9e7e09957d72e682dd74e7051c29
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected