CVE-2026-139118: blk-mq: free the bitmaps of tags in the SRCU callback
blk-mq: free the bitmaps of tags in the SRCU callback
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch ad0d05dbddc1
Event History
Frequently Asked Questions
When can this issue be triggered?
It can occur when the number of hardware queues is reduced while blk_mq_tagset_busy_iter() is about to iterate tags protected by tags_srcu. The affected bitmaps may be freed before those iterators have finished.
What is the expected impact of the race?
Depending on timing, it can cause a NULL-pointer dereference because sbitmap_free() clears the map pointer, or a use-after-free when an iterator accesses freed bitmap memory.
What does the fix change?
The fix defers freeing the tag bitmaps to the SRCU callback, alongside the blk_mq_tags structure and requests. This ensures the bitmaps remain available until active tags_srcu iterators are gone.