AZL-116923: CVE-2026-139145 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
blk-cgroup: don't free a blkg with its punt work queued
blkgasyncbioworkfn() relies on the bios on the list pinning the blkg. But blkcgpuntbiosubmit() can call queuework() after a running instance already took and completed the bio, and queuework() succeeds on an empty list for the same reason. Nothing holds the blkg then, and freework shares its memory with asyncbiowork on top of that.
Hold a reference across blkcgpuntbiosubmit(), give the two works memory of their own, and cancel asyncbiowork in blkgfreeworkfn().
Affected Software
Event History
Frequently Asked Questions
Can asynchronous bio work be queued even when its bio list is empty?
Yes. A running work instance can take and complete the bio before blkcg_punt_bio_submit() calls queue_work(), and queue_work() can then succeed despite the list being empty. In that state, no bio remains to pin the blkg.
What changes are needed when backporting the resolution?
The resolution holds a blkg reference across blkcg_punt_bio_submit(), gives free_work and async_bio_work separate memory, and cancels async_bio_work in blkg_free_workfn().