CVE-2022-49425CWE-476

CVE-2022-49425

High · published February 26, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
19.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00277 · 19.0th percentile
Weakness
CWE-476 · NULL Pointer Dereference
Published
2025-02-26T12:01Z
Affected products (6)
ProductVersionsFixed in
linux/linux_kernel≥ 4.12, < 4.19.2474.19.247
linux/linux_kernel≥ 4.20, < 5.4.1985.4.198
linux/linux_kernel≥ 5.5, < 5.10.1215.10.121
linux/linux_kernel≥ 5.11, < 5.15.465.15.46
linux/linux_kernel≥ 5.16, < 5.17.145.17.14
linux/linux_kernel≥ 5.18, < 5.18.35.18.3
References (7)
EPSS history
Timeline
  • 26 FEB 02:12Z
    f2fs: fix dereference of stale list iterator after loop body
    cvelistv5