CVE-2026-139149

nvmet: don't clear sq->ctrl for a Connect with sqsize 0

Published Nov 30, 2026 CVSS 3.1 · 7.5 High EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

nvmet: don't clear sq->ctrl for a Connect with sqsize 0

nvmet_install_queue() checks sqsize first and jumps to err on zero,
where sq->ctrl is set to NULL. Since commit b71df12605ca the cmpxchg()
that sets sq->ctrl comes after the checks, so err now undoes a bind
that this call never made. Over RDMA a host can send two Connects
together and the second is parsed before the first executes, so a
second Connect with sqsize 0 clears the sq->ctrl the first one set.
The reference it held is never dropped and the controller leaks, with
its cntlid, until reboot. The discovery subsystem lets any host do
that, 20 connections leak around 10 controllers. A pending AER on such
a queue hangs nvmet_sq_destroy() forever, and a queue can keep its
"authenticated" mark across a rebind.

Return the status directly, as the two checks after it do, so err is
only reached after this call's cmpxchg() succeeded.

Analysis

AI-generated

Technical impact

In the Linux kernel nvmet subsystem, a bug prevents a queue‑control pointer from being cleared when a Connect request carries a queue size of zero. Based on the description, it is inferred that this flaw is triggered when an RDMA host sends two Connect messages back‑to‑back; the second message clears the pointer set by the first, leaving an unreleased controller reference that persists until the machine reboots. The resulting leak can accumulate dozens of controller structures, exhausting kernel memory and potentially causing nvmet queue destruction to hang, rendering the nvmet service unusable for the duration of the crash.

Affected Systems

All Linux kernel releases that include the nvmet subsystem before the patch commit b71df126 are impacted. The vulnerability exists in the generic Linux kernel code, irrespective of distribution or version, so any system running the unpatched nvmet code is vulnerable. No vendor‑specific or version identifiers were supplied, so the full scope is the entire Linux kernel environment.

Risk and Exploitability

The likely attack vector is remote over the network, as the vulnerability is exploitable by an RDMA‑capable host that can send two Connect requests in rapid succession. Based on the description, it is inferred that the attacker needs RDMA connectivity to the target system. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, yet the description indicates a denial‑of‑service impact through resource exhaustion and service hang. Because the bug manipulates kernel pointers, a successful exploit depends on the attacker’s ability to send the special RDMA frames, which is achievable with standard RDMA tools. The overall risk is therefore considered elevated for systems exposed to external RDMA traffic.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that includes commit b71df126 or upgrade to a kernel version that contains the fix
  • Restart the nvmet service or reboot the system to clear any leaked controllers
  • If immediate patching is not possible, restrict or disable RDMA connectivity from untrusted hosts or monitor for abnormal nvmet queue activity

Generated by OpenCVE AI on December 1, 2026 at 09:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-400
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: nvmet: don't clear sq->ctrl for a Connect with sqsize 0 nvmet_install_queue() checks sqsize first and jumps to err on zero, where sq->ctrl is set to NULL. Since commit b71df12605ca the cmpxchg() that sets sq->ctrl comes after the checks, so err now undoes a bind that this call never made. Over RDMA a host can send two Connects together and the second is parsed before the first executes, so a second Connect with sqsize 0 clears the sq->ctrl the first one set. The reference it held is never dropped and the controller leaks, with its cntlid, until reboot. The discovery subsystem lets any host do that, 20 connections leak around 10 controllers. A pending AER on such a queue hangs nvmet_sq_destroy() forever, and a queue can keep its "authenticated" mark across a rebind. Return the status directly, as the two checks after it do, so err is only reached after this call's cmpxchg() succeeded.
Title nvmet: don't clear sq->ctrl for a Connect with sqsize 0
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:41 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM