CVE-2026-139121

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

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

Analysis

AI-generated

Technical impact

The vulnerability arises when the Linux kernel’s block multiqueue subsystem exits and replaces hardware context structures under an inconsistent locking model, causing those contexts to be left unfreed. This results in a resource leak of essential queue context objects, which can progressively consume kernel memory and degrade system performance or ultimately cause a denial of service. The weakness reflects a race condition in resource management that allows configuration or runtime operations to interfere with proper cleanup operations.

Affected Systems

This issue affects the Linux kernel’s block device subsystem, specifically the blk_mq component that manages queue context objects for block devices. The patch shipped in recent kernel releases, such as those following the commits linked in the references, addresses the problematic update and exit procedures. No specific kernel release is listed here, but all affected systems running an unpatched kernel with enabled blk_mq support are susceptible.

Risk and Exploitability

The risk is significant due to the potential for arbitrary memory exhaustion without requiring user credentials; the internal nature of the bug means exploitation would need to trigger high-frequency device resets or similar repeated operations. The EPSS score is currently unavailable, and the vulnerability is not in the CISA KEV catalog, but the severity of the resource leak suggests a high likelihood of impacting availability in environments with heavy block I/O workloads. The attack vector is likely local or via privileged operations that can initiate device resets; remote exploitation is not directly supported by the description.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that contains the blk_mq context cleanup fix, as released in recent stable kernels.
  • If an upgrade is not immediately possible, adjust system configuration to reduce or disable frequency of block device resets or modes that trigger nvme_alloc_ns operations.
  • Monitor kernel logs for abnormal resource exhaustion or error messages related to blk_mq contexts and apply corrective action if buildup is detected.

Generated by OpenCVE AI on November 30, 2026 at 20:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-399
Type Values Removed Values Added
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.
Title blk-mq: exit the hctxs of 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-399

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:31 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM