CVE-2026-99572: f2fs: fix to avoid potential reference count leak in do_garbage_collect()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
f2fs: fix to avoid potential reference count leak in do_garbage_collect()
In do_garbage_collect(), we have reserved reference counts on summary cache of all segments, once gc_thread encounter freezing, we need to release all reference counts.
The Linux kernel CVE team has assigned CVE-2026-99572 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit 02d91398a602c394d72cd61a67c84e2730c5f79b and fixed in 7.3.5 with commit 9d3f586c53d32ce8352e72cdfc2e9ab08b80a615 Issue introduced in 7.1 with commit 02d91398a602c394d72cd61a67c84e2730c5f79b and fixed in 7.4-rc1 with commit 894ca8b856668a82426dbd0a0042b61541a1a9ec
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-99572
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:
fs/f2fs/gc.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/9d3f586c53d32ce8352e72cdfc2e9ab08b80a615 https://git.kernel.org/stable/c/894ca8b856668a82426dbd0a0042b61541a1a9ec