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-139145

published high CVSS 3.1 · 7.0

blk-cgroup: don't free a blkg with its punt work queued

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

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxd3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < e1a5a4500286a74cc8cb011eabe6a98b36de4df3 · d3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < e01205c30385f5f2c69df9fd05a34a486a725dd9 · d3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < 7f95ed09d6412c085526a0a78d7c4301e96924e4 · d3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < 3933c871982c626571671e4d4929d046c26da50b · d3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < 4def096314cf29fb6940b74c087a0b923185580e · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.3 (affected) · 0 to < 5.3 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (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 Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: blk-cgroup: don't free a blkg with its punt work queued blkg_async_bio_workfn() relies on the bios on the list pinning the blkg. But blkcg_punt_bio_submit() can call queue_work() after a running instance already took and completed the bio, and queue_work() succeeds on an empty list for the same reason. Nothing holds the blkg then, and free_work shares its memory with async_bio_work on top of that. Hold a reference across blkcg_punt_bio_submit(), give the two works memory of their own, and cancel async_bio_work in blkg_free_workfn().

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 - 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux d3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < e1a5a4500286a74cc8cb011eabe6a98b36de4df3 (affected · git)d3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < e01205c30385f5f2c69df9fd05a34a486a725dd9 (affected · git)d3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < 7f95ed09d6412c085526a0a78d7c4301e96924e4 (affected · git)d3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < 3933c871982c626571671e4d4929d046c26da50b (affected · git)d3f77dfdc71835f8db71ca57d272b1fbec9dfc18 to < 4def096314cf29fb6940b74c087a0b923185580e (affected · git)Default: unaffected Linux · cna
Linux Linux 5.3 (affected)0 to < 5.3 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (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

5

Provider assertions

1

Linux · cna

blk-cgroup: don't free a blkg with its punt work queued

Provenance

Schema
5.2
Searchable
yes
Content hash
55a116a0b4127585e79b6aed1925bd029da0f1c443352af3dc93274ba85f3924
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