CVE-2026-139120

blk-mq: set up a queue under tag_list_lock

Published Nov 30, 2026 CVSS 3.1 · 9.8 Critical EPSS n/a KEV · Not listed
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().

Analysis

AI-generated

Technical impact

A race condition in the Linux kernel’s block multi‑queue subsystem allows blk_mq_init_allocated_queue() to add a new queue before the tag_list_lock protects the shared tag set. This can cause the new queue to free tags that are still in use by other queues, leading to a use‑after‑free and memory corruption in kernel space, which may culminate in kernel crashes, denial‑of‑service, or escalation of privilege.

Affected Systems

All installations of the Linux kernel that are older than the release containing the blk‑mq queue initialization fix are potentially affected. No particular kernel version range is specified in the advisory, so any kernel not yet patched by the kernel maintainers should be considered vulnerable.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, so no public exploitation evidence is reported in the CVE data. The abstract only indicates that an NVMe controller reset during a namespace scan can trigger the flaw; this suggests the attack requires local or privileged access to the affected system and a specific hardware event. Based on the supplied information, exploitability cannot be quantitatively assessed, and the risk level remains uncertain, though the need for a precise reset condition may limit the likelihood of successful attacks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that includes the blk‑mq queue initialization patch.
  • If an immediate kernel upgrade is not possible, avoid initiating NVMe controller resets while a namespace scan is in progress or temporarily power‑cycle the NVMe device during critical operations.
  • For custom kernel builds, ensure that tag_list_lock is held before any manipulation of the tag set and disable any build options that relax lock ordering or synchronization.

Generated by OpenCVE AI on December 1, 2026 at 08:54 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-362
CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
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().
Title blk-mq: set up a queue under tag_list_lock
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

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