CVE-2026-139148

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

Published Nov 30, 2026 CVSS 3.1 · 7 High EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

This vulnerability occurs in the Linux kernel function responsible for re‑associating a block I/O request to a cgroup. The function prematurely releases the old block‑group reference before obtaining a new one, which means that if the old cgroup is removed while the I/O request still holds a reference, the block‑group may be freed while the request is still using it. This misuse of reference counting can lead to a use‑after‑free scenario that corrupts kernel memory, potentially causing a kernel panic or other system instability.

Affected Systems

The flaw exists in the Linux kernel; specific affected releases were not enumerated in the advisory, but the patch notes refer to a commit that fixes the problem in the upstream kernel tree. Any kernel build that incorporates the pre‑patch code and allows cgroup removal during active I/O is potentially susceptible.

Risk and Exploitability

The CVSS score is 7, indicating a medium to high severity, while the EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that exploitation would likely require local privileged access because the attacker must manipulate cgroups during active I/O to trigger a race condition. A publicly documented exploit is not available, so remote exploitation is unlikely. However, if an attacker can trigger the race condition, a kernel memory corruption leading to a denial of service is possible for the affected system.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the fix referenced in the advisory.
  • If a kernel upgrade cannot be performed immediately, avoid removing cgroups from running processes that may have active block I/O requests.
  • Reboot the system after any changes to ensure the kernel fully loads the updated code.

Generated by OpenCVE AI on December 1, 2026 at 09:29 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
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.
Title blk-cgroup: keep the old blkg while reassociating a bio
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:41 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM