Linux kernel race in blk-mq queue setup frees shared tags
Affects the Linux kernel's block layer (blk-mq); a hostile or on-path NVMe over TCP target could trigger it on a host during a namespace scan. No fixed version is named; the patch id is 4fcc499ea9bc31b02393904a1903e794d146f5f7.
- Exploited
- No known exploitation
- Fix
- Vendor patch: 4fcc499ea9bc31b02393904a1903e794d146f5f7
- Who is exposed
- Not reported
Summary
A race condition in the Linux kernel's block layer (blk-mq) can cause a newly created queue to free tags that other queues share, which can happen when an NVMe controller reset occurs during a namespace scan. Based on the severity rating, an attacker could reach this remotely without logging in, potentially gaining full control over confidentiality, integrity and availability of the affected system.
Written by a model
Original description
In the Linux kernel, the following vulnerability has been resolved:
blk-mq: set up a queue under tag_list_lock
blk_mq_init_allocated_queue() only takes tag_list_lock at the end, when it adds the queue to the set. Before that it sizes the queue by set->nr_hw_queues, hands out set->tags[], maps by set->map[], and blk_mq_map_swqueue() frees tags of the set. An update clearing the maps at that time makes the new queue free tags that all the other queues share. An NVMe controller reset during a namespace scan does exactly that.
Take the lock before the first look at the set. An update can be part of error handling, so the allocations under the lock must not wait for IO: memalloc_noio_save(), as in add_disk_fwnode().
Who should check
Teams running Linux kernels with blk-mq storage, especially NVMe (including NVMe/TCP hosts), where a controller reset can occur during a namespace scan.
“An update clearing the maps at that time makes the new queue free tags that all the other queues share. An NVMe controller reset during a namespace scan does exactly that.”
What to do
Apply the vendor's patch: 4fcc499ea9bc31b02393904a1903e794d146f5f7.
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-139120 (blk-mq: set up a queue under tag_list_lock), 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-139120 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 4.6
Vendor patches: 4fcc499ea9bc31b02393904a1903e794d146f5f7 (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e7e089b61901be0f4bac6b1d8c8f8e25cf178280). Check each asset for these patch ids, not only its version.
Conditions (all must be true for the bug to be hit):
- A new block queue is set up while a tag-set update (such as an NVMe controller reset during a namespace scan) clears the maps (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4fcc499ea9bc31b02393904a1903e794d146f5f7)
- NVMe over TCP host connected to a hostile or on-path target, per the CVSS scenario (source: https://www.cve.org/CVERecord?id=CVE-2026-139120)
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-139120 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139120 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/e7e089b61901be0f4bac6b1d8c8f8e25cf178280
- https://git.kernel.org/stable/c/515e211124113b4faecf3b0cb20087965286ee0c
- https://git.kernel.org/stable/c/4fcc499ea9bc31b02393904a1903e794d146f5f7
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e7e089b61901be0f4bac6b1d8c8f8e25cf178280
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4fcc499ea9bc31b02393904a1903e794d146f5f7
- https://www.cve.org/CVERecord?id=CVE-2026-139120
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-139120
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-139120"}.Affected versions
- Linux LinuxVersion range not reported
- Linux Linux4.6
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)
- Severity9.8/10CVSS 9.8
- No patch0/5No signal
What would change the score
- Would score about 92 if added to CISA KEV
- Would score about 87 if CISA's SSVC rates exploitation active
- Would score about 52 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 5
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-139120 |
| Record | NVD · CVE-2026-139120 |
| Other links 3 | |
| Link | git.kernel.org · stable/c/e7e089b61901be0f4bac6b1d8c8f8e25cf178280 |
| Link | git.kernel.org · stable/c/515e211124113b4faecf3b0cb20087965286ee0c |
| Link | git.kernel.org · stable/c/4fcc499ea9bc31b02393904a1903e794d146f5f7 |
Questions about CVE-2026-139120
Is CVE-2026-139120 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?
When the Linux kernel sets up a new block queue while a tag-set update clears the shared maps, the new queue can free tags that all the other queues share. That gives use-after-free reads and writes and out-of-bounds pointer writes in kernel memory, which can corrupt memory or crash the host and take down every namespace sharing the tag set.
Source: git.kernel.org, cve.org, git.kernel.org
Which versions are affected by CVE-2026-139120?
Linux: version 4.6.
Source: cve.now feed data
Am I affected, and how do I check?
The facts list the Linux kernel but give no version ranges. The trigger is a new block queue being set up during a tag-set update, such as an NVMe controller reset during a namespace scan. The CVSS scenario is an NVMe over TCP host connected to a hostile or on-path target. Readers can check their kernel version with uname -r and whether the host uses nvme-tcp, then compare against their distribution's advisory.
Source: git.kernel.org, cve.org, git.kernel.org
How do I fix CVE-2026-139120?
The advisory names no fixed version, only the patch commit 4fcc499ea9bc31b02393904a1903e794d146f5f7. The fix takes the lock before the first look at the tag set. Apply a kernel update that includes this patch.
Source: git.kernel.org, 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.