CVE-2026-139147

blk-iocost: free struct ioc after a grace period

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

blk-iocost: free struct ioc after a grace period

ioc_qos_prfill() and ioc_cost_model_prfill() take ioc->lock from
blkcg_print_blkgs(), which since commit 56cc24f59c14 runs under RCU only.
That covers the policy data, which is freed after a grace period, but
not the ioc it points to: ioc_rqos_exit() frees that right away, and a
concurrent read of io.cost.qos locks freed memory.

Free the ioc with kfree_rcu_mightsleep().

Analysis

AI-generated

Technical impact

The vulnerability occurs when blk-iocost functions ioc_qos_prfill() and ioc_cost_model_prfill() hold the ioc->lock while the system is in RCU context. The ioc structure itself is freed immediately by ioc_rqos_exit(), while the policy data it references is freed only after an RCU grace period. A concurrent read of io.cost.qos can therefore access memory that has already been released, causing a use‑after‑free. This type of memory corruption potentially allows an attacker to execute arbitrary code or crash the kernel.

Affected Systems

All Linux kernel releases that include the blk-iocost subsystem before the mitigative commit (05ce1df3756773862c056ca8698f8ec4cdd7fe98). The specific kernel versions affected are not listed in the advisory, so any running kernel lacking this commit is considered vulnerable.

Risk and Exploitability

Because the flaw is a use‑after‑free of kernel memory it carries a high potential severity. No EPSS score is available and the vulnerability is not in the CISA KEV catalog, but the absence of an exploitation probability metric does not diminish the inherent risk. The attack is likely local and requires privileged execution to trigger the kernel crash or code execution, however an attacker who can induce the concurrent access pattern would achieve compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit 05ce1df3756773862c056ca8698f8ec4cdd7fe98 which replaces the immediate free with kfree_rcu_mightsleep().
  • Reboot the system after applying the kernel update to ensure the new kernel is running.
  • Check Linux distribution updates for the patch release and monitor vendor channels for the patch if it is not yet available.

Generated by OpenCVE AI on December 1, 2026 at 08:42 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-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: blk-iocost: free struct ioc after a grace period ioc_qos_prfill() and ioc_cost_model_prfill() take ioc->lock from blkcg_print_blkgs(), which since commit 56cc24f59c14 runs under RCU only. That covers the policy data, which is freed after a grace period, but not the ioc it points to: ioc_rqos_exit() frees that right away, and a concurrent read of io.cost.qos locks freed memory. Free the ioc with kfree_rcu_mightsleep().
Title blk-iocost: free struct ioc after a grace period
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM