CVE-2026-53127: block: fix zones_cond memory leak on zone revalidation error paths
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
block: fix zones_cond memory leak on zone revalidation error paths
When blk_revalidate_disk_zones() fails after disk_revalidate_zone_resources() has allocated args.zones_cond, the memory is leaked because no error path frees it.
The Linux kernel CVE team has assigned CVE-2026-53127 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit 6e945ffb6555705cf20b1fcdc21a139911562995 and fixed in 7.0.10 with commit 29153d128384fa7c48a8ca8d34094b1cbe2d5bdc Issue introduced in 6.19 with commit 6e945ffb6555705cf20b1fcdc21a139911562995 and fixed in 7.1 with commit 2a2f520fda824b5a25c93f2249578ea150c24e06
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-53127
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-zoned.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/29153d128384fa7c48a8ca8d34094b1cbe2d5bdc https://git.kernel.org/stable/c/2a2f520fda824b5a25c93f2249578ea150c24e06