CVE-2026-139121: blk-mq: exit the hctxs of a queue under tag_list_lock
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
Hold tag_list_lock for both steps.