CVE-2024-47690: f2fs: get rid of online repaire on corrupted directory
In the Linux kernel, the following vulnerability has been resolved:
f2fs: get rid of online repaire on corrupted directory
syzbot reports a f2fs bug as below:
kernel BUG at fs/f2fs/inode.c:896!
RIP: 0010:f2fs_evict_inode+0x1598/0x15c0 fs/f2fs/inode.c:896
Call Trace:
evict+0x532/0x950 fs/inode.c:704
dispose_list fs/inode.c:747 [inline]
evict_inodes+0x5f9/0x690 fs/inode.c:797
generic_shutdown_super+0x9d/0x2d0 fs/super.c:627
kill_block_super+0x44/0x90 fs/super.c:1696
kill_f2fs_super+0x344/0x690 fs/f2fs/super.c:4898
deactivate_locked_super+0xc4/0x130 fs/super.c:473
cleanup_mnt+0x41f/0x4b0 fs/namespace.c:1373
task_work_run+0x24f/0x310 kernel/task_work.c:228
ptrace_notify+0x2d2/0x380 kernel/signal.c:2402
ptrace_report_syscall include/linux/ptrace.h:415 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:477 [inline]
syscall_exit_work+0xc6/0x190 kernel/entry/common.c:173
syscall_exit_to_user_mode_prepare kernel/entry/common.c:200 [inline]
__syscall_exit_to_user_mode_work kernel/entry/common.c:205 [inline]
syscall_exit_to_user_mode+0x279/0x370 kernel/entry/common.c:218
do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0010:f2fs_evict_inode+0x1598/0x15c0 fs/f2fs/inode.c:896
Online repaire on corrupted directory in f2fs_lookup() can generate
dirty data/meta while racing w/ readonly remount, it may leave dirty
inode after filesystem becomes readonly, however, checkpoint() will
skips flushing dirty inode in a state of readonly mode, result in
above panic.
Let's get rid of online repaire in f2fs_lookup(), and leave the work
to fsck.f2fs.
Security readout for executives and security teams
Plain-English summary
A corrupted directory on an F2FS filesystem can trigger unsafe kernel repair activity during a read-only remount race, potentially causing a kernel panic. Systems using affected Linux kernels with F2FS volumes are the relevant concern. The documented failure is local, not remotely reachable by itself.
Executive priority
Prioritize affected F2FS hosts where local users or workloads are less trusted, and systems where a kernel panic would disrupt critical services. Patch through normal urgent-kernel procedures; exposure is narrower where F2FS is absent.
Technical view
In f2fs_lookup(), online directory repair can dirty data or metadata while racing with a read-only remount. Once read-only, checkpointing skips the dirty inode, which can later trigger a BUG in f2fs_evict_inode. The kernel fix removes this online repair path and delegates recovery to fsck.f2fs.
Likely exposure
Exposure requires an affected Linux kernel, an F2FS filesystem, directory corruption, and the relevant remount race. The bundle lists several affected releases through 6.12, but its version data is inconsistent. Confirm applicability against the distribution’s advisory and backport status.
Exploitation context
The CVSS vector describes a local, low-complexity issue requiring low privileges and no user interaction. CISA KEV status is false, and the supplied sources provide no evidence of active exploitation. The reported reproducer came from syzbot and demonstrated a kernel panic.
Researcher notes
The source describes a race between directory repair and read-only remount handling. The concrete observed outcome is a kernel BUG and panic. Although CVSS assigns high confidentiality, integrity, and availability impacts, the bundle does not document data theft, privilege escalation, public exploit code, or in-the-wild abuse.
Mitigation direction
Install a vendor-supported kernel containing the applicable stable fix.
Check distribution advisories because patched package versions may differ from upstream versions.
Run fsck.f2fs during an approved offline maintenance window for suspected filesystem corruption.
Restrict untrusted local access until affected systems are patched.
Validation and detection
Inventory kernel versions and identify systems mounting F2FS filesystems.
Confirm the installed kernel includes the relevant upstream fix or distribution backport.
Review kernel logs for F2FS errors, f2fs_evict_inode BUG messages, or unexpected panics.
Validate suspect F2FS volumes offline using vendor-supported filesystem-checking procedures.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2024-47690 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.