CVE-2026-139148: blk-cgroup: keep the old blkg while reassociating a bio
In the Linux kernel, the following vulnerability has been resolved:
blk-cgroup: keep the old blkg while reassociating a bio
bioassociateblkgfromcss() drops the bio's old blkg before it looks up the new one through the css. The css is pinned by the blkg, not by the bio, so if the cgroup is gone the bio may hold the last reference and the blkcg can be freed under blkgtrygetclosest(). The rcureadlock() around the whole thing used to cover that, until commit 457d3c4f0fdd dropped it.
Put the old blkg after the new one has been looked up.