Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99987

published

blk-mq: clear stale inactive flag on hctx reuse

Published
30 Nov 2026, 13:18:54 UTC
Updated
30 Nov 2026, 13:18:54 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxbf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 31bd426a7d2b6f6a13ccef994fcc3db4c3ea460b · bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 05a9d64dc21d09725324d82a40b72fac6cb62c27 · bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 8470ae73b0156fbe724dc1c0c4400cba4091c485 · bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 7cb113fcd05527538697bcd08accf83ccfcc35e3 · bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < e129272c096f2dedfa47c6ba242882da01579eac · bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 1c2c129c4e7fc2b70c81554415a1d8826563a247 · bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 70e33cc6ae56d93818464e0c01767d7683c8ae8e · bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < afc1de47a7ab607ae6403c4bfda36b0bf3cd342f · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux

Description

In the Linux kernel, the following vulnerability has been resolved: blk-mq: clear stale inactive flag on hctx reuse When the last CPU mapped to an hctx goes offline, blk_mq_hctx_notify_offline() sets BLK_MQ_S_INACTIVE. Updating the number of hardware queues exits every hctx and parks it on q->unused_hctx_list. A later update can reuse a parked hctx through blk_mq_alloc_and_init_hctx(), at any queue index, and nothing clears the flag. If the reused hctx is mapped to an online CPU, blk_mq_get_tag() keeps returning BLK_MQ_NO_TAG for it. __blk_mq_alloc_requests() sleeps and retries, expecting CPU hotplug to move the task to another CPU, so a task that stays on that CPU never gets a tag. Onlining the original CPU doesn't recover it either, because blk_mq_hctx_notify_online() only clears the flag on the hctx that CPU now maps to. Clear BLK_MQ_S_INACTIVE in blk_mq_init_hctx() so a reused hctx starts like a freshly allocated one. A reused hctx has no cpuhp instances at that point, so the offline callback can't set the flag again before blk_mq_add_hw_queues_cpuhp() registers it. Clearing the flag in blk_mq_exit_hctx() is not enough, because a parked hctx keeps its cpuhp instances until blk_mq_remove_hw_queues_cpuhp(). Preserve the other hctx state flags. Reproduced with null_blk on v7.3 in a four-vCPU arm64 QEMU/KVM guest: modprobe null_blk nr_devices=0 mkdir /sys/kernel/config/nullb/nullb0 cd /sys/kernel/config/nullb/nullb0 echo 4 > submit_queues; echo 1 > memory_backed; echo 16 > size echo 1 > power echo 0 > /sys/devices/system/cpu/cpu3/online echo 2 > submit_queues echo 4 > submit_queues Offlining CPU3 marks hctx3 inactive. After the two updates it comes back as hctx1 and is mapped to CPU0: # cat /sys/block/nullb0/mq/1/cpu_list 0 # cat /sys/kernel/debug/block/nullb0/hctx1/state INACTIVE A 4K O_DIRECT read pinned to CPU0 hangs in D state, while the same read on CPU1 and CPU2 completes. Onlining CPU3 again leaves hctx1 inactive and the CPU0 read still hangs. With this change hctx1 state is empty and the reads on CPU0, CPU1 and CPU2 complete, before and after onlining CPU3.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 31bd426a7d2b6f6a13ccef994fcc3db4c3ea460b (affected · git)bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 05a9d64dc21d09725324d82a40b72fac6cb62c27 (affected · git)bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 8470ae73b0156fbe724dc1c0c4400cba4091c485 (affected · git)bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 7cb113fcd05527538697bcd08accf83ccfcc35e3 (affected · git)bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < e129272c096f2dedfa47c6ba242882da01579eac (affected · git)bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 1c2c129c4e7fc2b70c81554415a1d8826563a247 (affected · git)bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < 70e33cc6ae56d93818464e0c01767d7683c8ae8e (affected · git)bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f to < afc1de47a7ab607ae6403c4bfda36b0bf3cd342f (affected · git)Default: unaffected Linux · cna
Linux Linux 5.8 (affected)0 to < 5.8 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

8

Provider assertions

1

Linux · cna

blk-mq: clear stale inactive flag on hctx reuse

Provenance

Schema
5.2
Searchable
yes
Content hash
b190d16e62af7effec2f76177876d2a2921a5416529275c6767d643118feae2d
Ingested
30 Nov 2026, 13:30:07 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected