Linux Kernel F2FS Stale List Iterator Vulnerability

Vulnerability

A vulnerability in the Linux kernel's F2FS file system has been addressed, concerning the improper handling of list iterators. The issue arose because the iterator could become a invalid pointer if a loop did not encounter a break statement, leading to the potential dereferencing of an out-of-bounds or undefined value. This could result in unsafe comparisons when searching for specific elements, as the dereferenced value might incorrectly match a target page, even if the correct element was not found. The vulnerability has been fixed by introducing a separate iterator for the loop, which only updates the original variable when a suitable element is identified. This allows for a reliable check to determine if the desired element was found.

Impact

The vulnerability could lead to undefined behavior by allowing the dereferencing of a stale iterator, potentially causing out-of-bounds memory access.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.3
remediation
0.0
relevance
0.0
threat
3.2
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.