Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-139148

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 457d3c4f0fdd6cf8a4bd8115bf470809984a9f02 to < ea58c831fa3e8af216b8a35668f8f8bc9cbedb0aaffected
  • 457d3c4f0fdd6cf8a4bd8115bf470809984a9f02 to < 0e1daaf9b20df2125452846f768a68d8ea280adfaffected

Linux Linux

Default version status: affected

  • 7.2affected
  • 0 to < 7.2unaffected
  • 7.3.6 to ≤ 7.3.*unaffected
  • 7.4-rc1 to ≤ *unaffected

References