CVE-2026-93285: f2fs: embed f2fs_gc_kthread in f2fs_sb_info
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
f2fs: embed f2fs_gc_kthread in f2fs_sb_info
Instead of allocating f2fs_gc_kthread dynamically, embed it in f2fs_sb_info. This simplifies lifetime management and prepares for fixing race conditions during teardown.
- __sbi_store - remount|shutdown
- f2fs_stop_gc_thread
- access sbi->gc_thread
- sbi->gc_thread = NULL
- access sbi->gc_thread->f2fs_gc_task
The Linux kernel CVE team has assigned CVE-2026-93285 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.16 with commit 7950e9ac638e84518fbdd5c930939ad46a1068c5 and fixed in 6.18.53 with commit 23eee01c732ec8c62b05416a05f0f88129df2960 Issue introduced in 4.16 with commit 7950e9ac638e84518fbdd5c930939ad46a1068c5 and fixed in 7.2.5 with commit 99d14d61aa8beb6cb9a984b9fcddd45e35b24494 Issue introduced in 4.16 with commit 7950e9ac638e84518fbdd5c930939ad46a1068c5 and fixed in 7.3-rc1 with commit 3d7bca9d583793bb7d0bac0d95a24ddd2e129eed
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-93285
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/debug.c fs/f2fs/f2fs.h fs/f2fs/gc.c fs/f2fs/gc.h fs/f2fs/segment.c fs/f2fs/super.c fs/f2fs/sysfs.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/23eee01c732ec8c62b05416a05f0f88129df2960 https://git.kernel.org/stable/c/99d14d61aa8beb6cb9a984b9fcddd45e35b24494 https://git.kernel.org/stable/c/3d7bca9d583793bb7d0bac0d95a24ddd2e129eed