CVE-2026-139145: blk-cgroup: don't free a blkg with its punt work queued
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Hold a reference across blkcg_punt_bio_submit(), give free_work and async_bio_work separate memory, and cancel async_bio_work in blkg_free_workfn().