CVE-2022-49425 json
f2fs: fix dereference of stale list iterator after loop body
published 2025-02-26 20 mo ago modified 2026-08-05 3 mo ago also EUVD-2022-54804
- cvss
- 7.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 20%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 4.19.247, 5.4.198, 5.10.121, 5.15.46, 5.17.14, 5.18.3, 5.19
- linux Debian 14, Debian 13, Debian 12 5.18.5-1
debian advisories DEBIAN-CVE-2022-49425
- linux Ubuntu 18.04 LTS 4.15.0-192.203
- linux Ubuntu 20.04 LTS 5.4.0-126.142
- linux Ubuntu 22.04 LTS 5.15.0-47.51
- linux-aws Ubuntu 18.04 LTS 4.15.0-1140.151
- linux-aws Ubuntu 20.04 LTS 5.4.0-1085.92
- linux-aws Ubuntu 22.04 LTS 5.15.0-1019.23
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1089.97
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1017.23
ubuntu advisories UBUNTU-CVE-2022-49425
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/385edd3ce5b4b1e9d31f474a5e35a39779ec1110 commit
- git.kernel.org/stable/c/5e47a7add3dda7f236548c5ec3017776dc2a729f commit
- git.kernel.org/stable/c/51d584704d18e60fa473823654f35611c777b291 commit
- git.kernel.org/stable/c/45b2b7d7108ae1e25a5036cab04ab9273e792332 commit
- git.kernel.org/stable/c/b26e1c777890e4b938136deb8ec07a29f33862e4 commit
- git.kernel.org/stable/c/ed7efc472c00986dcd6903ab6ed165c7fa167674 commit
- git.kernel.org/stable/c/2aaf51dd39afb6d01d13f1e6fe20b684733b37d5 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-49425 updated
kernel: f2fs: fix dereference of stale list iterator after loop body
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
-
git.kernel.org
/stable/c/385edd3ce5b4b1e9d31f474a5e35a39779ec1110
patch
-
git.kernel.org
/stable/c/5e47a7add3dda7f236548c5ec3017776dc2a729f
patch
-
git.kernel.org
/stable/c/51d584704d18e60fa473823654f35611c777b291
patch
-
git.kernel.org
/stable/c/45b2b7d7108ae1e25a5036cab04ab9273e792332
patch
-
git.kernel.org
/stable/c/b26e1c777890e4b938136deb8ec07a29f33862e4
patch
-
git.kernel.org
/stable/c/ed7efc472c00986dcd6903ab6ed165c7fa167674
patch
-
git.kernel.org
/stable/c/2aaf51dd39afb6d01d13f1e6fe20b684733b37d5
patch
Sources
- CVE List CVE-2022-49425
- NVD CVE-2022-49425
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.