{"id":"CVE-2026-139148","state":"PUBLISHED","title":"blk-cgroup: keep the old blkg while reassociating a bio","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-cgroup: keep the old blkg while reassociating a bio\n\nbio_associate_blkg_from_css() drops the bio's old blkg before it looks up\nthe new one through the css. The css is pinned by the blkg, not by the\nbio, so if the cgroup is gone the bio may hold the last reference and the\nblkcg can be freed under blkg_tryget_closest(). The rcu_read_lock()\naround the whole thing used to cover that, until commit 457d3c4f0fdd\ndropped it.\n\nPut the old blkg after the new one has been looked up.","publishedAt":"2026-11-30T13:32:01.453Z","updatedAt":"2026-11-30T13:32:01.453Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"457d3c4f0fdd6cf8a4bd8115bf470809984a9f02","status":"affected","lessThan":"ea58c831fa3e8af216b8a35668f8f8bc9cbedb0a","versionType":"git"},{"version":"457d3c4f0fdd6cf8a4bd8115bf470809984a9f02","status":"affected","lessThan":"0e1daaf9b20df2125452846f768a68d8ea280adf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-cgroup.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-cgroup.c"]}],"references":["https://git.kernel.org/stable/c/ea58c831fa3e8af216b8a35668f8f8bc9cbedb0a","https://git.kernel.org/stable/c/0e1daaf9b20df2125452846f768a68d8ea280adf"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139148.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139148","state":"PUBLISHED","datePublished":"2026-11-30T13:32:01.453Z","dateUpdated":"2026-11-30T13:32:01.453Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.917Z"},"containers":{"cna":{"title":"blk-cgroup: keep the old blkg while reassociating a bio","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-cgroup: keep the old blkg while reassociating a bio\n\nbio_associate_blkg_from_css() drops the bio's old blkg before it looks up\nthe new one through the css. The css is pinned by the blkg, not by the\nbio, so if the cgroup is gone the bio may hold the last reference and the\nblkcg can be freed under blkg_tryget_closest(). The rcu_read_lock()\naround the whole thing used to cover that, until commit 457d3c4f0fdd\ndropped it.\n\nPut the old blkg after the new one has been looked up."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"457d3c4f0fdd6cf8a4bd8115bf470809984a9f02","status":"affected","lessThan":"ea58c831fa3e8af216b8a35668f8f8bc9cbedb0a","versionType":"git"},{"version":"457d3c4f0fdd6cf8a4bd8115bf470809984a9f02","status":"affected","lessThan":"0e1daaf9b20df2125452846f768a68d8ea280adf","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-cgroup.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-cgroup.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ea58c831fa3e8af216b8a35668f8f8bc9cbedb0a"},{"url":"https://git.kernel.org/stable/c/0e1daaf9b20df2125452846f768a68d8ea280adf"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:01.453Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}