{"id":"CVE-2026-139147","state":"PUBLISHED","title":"blk-iocost: free struct ioc after a grace period","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-iocost: free struct ioc after a grace period\n\nioc_qos_prfill() and ioc_cost_model_prfill() take ioc->lock from\nblkcg_print_blkgs(), which since commit 56cc24f59c14 runs under RCU only.\nThat covers the policy data, which is freed after a grace period, but\nnot the ioc it points to: ioc_rqos_exit() frees that right away, and a\nconcurrent read of io.cost.qos locks freed memory.\n\nFree the ioc with kfree_rcu_mightsleep().","publishedAt":"2026-11-30T13:32:00.889Z","updatedAt":"2026-11-30T13:32:00.889Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"56cc24f59c145ce6938959f792df04b8a4f5a4d8","status":"affected","lessThan":"c83c406922a2fb59e4abd5fce0624494b4f961d1","versionType":"git"},{"version":"56cc24f59c145ce6938959f792df04b8a4f5a4d8","status":"affected","lessThan":"05ce1df3756773862c056ca8698f8ec4cdd7fe98","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-iocost.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-iocost.c"]}],"references":["https://git.kernel.org/stable/c/c83c406922a2fb59e4abd5fce0624494b4f961d1","https://git.kernel.org/stable/c/05ce1df3756773862c056ca8698f8ec4cdd7fe98"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139147.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139147","state":"PUBLISHED","datePublished":"2026-11-30T13:32:00.889Z","dateUpdated":"2026-11-30T13:32:00.889Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.917Z"},"containers":{"cna":{"title":"blk-iocost: free struct ioc after a grace period","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-iocost: free struct ioc after a grace period\n\nioc_qos_prfill() and ioc_cost_model_prfill() take ioc->lock from\nblkcg_print_blkgs(), which since commit 56cc24f59c14 runs under RCU only.\nThat covers the policy data, which is freed after a grace period, but\nnot the ioc it points to: ioc_rqos_exit() frees that right away, and a\nconcurrent read of io.cost.qos locks freed memory.\n\nFree the ioc with kfree_rcu_mightsleep()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"56cc24f59c145ce6938959f792df04b8a4f5a4d8","status":"affected","lessThan":"c83c406922a2fb59e4abd5fce0624494b4f961d1","versionType":"git"},{"version":"56cc24f59c145ce6938959f792df04b8a4f5a4d8","status":"affected","lessThan":"05ce1df3756773862c056ca8698f8ec4cdd7fe98","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-iocost.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"7.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.2","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["block/blk-iocost.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c83c406922a2fb59e4abd5fce0624494b4f961d1"},{"url":"https://git.kernel.org/stable/c/05ce1df3756773862c056ca8698f8ec4cdd7fe98"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:00.889Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.2","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}