{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139148","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.917Z","datePublished":"2026-11-30T13:32:01.453Z","dateUpdated":"2026-12-01T05:41:32.925Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:41:32.925Z"},"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."}],"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 - Triggered by local syscalls only: O_DIRECT I/O on btrfs (iomap_dio_alloc_bio ties the bio to the caller's blkg, then btrfs_submit_dev_bio->bio_set_dev->bio_associate_blkg->bio_associate_blkg_from_css re-associates it) or on an NVMe multipath head (nvme_ns_head_submit_bio), plus cgroupfs mkdir/rmdir. No remote peer supplies any input.\nAC:H - The attacker can stall its DIO bio between alloc and submit, migrate out and rmdir the cgroup so the bio holds the last blkg ref. But blkcg_css_free() only runs after call_rcu->blkg_free_workfn->css_release work->rcu_work, so the thread must be preempted in the few instructions between blkg_put() and blkg_lookup() across two RCU grace periods, which it cannot force.\nPR:L - Needs a cgroup with the io controller that the attacker can create, populate and rmdir; only file ownership is checked, no capability. LXC/LXD container root in its delegated subtree or a Delegate=io service has this; default systemd user@.service delegates only pids/memory/cpu, so it is not host root but not every user either.\nUI:N - The attacker creates the cgroup, issues the O_DIRECT I/O, migrates its own process and removes the cgroup itself; no other user or administrator action is involved.\nS:U - The freed struct blkcg and the corrupted bio->bi_blkg are kernel block-layer objects; the impact is kernel memory corruption within the same kernel authority, with no VM or IOMMU boundary crossed.\nC:H - blkg_tryget_closest() reads the freed kmalloc'd blkcg (css->parent, blkg_hint, blkg_tree radix nodes) under no protection; a reclaimed object lets the attacker steer the lookup to a forged blkcg_gq that is installed in bio->bi_blkg, giving kernel read primitives.\nI:H - A forged blkg from the reclaimed blkcg is used for blk_cgroup_bio_start() per-cpu iostat writes and its percpu_ref release callback runs on bio completion; blkg_alloc() also does css_tryget_online() on the freed css, incrementing an attacker-chosen per-cpu address.\nA:H - Use-after-free of struct blkcg in bio_associate_blkg_from_css()/blkg_tryget_closest() oopses on poisoned or reused memory (wild blkg_hint/radix pointers, freed spinlock in blkg_create), crashing the kernel during block I/O submission."}]}],"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"],"versions":[{"version":"457d3c4f0fdd6cf8a4bd8115bf470809984a9f02","lessThan":"ea58c831fa3e8af216b8a35668f8f8bc9cbedb0a","status":"affected","versionType":"git"},{"version":"457d3c4f0fdd6cf8a4bd8115bf470809984a9f02","lessThan":"0e1daaf9b20df2125452846f768a68d8ea280adf","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"],"versions":[{"version":"7.2","status":"affected"},{"version":"0","lessThan":"7.2","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":"7.2","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/ea58c831fa3e8af216b8a35668f8f8bc9cbedb0a"},{"url":"https://git.kernel.org/stable/c/0e1daaf9b20df2125452846f768a68d8ea280adf"}],"title":"blk-cgroup: keep the old blkg while reassociating a bio","x_generator":{"engine":"bippy-1.2.0"}}}}