CVE-2026-139150

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

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises from an incorrect double free of reference counters in the Linux kernel’s NVMe over RDMA path. A failed RDMA WRITE triggers a cleanup that releases the request’s reference counts twice, causing the count for the request, its queue, or its namespace to drop below zero. This mismanagement can lead to a non‑linkable destruction path, a pending destroy that never wakes its waiters, or a NULL dereference, all of which would crash the kernel. The weakness is a reference‑counting bug that can be exploited to crash or destabilize the system in an environment that hosts or manages NVMe targets.

Affected Systems

The bug is present in all Linux kernel releases that contain the nvmet‑rdma code without the post‑patch revision. No specific kernel versions are enumerated, so any kernel that includes the legacy nvmet‑rdma implementation is potentially affected. Vendors such as Red Hat, Canonical, and others that ship standard kernel images must ensure this code is updated.

Risk and Exploitability

The CVSS score and EPSS data are not provided, and the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a remote NVMe target that receives a failing RDMA WRITE from a connected host; this requires timing between the host write and host‑initiated read operations. Because the exploit hinges on a specific RDMA transaction failure, exploitation is not trivial but can be engineered with a compatible host. If triggered, the kernel crash results in a denial of service, potentially freezing the entire system. Given this high impact and the absence of an alternate mitigative configuration, the overall risk is moderate to high.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the nvmet‑rdma double‑free fix.
  • Reboot the host to load the updated kernel.
  • If a kernel upgrade is not possible, disable NVMe over RDMA support in the kernel configuration (e.g., set CONFIG_NVME_RDMA to n) or unload the RDMA driver before restarting the target.

Generated by OpenCVE AI on November 30, 2026 at 19:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
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.
Title nvmet-rdma: fix double puts after a failed RDMA WRITE
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM