blk-iocost: free struct ioc after a grace period
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
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().
| Product | Versions |
|---|---|
| Linux Linux | 56cc24f59c145ce6938959f792df04b8a4f5a4d8 to before c83c406922a2fb59e4abd5fce0624494b4f961d1 Affected56cc24f59c145ce6938959f792df04b8a4f5a4d8 to before 05ce1df3756773862c056ca8698f8ec4cdd7fe98 Affected |
| Linux Linux | 7.2 Affectedbefore 7.2 Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.