{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139145","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.916Z","datePublished":"2026-11-30T13:31:59.783Z","dateUpdated":"2026-12-01T05:41:31.518Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:41:31.518Z"},"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()."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The racing bios come from btrfs: compressed async_chunk writes from compress_file_range() with a non-root blkcg_css get REQ_BTRFS_CGROUP_PUNT, and btrfs_submit_dev_bio() passes them to blkcg_punt_bio_submit(). A local user starts them with write() plus fsync/sync_file_range on their own file. No remote protocol supplies the state that leads to the blkg being freed.\nAC:H - The UAF needs the blkg's last bio reference to drop and an RCU grace period to pass (blkg_release->call_rcu->blkg_free->free_work kfree). That has to happen while a btrfs worker sits between spin_unlock and queue_work in blkcg_punt_bio_submit(), or while a stale queued async_bio_work stays unrun. This depends on kworker scheduling, which the attacker cannot control.\nPR:L - The file owner can set FS_COMPR_FL with chattr +c (fileattr_set_prepare only demands CAP_LINUX_IMMUTABLE for immutable/append). The blkg is destroyed through rmdir->blkcg_css_offline->blkcg_destroy_blkgs, which an unprivileged user can do in a delegated io cgroup subtree, e.g. unprivileged LXD/Incus container root on a btrfs pool.\nUI:N - The attacker does every step themselves: setting compression on their own file, dirtying and flushing it inside their own cgroup, and removing that cgroup. No other user has to act.\nS:U - The freed blkcg_gq and the corrupted workqueue state are host kernel memory in the same authority as the attacker's syscalls. No VM, IOMMU or sandbox boundary is crossed beyond normal kernel privilege escalation.\nC:H - struct blkcg_gq is kfree'd by blkg_free_workfn() while still referenced. If the freed slab object is reallocated, the stale work_struct and pointers can be used to read kernel memory.\nI:H - queue_work() writes to the freed blkg, and before the fix INIT_WORK(&free_work) overwrote an async_bio_work that was still queued (they shared memory). This corrupts the workqueue lists, can run blkg_free_workfn twice (double kfree), or runs work->func read from reallocated memory, which can hijack control flow.\nA:H - Corrupting the workqueue list, a double free of the blkg, or a worker running on a freed blkg in blkg_async_bio_workfn() leads to a list-debug BUG, an oops, or a panic."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-cgroup.c","block/blk-cgroup.h"],"versions":[{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","lessThan":"e1a5a4500286a74cc8cb011eabe6a98b36de4df3","status":"affected","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","lessThan":"e01205c30385f5f2c69df9fd05a34a486a725dd9","status":"affected","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","lessThan":"7f95ed09d6412c085526a0a78d7c4301e96924e4","status":"affected","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","lessThan":"3933c871982c626571671e4d4929d046c26da50b","status":"affected","versionType":"git"},{"version":"d3f77dfdc71835f8db71ca57d272b1fbec9dfc18","lessThan":"4def096314cf29fb6940b74c087a0b923185580e","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-cgroup.c","block/blk-cgroup.h"],"versions":[{"version":"5.3","status":"affected"},{"version":"0","lessThan":"5.3","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"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"}]}]}],"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"}],"title":"blk-cgroup: don't free a blkg with its punt work queued","x_generator":{"engine":"bippy-1.2.0"}}}}