Linux Kernel F2FS Out-of-Bounds Access Vulnerability in Device Path Handling

Vulnerability

A vulnerability in the Linux kernel's F2FS (Flash-Friendly File System) implementation can lead to out-of-bounds access in the device path handling. This issue arises when the device path length reaches the maximum allowed, causing the path array to become fully populated without terminating with a null character. As a result, subsequent fields may be incorrectly interpreted as part of the device path, leading to parsing errors. The vulnerability affects several versions of the Linux kernel.

Impact

The vulnerability can cause out-of-bounds memory access, potentially leading to memory corruption or other undefined behavior.

Reproduction

The vulnerability can be reproduced by creating a device path that reaches the maximum length allowed. This can be done by using a file name that is 255 characters long, which is the maximum path length in many file systems. After creating the file, the F2FS file system can be formatted and mounted. The F2FS kernel log will indicate a failure to find devices, which is a symptom of the vulnerability.

Remediation

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

Added: Aug 22, 2025, 4:51 PM
Updated: Aug 22, 2025, 4:51 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
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.