Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139148

published high CVSS 3.1 · 7.0

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

Published
30 Nov 2026, 13:32:01 UTC
Updated
01 Dec 2026, 05:41:32 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux457d3c4f0fdd6cf8a4bd8115bf470809984a9f02 to < ea58c831fa3e8af216b8a35668f8f8bc9cbedb0a · 457d3c4f0fdd6cf8a4bd8115bf470809984a9f02 to < 0e1daaf9b20df2125452846f768a68d8ea280adf · Other versions: unaffected Affected Not stated Linux
Linux — Linux7.2 (affected) · 0 to < 7.2 (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: 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. AC: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. PR: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 [email protected] delegates only pids/memory/cpu, so it is not host root but not every user either. UI: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. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 457d3c4f0fdd6cf8a4bd8115bf470809984a9f02 to < ea58c831fa3e8af216b8a35668f8f8bc9cbedb0a (affected · git)457d3c4f0fdd6cf8a4bd8115bf470809984a9f02 to < 0e1daaf9b20df2125452846f768a68d8ea280adf (affected · git)Default: unaffected Linux · cna
Linux Linux 7.2 (affected)0 to < 7.2 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
32f5f920e5ad342c04478ddb22a161c05d377ceffa915c825f8a5d9ee823811c
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected