blk-cgroup: keep the old blkg while reassociating a bio

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

blk-cgroup: keep the old blkg while reassociating a bio

bio_associate_blkg_from_css() 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 blkg_tryget_closest(). The rcu_read_lock() 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.

ProductVersions
Linux Linux457d3c4f0fdd6cf8a4bd8115bf470809984a9f02 to before ea58c831fa3e8af216b8a35668f8f8bc9cbedb0a Affected457d3c4f0fdd6cf8a4bd8115bf470809984a9f02 to before 0e1daaf9b20df2125452846f768a68d8ea280adf Affected
Linux Linux7.2 Affectedbefore 7.2 Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.