Linux Kernel F2FS Filesystem Use-After-Free Vulnerability in Write I/O Completion Handler

Vulnerability

A use-after-free vulnerability has been identified in the F2FS (Flash-Friendly File System) implementation of the Linux kernel. This issue arises in the 'f2fs_write_end_io' function, where a race condition allows a freed structure to be accessed, potentially leading to memory corruption or other unintended behavior. The vulnerability is triggered during the unmounting process of a loop device, where the file system's superblock is freed while I/O operations are still being processed.

Impact

Exploitation of this vulnerability can lead to a use-after-free condition, allowing for memory corruption or potentially arbitrary code execution.

Reproduction

The vulnerability can be reproduced by mounting an F2FS file system on a loop device, performing asynchronous I/O operations, and then unmounting the file system. This sequence creates a race condition where the file system's superblock is freed before all I/O operations have completed, allowing the 'f2fs_write_end_io' function to access invalid memory.

Remediation

Users can upgrade to the latest stable version of the Linux kernel, where this vulnerability has been addressed.

Added: Mar 4, 2026, 3:23 PM
Updated: Mar 4, 2026, 7:06 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
3.9
remediation
7.7
relevance
3.5
threat
4.8
urgency
2.9
incentive
0.0

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