Linux Kernel F2FS Filesystem Use-After-Free Vulnerability in Inode Management

Vulnerability

A use-after-free vulnerability has been identified in the Linux kernel's F2FS (Flash-Friendly File System) implementation. This issue arises because the F2FS may fail to properly clear the 'FI_DIRTY_INODE' flag for certain inodes. After an inode is evicted, it can still be linked in the global 'DIRTY_META' list. If a checkpoint is triggered, the 'f2fs_sync_inode_meta()' function may access the already released inode, leading to a use-after-free condition. This vulnerability affects several versions of the Linux kernel.

Impact

Exploitation of this vulnerability can lead to a use-after-free condition, which may be exploited to execute arbitrary code or cause a denial-of-service condition by crashing the system.

Reproduction

The vulnerability can be reproduced by using a fuzzing tool, such as Syzkaller, which can trigger the conditions that lead to the use-after-free issue. This involves creating a scenario where an inode is not properly synchronized before being freed, allowing the 'f2fs_sync_inode_meta()' function to access invalid memory.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for upgrading can be found in the official Linux kernel documentation.

Added: Aug 19, 2025, 6:28 PM
Updated: Aug 19, 2025, 6:28 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
5.0
exploitability
4.3
remediation
7.7
relevance
0.4
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.