Skip to contentSkip to conversation

CVE-2026-53126: blk-cgroup: fix disk reference leak in blkcg_maybe_throttle_current()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 24

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

blk-cgroup: fix disk reference leak in blkcg_maybe_throttle_current()

Add the missing put_disk() on the error path in blkcg_maybe_throttle_current(). When blkcg lookup, blkg lookup, or blkg_tryget() fails, the function jumps to the out label which only calls rcu_read_unlock() but does not release the disk reference acquired by blkcg_schedule_throttle() via get_device(). Since current->throttle_disk is already set to NULL before the lookup, blkcg_exit() cannot release this reference either, causing the disk to never be freed.

Restore the reference release that was present as blk_put_queue() in the original code but was inadvertently dropped during the conversion from request_queue to gendisk.

The Linux kernel CVE team has assigned CVE-2026-53126 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.3 with commit f05837ed73d0c73e950b2d9f2612febb0d3d451e and fixed in 6.6.141 with commit 4048ed98860d3785645ebbd34f69566a6c7320c3
	Issue introduced in 6.3 with commit f05837ed73d0c73e950b2d9f2612febb0d3d451e and fixed in 6.12.91 with commit 73a5af059905d171b398c8b2381632ee499948b5
	Issue introduced in 6.3 with commit f05837ed73d0c73e950b2d9f2612febb0d3d451e and fixed in 6.18.33 with commit b3e005f16cd98f815429a87aef4c61e9c140779f
	Issue introduced in 6.3 with commit f05837ed73d0c73e950b2d9f2612febb0d3d451e and fixed in 7.0.10 with commit 000e8454692cab9d1f1b80130e2870e355301d06
	Issue introduced in 6.3 with commit f05837ed73d0c73e950b2d9f2612febb0d3d451e and fixed in 7.1 with commit 23308af722fefed00af5f238024c11710938fba3

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53126

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
block/blk-cgroup.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/4048ed98860d3785645ebbd34f69566a6c7320c3
	https://git.kernel.org/stable/c/73a5af059905d171b398c8b2381632ee499948b5
	https://git.kernel.org/stable/c/b3e005f16cd98f815429a87aef4c61e9c140779f
	https://git.kernel.org/stable/c/000e8454692cab9d1f1b80130e2870e355301d06
	https://git.kernel.org/stable/c/23308af722fefed00af5f238024c11710938fba3