{"id":"CVE-2026-139145","state":"PUBLISHED","title":"blk-cgroup: don't free a blkg with its punt work queued","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-cgroup: don't free a blkg with its punt work queued\n\nblkg_async_bio_workfn() relies on the bios on the list pinning the blkg.\nBut blkcg_punt_bio_submit() can call queue_work() after a running\ninstance already took and completed the bio, and queue_work() succeeds\non an empty list for the same reason. Nothing holds the blkg then, and\nfree_work shares its memory with async_bio_work on top of that.\n\nHold a reference across blkcg_punt_bio_submit(), give the two works\nmemory of their own, and cancel async_bio_work in blkg_free_workfn().","publishedAt":"2026-11-30T13:31:59.783Z","updatedAt":"2026-11-30T13:31:59.783Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","status":"affected","lessThan":"e1a5a4500286a74cc8cb011eabe6a98b36de4df3","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","status":"affected","lessThan":"e01205c30385f5f2c69df9fd05a34a486a725dd9","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","status":"affected","lessThan":"7f95ed09d6412c085526a0a78d7c4301e96924e4","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","status":"affected","lessThan":"3933c871982c626571671e4d4929d046c26da50b","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","status":"affected","lessThan":"4def096314cf29fb6940b74c087a0b923185580e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-cgroup.c","block/blk-cgroup.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","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","block/blk-cgroup.h"]}],"references":["https://git.kernel.org/stable/c/e1a5a4500286a74cc8cb011eabe6a98b36de4df3","https://git.kernel.org/stable/c/e01205c30385f5f2c69df9fd05a34a486a725dd9","https://git.kernel.org/stable/c/7f95ed09d6412c085526a0a78d7c4301e96924e4","https://git.kernel.org/stable/c/3933c871982c626571671e4d4929d046c26da50b","https://git.kernel.org/stable/c/4def096314cf29fb6940b74c087a0b923185580e"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139145.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139145","state":"PUBLISHED","datePublished":"2026-11-30T13:31:59.783Z","dateUpdated":"2026-11-30T13:31:59.783Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.916Z"},"containers":{"cna":{"title":"blk-cgroup: don't free a blkg with its punt work queued","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-cgroup: don't free a blkg with its punt work queued\n\nblkg_async_bio_workfn() relies on the bios on the list pinning the blkg.\nBut blkcg_punt_bio_submit() can call queue_work() after a running\ninstance already took and completed the bio, and queue_work() succeeds\non an empty list for the same reason. Nothing holds the blkg then, and\nfree_work shares its memory with async_bio_work on top of that.\n\nHold a reference across blkcg_punt_bio_submit(), give the two works\nmemory of their own, and cancel async_bio_work in blkg_free_workfn()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","status":"affected","lessThan":"e1a5a4500286a74cc8cb011eabe6a98b36de4df3","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","status":"affected","lessThan":"e01205c30385f5f2c69df9fd05a34a486a725dd9","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","status":"affected","lessThan":"7f95ed09d6412c085526a0a78d7c4301e96924e4","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","status":"affected","lessThan":"3933c871982c626571671e4d4929d046c26da50b","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","status":"affected","lessThan":"4def096314cf29fb6940b74c087a0b923185580e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-cgroup.c","block/blk-cgroup.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.3","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","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","block/blk-cgroup.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/e1a5a4500286a74cc8cb011eabe6a98b36de4df3"},{"url":"https://git.kernel.org/stable/c/e01205c30385f5f2c69df9fd05a34a486a725dd9"},{"url":"https://git.kernel.org/stable/c/7f95ed09d6412c085526a0a78d7c4301e96924e4"},{"url":"https://git.kernel.org/stable/c/3933c871982c626571671e4d4929d046c26da50b"},{"url":"https://git.kernel.org/stable/c/4def096314cf29fb6940b74c087a0b923185580e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:59.783Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.3","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}