Linux kernel denial of service in nvmet
Only affects the Linux kernel nvmet target over RDMA, not nvmet-tcp, from commit b71df12605ca onward. Fixed by upstream patch 89480d137bf0d943a82c64f86ae2407a15276b5e.
- Exploited
- No known exploitation
- Fix
- Vendor patch: 89480d137bf0d943a82c64f86ae2407a15276b5e
- Who is exposed
- Not reported
Summary
In the Linux kernel's nvmet code, a Connect request with a queue size of 0 can clear a controller reference set by another connection, leaking controllers until reboot and hanging queue teardown. Over RDMA, a host can trigger this by sending two Connect requests together, and any host can do so on the discovery subsystem.
Written by a model
Original 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.
Who should check
Teams running Linux kernels with the NVMe-oF target (nvmet) over RDMA, including RoCEv2 and iWARP setups; nvmet-tcp is not affected.
“Over RDMA a host can send two Connects”
What to do
Apply the vendor's patch: 89480d137bf0d943a82c64f86ae2407a15276b5e.
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-139149 (nvmet: don't clear sq->ctrl for a Connect with sqsize 0), 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-139149 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 5.15
Vendor patches: 89480d137bf0d943a82c64f86ae2407a15276b5e (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6c6d541fdc556659d6e8d6d608d38fe03bbd82cd). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- Linux kernel nvmet target over RDMA; nvmet-tcp is not affected (source: https://www.cve.org/CVERecord?id=CVE-2026-139149)
- Kernels with commit b71df12605ca, where the cmpxchg() comes after the sqsize checks (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6c6d541fdc556659d6e8d6d608d38fe03bbd82cd)
- A second Connect with sqsize 0 arrives while the first Connect is still pending (source: https://www.cve.org/CVERecord?id=CVE-2026-139149)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-139149 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139149 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/6c6d541fdc556659d6e8d6d608d38fe03bbd82cd
- https://git.kernel.org/stable/c/b6c4b529ef42c6995a75c2384a19fbd4f3740bb0
- https://git.kernel.org/stable/c/24177b0909ed41af78e7b5f73e864bfc116fd806
- https://git.kernel.org/stable/c/6c28bf6920b09baec6852d3ca58b52778e1464b9
- https://git.kernel.org/stable/c/24b9e5fb0e160802950aa0caba19576edcc9094e
- https://git.kernel.org/stable/c/961ff9e3a453665574fa143ea5f496b97350333a
- https://git.kernel.org/stable/c/89480d137bf0d943a82c64f86ae2407a15276b5e
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6c6d541fdc556659d6e8d6d608d38fe03bbd82cd
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-139149
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-139149"}.Affected versions
- Linux LinuxVersion range not reported
- Linux Linux5.15
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity7.5/10CVSS 7.5
- No patch0/5No signal
What would change the score
- Would score about 90 if added to CISA KEV
- Would score about 85 if CISA's SSVC rates exploitation active
- Would score about 50 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
- Posted on X by cve.now
Evidence 9
Questions about CVE-2026-139149
Is CVE-2026-139149 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 second NVMe-oF Fabrics Connect request with queue ID 0 and sqsize 0 arriving while the first Connect is still pending makes the target leak a controller and its controller ID until reboot. Repeated hits can exhaust the controller IDs so later Connects fail for all hosts, and can hang queue teardown when an AER is pending.
Source: cve.org, git.kernel.org
Which versions are affected by CVE-2026-139149?
Linux: version 5.15.
Source: cve.now feed data
Am I affected, and how do I check?
Affected kernels are those with commit b71df12605ca, where the cmpxchg() runs after the sqsize checks, and the nvmet target over RDMA. nvmet-tcp is not affected because it has only one queue->connect slot. To check, compare your kernel version or source tree against that commit and see whether nvmet-rdma is in use.
Source: cve.org, git.kernel.org
How do I fix CVE-2026-139149?
Apply upstream patch 89480d137bf0d943a82c64f86ae2407a15276b5e, which returns the status directly as the later checks do. No fixed kernel version is named in the facts.
Source: cve.org, git.kernel.org
Related
- CVE-2026-139801KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
- CVE-2026-139799mm/shmem: hold off eviction in shmem_writeout()
- CVE-2026-139792ALSA: pcm: Prevent O_APPEND open on OSS streams
- CVE-2026-139788cipso: stop modifying live ip_options_rcu
- CVE-2026-139786mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
- CVE-2026-1398009p/xen: drain response work after unbinding IRQ
No corrections so far. Something wrong on this page? Report an error.