{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99987","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.450Z","datePublished":"2026-11-30T13:18:54.548Z","dateUpdated":"2026-11-30T13:18:54.548Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-30T13:18:54.548Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: clear stale inactive flag on hctx reuse\n\nWhen the last CPU mapped to an hctx goes offline,\nblk_mq_hctx_notify_offline() sets BLK_MQ_S_INACTIVE. Updating the\nnumber of hardware queues exits every hctx and parks it on\nq->unused_hctx_list. A later update can reuse a parked hctx through\nblk_mq_alloc_and_init_hctx(), at any queue index, and nothing clears\nthe flag.\n\nIf the reused hctx is mapped to an online CPU, blk_mq_get_tag() keeps\nreturning BLK_MQ_NO_TAG for it. __blk_mq_alloc_requests() sleeps and\nretries, expecting CPU hotplug to move the task to another CPU, so a\ntask that stays on that CPU never gets a tag. Onlining the original CPU\ndoesn't recover it either, because blk_mq_hctx_notify_online() only\nclears the flag on the hctx that CPU now maps to.\n\nClear BLK_MQ_S_INACTIVE in blk_mq_init_hctx() so a reused hctx starts\nlike a freshly allocated one. A reused hctx has no cpuhp instances at\nthat point, so the offline callback can't set the flag again before\nblk_mq_add_hw_queues_cpuhp() registers it. Clearing the flag in\nblk_mq_exit_hctx() is not enough, because a parked hctx keeps its cpuhp\ninstances until blk_mq_remove_hw_queues_cpuhp(). Preserve the other\nhctx state flags.\n\nReproduced with null_blk on v7.3 in a four-vCPU arm64 QEMU/KVM guest:\n\n  modprobe null_blk nr_devices=0\n  mkdir /sys/kernel/config/nullb/nullb0\n  cd /sys/kernel/config/nullb/nullb0\n  echo 4 > submit_queues; echo 1 > memory_backed; echo 16 > size\n  echo 1 > power\n  echo 0 > /sys/devices/system/cpu/cpu3/online\n  echo 2 > submit_queues\n  echo 4 > submit_queues\n\nOfflining CPU3 marks hctx3 inactive. After the two updates it comes back\nas hctx1 and is mapped to CPU0:\n\n  # cat /sys/block/nullb0/mq/1/cpu_list\n  0\n  # cat /sys/kernel/debug/block/nullb0/hctx1/state\n  INACTIVE\n\nA 4K O_DIRECT read pinned to CPU0 hangs in D state, while the same read\non CPU1 and CPU2 completes. Onlining CPU3 again leaves hctx1 inactive\nand the CPU0 read still hangs. With this change hctx1 state is empty and\nthe reads on CPU0, CPU1 and CPU2 complete, before and after onlining\nCPU3."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-mq.c"],"versions":[{"version":"bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f","lessThan":"31bd426a7d2b6f6a13ccef994fcc3db4c3ea460b","status":"affected","versionType":"git"},{"version":"bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f","lessThan":"05a9d64dc21d09725324d82a40b72fac6cb62c27","status":"affected","versionType":"git"},{"version":"bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f","lessThan":"8470ae73b0156fbe724dc1c0c4400cba4091c485","status":"affected","versionType":"git"},{"version":"bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f","lessThan":"7cb113fcd05527538697bcd08accf83ccfcc35e3","status":"affected","versionType":"git"},{"version":"bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f","lessThan":"e129272c096f2dedfa47c6ba242882da01579eac","status":"affected","versionType":"git"},{"version":"bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f","lessThan":"1c2c129c4e7fc2b70c81554415a1d8826563a247","status":"affected","versionType":"git"},{"version":"bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f","lessThan":"70e33cc6ae56d93818464e0c01767d7683c8ae8e","status":"affected","versionType":"git"},{"version":"bf0beec0607db3c6f6fb7bd2c6d503792b05cf3f","lessThan":"afc1de47a7ab607ae6403c4bfda36b0bf3cd342f","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-mq.c"],"versions":[{"version":"5.8","status":"affected"},{"version":"0","lessThan":"5.8","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.63","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/31bd426a7d2b6f6a13ccef994fcc3db4c3ea460b"},{"url":"https://git.kernel.org/stable/c/05a9d64dc21d09725324d82a40b72fac6cb62c27"},{"url":"https://git.kernel.org/stable/c/8470ae73b0156fbe724dc1c0c4400cba4091c485"},{"url":"https://git.kernel.org/stable/c/7cb113fcd05527538697bcd08accf83ccfcc35e3"},{"url":"https://git.kernel.org/stable/c/e129272c096f2dedfa47c6ba242882da01579eac"},{"url":"https://git.kernel.org/stable/c/1c2c129c4e7fc2b70c81554415a1d8826563a247"},{"url":"https://git.kernel.org/stable/c/70e33cc6ae56d93818464e0c01767d7683c8ae8e"},{"url":"https://git.kernel.org/stable/c/afc1de47a7ab607ae6403c4bfda36b0bf3cd342f"}],"title":"blk-mq: clear stale inactive flag on hctx reuse","x_generator":{"engine":"bippy-1.2.0"}}}}