Skip to main content
Menu
CVEs

Linux kernel race condition in block layer teardown

Affects Linux kernel blk-mq when a queue is torn down while the hardware queue count is being updated on the same tag set, such as NVMe disks dropped during a reset. The facts name no fixed release.

CVE-2026-139121EUVD-2026-138675GHSA-G94F-HWJ8-RQ9QPublished November 30, 2026, updated

9.8CriticalCNA
Exploited
No known exploitation
Fix
Fixed in 4.15, 4.20, 5.5, 5.11, 5.12, and 1 more
Who is exposed
Not reported

Summary

A race condition in the Linux kernel's block layer lets the queue-teardown code and a hardware-queue update run at the same time without proper locking, which leaves queue resources that are never cleaned up. Per its severity rating, an attacker could reach this remotely without logging in and gain high-level control over confidentiality, integrity and availability.

Written by a model

Original description

In the Linux kernel, the following vulnerability has been resolved:

blk-mq: exit the hctxs of a queue under tag_list_lock

blk_mq_update_nr_hw_queues() exits and replaces the hctxs of every queue on set->tag_list under tag_list_lock. blk_mq_exit_queue() exits its hctxs without the lock and only then takes the queue off the list, so an update running at the same time exits them again and sets up new ones that nobody exits. del_gendisk() is kept away by update_nr_hwq_lock, disk_release() of a never added disk and blk_mq_destroy_queue() are not, and nvme_alloc_ns() drops such a disk when it finds the queues frozen by a reset.

Hold tag_list_lock for both steps.

Who should check

Teams running Linux kernels with blk-mq, especially hosts using NVMe over TCP fabrics (NVMe/TCP) controllers that could connect to an untrusted target.

“blk_mq_update_nr_hw_queues() exits and replaces the hctxs of every queue on set->tag_list under tag_list_lock.”

git.kernel.org

What to do

Upgrade to a fixed version: 4.15, 4.20, 5.5, 5.11, 5.12, or one of 1 more.

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-139121 (blk-mq: exit the hctxs of 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-139121 (entry last updated 2026-12-01):
Affected:
- Linux Linux: from 4.14.233, fixed in 4.15; from 4.19.191, fixed in 4.20; from 5.4.120, fixed in 5.5; from 5.10.38, fixed in 5.11; from 5.11.22, fixed in 5.12; from 5.12.5, fixed in 5.13
- Linux Linux: versions 5.13
Fixed versions: 4.15, 4.20, 5.5, 5.11, 5.12, 5.13.
Conditions (all must be true for the bug to be hit):
- Linux kernel blk-mq: a queue's hctxs are exited in blk_mq_exit_queue() while blk_mq_update_nr_hw_queues() runs at the same time on the same tag set (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a6f435cba9508e6ee9f81c1b32ebce9e90031023)
- Queue teardown paths not protected by update_nr_hwq_lock: disk_release() of a never added disk and blk_mq_destroy_queue() (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a6f435cba9508e6ee9f81c1b32ebce9e90031023)
- NVMe: nvme_alloc_ns() drops a disk when it finds the queues frozen by a reset (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a6f435cba9508e6ee9f81c1b32ebce9e90031023)
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-139121 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139121 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/a6f435cba9508e6ee9f81c1b32ebce9e90031023
- https://git.kernel.org/stable/c/f179c59bea9959901d6b9f0a7e45c170d6fbb2e3
- https://git.kernel.org/stable/c/2aa679bff2e9a90f8a39e769ccb0b03d945a5c52
- https://git.kernel.org/stable/c/b11079315bcbe2bd947e5e819e5f5c03451afc61
- https://git.kernel.org/stable/c/89a2381482d8ff8e4fe0b7d32797bb4f77503b89
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a6f435cba9508e6ee9f81c1b32ebce9e90031023
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-139121
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-139121"}.

Affected versions

cve.now Index

47Pof 100 · provisional · methodology v3
  • 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

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

Evidence 7

Questions about CVE-2026-139121

Is CVE-2026-139121 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?

In the Linux kernel's blk-mq code, a queue's hardware queue contexts are exited without the tag-set lock. A hardware queue count update running at the same time can exit them again and set up new ones that nobody exits. This corrupts kernel heap memory (use-after-free, double free) and can cause a kernel crash, hung I/O on the controller, or control-flow hijack.

Source: git.kernel.org, cve.org

Which versions are affected by CVE-2026-139121?

Linux: from 4.14.233 before 4.15; from 4.19.191 before 4.20; from 5.4.120 before 5.5; from 5.10.38 before 5.11; from 5.11.22 before 5.12; from 5.12.5 before 5.13. Linux: version 5.13.

Source: cve.now feed data

Am I affected, and how do I check?

The listed Linux ranges are 4.14.233 up to 4.15, 4.19.191 up to 4.20, 5.4.120 up to 5.5, 5.10.38 up to 5.11, 5.11.22 up to 5.12 and 5.12.5 up to 5.13. The risky paths are disk_release() of a never added disk and blk_mq_destroy_queue(), plus NVMe cases where nvme_alloc_ns() drops a disk after a reset froze the queues. Running `uname -r` shows the kernel version to compare with these ranges.

Source: git.kernel.org, cve.org

How do I fix CVE-2026-139121?

The checked facts give no fixed version or patch ids. Check the Linux kernel stable release notes or the distribution's security advisory for a kernel update that includes the change "blk-mq: exit the hctxs of a queue under tag_list_lock".

Source: git.kernel.org, cve.org

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