Skip to main content
Menu
CVEs

Linux kernel use-after-free in nvmet-rdma via double reference puts

Affects Linux kernel nvmet-rdma targets that enable T10-PI for reads, which needs two configfs opt-ins plus a CRC-profile block device and an mlx5 HCA on RoCEv2. CVSS scores it 8.1 (high), and no vendor rating or fixed version is listed.

CVE-2026-139150EUVD-2026-138704GHSA-QJRH-8PGX-2C8HPublished November 30, 2026, updated

8.1HighCNA
Exploited
No known exploitation
Fix
No fix listed
Who is exposed
Specific setups only

Summary

Written by a model

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.

What to do

  1. Check whether your setup matches what the bug needs.

    Target uses T10-PI for reads: the port's param_pi_enable and the subsystem's attr_pi_enable must both be turned on. A backing block device with a CRC integrity profile is needed. An mlx5 HCA is needed (PI requires mlx5 IBK_INTEGRITY_HANDOVER).
  2. Workaround: Leaving both configfs PI opt-ins off, which is their default, keeps the T10-PI read path that the bug needs out of use. The checked facts give no other workaround.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-139150 (nvmet-rdma: fix double puts after a failed RDMA WRITE), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-139150 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 5.8
Fixed versions: none listed yet.
Conditions (all must be true for the bug to be hit):
- Target uses T10-PI for reads: the port's param_pi_enable and the subsystem's attr_pi_enable must both be turned on. (source: https://www.cve.org/CVERecord?id=CVE-2026-139150)
- A backing block device with a CRC integrity profile is needed. (source: https://www.cve.org/CVERecord?id=CVE-2026-139150)
- An mlx5 HCA is needed (PI requires mlx5 IBK_INTEGRITY_HANDOVER). (source: https://www.cve.org/CVERecord?id=CVE-2026-139150)
Setup: the bug needs a feature or setting that is off by default or uncommon. Check whether each asset has it on.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-139150 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139150 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- 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
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-139150
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-139150"}.

Affected versions

cve.now Index

45Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure12/25Specific setups only, reachable over the network without a login
  • Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
  • Severity8.1/10CVSS 8.1
  • No patch5/5No patch listed yet

What would change the score

  • Would score about 95 if added to CISA KEV
  • Would score about 90 if CISA's SSVC rates exploitation active

Timeline

  1. CVE published
  2. First seen by cve.now1 day
  3. Record last updated
  4. Posted on X by cve.now

Evidence 10

Questions about CVE-2026-139150

Is CVE-2026-139150 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

What does this mean?

A failed RDMA WRITE in the NVMe-oF RDMA target code leads to double puts, which corrupt a reference count and cause a heap use-after-free in the target kernel. The advisory says this can be turned into a read primitive and can also hang queue teardown and namespace disable.

Source: cve.org

Which versions are affected by CVE-2026-139150?

Linux: version 5.8.

Source: cve.now feed data

Am I affected, and how do I check?

The bug is in the Linux kernel nvmet-rdma target and needs T10-PI for reads: the port's param_pi_enable and the subsystem's attr_pi_enable must both be on, and both are off by default. It also needs a backing block device with a CRC integrity profile and an mlx5 HCA, which runs on RoCEv2. Check those settings in configfs and the hardware on the target host.

Source: cve.org

How do I fix CVE-2026-139150?

The checked facts list no fixed kernel version and no patch identifiers, so no upgrade target can be given from them. Check the advisory or your kernel vendor for a fix.

Source: cve.org

What if there's no patch?

Leaving both configfs PI opt-ins off, which is their default, keeps the T10-PI read path that the bug needs out of use. The checked facts give no other workaround.

Source: cve.org

No corrections so far. Something wrong on this page? Report an error.