CVE-2026-139118

blk-mq: free the bitmaps of tags in the SRCU callback

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: free the bitmaps of tags in the SRCU callback

Commit ad0d05dbddc1 keeps struct blk_mq_tags and the requests until the
iterators under tags_srcu are gone, but the two bitmaps they walk are
still freed right away. When the number of hardware queues shrinks,
blk_mq_tagset_busy_iter() may be about to walk tags that
__blk_mq_update_nr_hw_queues() frees. sbitmap_free() clears the map
pointer, so that's a NULL dereference or a use-after-free, depending on
the timing.

Free the bitmaps with the rest in the callback.

Analysis

AI-generated

Technical impact

The flaw arises when the kernel frees bitmap structures associated with blk‑mq tags before ongoing iterators finish. Depending on timing, this can lead to a NULL dereference or a use‑after‑free, allowing an attacker who can influence I/O operations during the transition to corrupt kernel memory and potentially execute code with kernel privileges.

Affected Systems

The vulnerability exists in the Linux kernel’s block‑multiqueue subsystem and affects any installation that runs a kernel containing the buggy blk‑mq implementation before the secure commit. The specific version range is not listed in the provided data, so any kernel that has not applied the patch is potentially exposed.

Risk and Exploitability

Because the defect involves a use‑after‑free, the potential impact is high, but no CVSS score or EPSS value is supplied. The bug is not currently catalogued in the CISA KEV list. Exploitation would require an adversary with some ability to influence block‑I/O traffic, which could be achieved locally or via compromised services that generate I/O. In the absence of publicly available exploits, the risk remains theoretical but warrants prompt mitigation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply an updated Linux kernel that includes the fix for the blk‑mq tagset bug (commit ad0d05dbddc1).
  • If your system uses third‑party modules, recompile them against the updated kernel to ensure proper bindings.
  • Reboot the system into the patched kernel and monitor system logs for any residual I/O errors or crashes.

Generated by OpenCVE AI on November 30, 2026 at 19:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: blk-mq: free the bitmaps of tags in the SRCU callback Commit ad0d05dbddc1 keeps struct blk_mq_tags and the requests until the iterators under tags_srcu are gone, but the two bitmaps they walk are still freed right away. When the number of hardware queues shrinks, blk_mq_tagset_busy_iter() may be about to walk tags that __blk_mq_update_nr_hw_queues() frees. sbitmap_free() clears the map pointer, so that's a NULL dereference or a use-after-free, depending on the timing. Free the bitmaps with the rest in the callback.
Title blk-mq: free the bitmaps of tags in the SRCU callback
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

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