AZL-116896: CVE-2026-139121 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
blk-mq: exit the hctxs of a queue under taglistlock
blkmqupdatenrhwqueues() exits and replaces the hctxs of every queue on set->taglist under taglistlock. blkmqexitqueue() 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. delgendisk() is kept away by updatenrhwqlock, diskrelease() of a never added disk and blkmqdestroyqueue() are not, and nvmeallocns() drops such a disk when it finds the queues frozen by a reset.
Hold taglistlock for both steps.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel, hold tag_list_lock for both steps.
Event History
Frequently Asked Questions
What conditions are needed to trigger this issue?
The race requires blk_mq_update_nr_hw_queues() to run concurrently with queue teardown, where blk_mq_exit_queue() exits hardware contexts before removing the queue from set->tag_list. The description specifically notes that blk_mq_destroy_queue() and disk_release() for a never-added disk are not serialized by update_nr_hwq_lock.
Are NVMe namespace reset paths relevant?
Yes. The description identifies nvme_alloc_ns() dropping a disk when it finds queues frozen by a reset as a path that can reach disk release for a never-added disk, allowing the race with hardware-queue updates.
What is the effect of a successful race?
Hardware contexts can be exited twice, and a concurrent update can create replacement contexts that are not subsequently exited. This can leave newly created hardware contexts without cleanup.
What change resolves the race?
The resolved change holds tag_list_lock while both exiting the queue hardware contexts and removing the queue from the tag list, preventing a concurrent hardware-queue update from operating on the queue during teardown.