CVE Catalog

CVE-2022-49425

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.27%

19th percentile - higher than 19% of all known CVEs

Summary

In the f2fs filesystem in the Linux kernel, a vulnerability was found involving dereferencing a stale list iterator after the loop body. If no break is hit, the iterator becomes a bogus pointer, and dereferencing it (e.g., cur->page) could load out-of-bounds/undefined values, which may be exploited by an attacker.

Risk Assessment

The vulnerability can lead to filesystem malfunction, system crash, or potentially privilege escalation if an attacker can control values.

Recommendation

Apply the patch that uses a separate list iterator variable for the loop and only sets the original variable if a suitable element is found, eliminating the risk of dereferencing a bogus pointer.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: f2fs: fix dereference of stale list iterator after loop body The list iterator variable will be a bogus pointer if no break was hit. Dereferencing it (cur->page in this case) could load an out-of-bounds/undefined value making it unsafe to use that in the comparision to determine if the specific element was found. Since 'cur->page' *can* be out-ouf-bounds it cannot be guaranteed that by chance (or intention of an attacker) it matches the value of 'page' even though the correct element was not found. This is fixed by using a separate list iterator variable for the loop and only setting the original variable if a suitable element was found. Then determing if the element was found is simply checking if the variable is set.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS