# CVE-2022-50753: f2fs: fix to do sanity check on summary info

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **Published:** 2025-12-24T13:05:47.559Z
- **Modified:** 2026-08-05T08:59:40.190Z

## Who should check

- Anyone running Linux \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< c99860f9a75079f339ed7670425b1ac58f26e2ff; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< 4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< 73687c53919f49dff3852155621dab7a35c52854; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< e168f819bfa42459b14f479e55ebd550bcc78899; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< 0922ad64ccefa3e483e84355942b86e13c8fea68; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< c6ad7fd16657ebd34a87a97d9588195aae87597d
- Anyone running Linux 3.11

## Description

In the Linux kernel, the following vulnerability has been resolved:

f2fs: fix to do sanity check on summary info

As Wenqing Liu reported in bugzilla:

https://bugzilla.kernel.org/show\_bug.cgi?id=216456

BUG: KASAN: use-after-free in recover\_data+0x63ae/0x6ae0 \[f2fs\]
Read of size 4 at addr ffff8881464dcd80 by task mount/1013

CPU: 3 PID: 1013 Comm: mount Tainted: G        W          6.0.0-rc4 \#1
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.15.0-1 04/01/2014
Call Trace:
 dump\_stack\_lvl+0x45/0x5e
 print\_report.cold+0xf3/0x68d
 kasan\_report+0xa8/0x130
 recover\_data+0x63ae/0x6ae0 \[f2fs\]
 f2fs\_recover\_fsync\_data+0x120d/0x1fc0 \[f2fs\]
 f2fs\_fill\_super+0x4665/0x61e0 \[f2fs\]
 mount\_bdev+0x2cf/0x3b0
 legacy\_get\_tree+0xed/0x1d0
 vfs\_get\_tree+0x81/0x2b0
 path\_mount+0x47e/0x19d0
 do\_mount+0xce/0xf0
 \_\_x64\_sys\_mount+0x12c/0x1a0
 do\_syscall\_64+0x38/0x90
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

The root cause is: in fuzzed image, SSA table is corrupted: ofs\_in\_node
is larger than ADDRS\_PER\_PAGE(), result in out-of-range access on 4k-size
page.

- recover\_data
 - do\_recover\_data
  - check\_index\_in\_prev\_nodes
   - f2fs\_data\_blkaddr

This patch adds sanity check on summary info in recovery and GC flow
in where the flows rely on them.

After patch:
\[   29.310883\] F2FS-fs (loop0): Inconsistent ofs\_in\_node:65286 in summary, ino:0, nid:6, max:1018

## Affected and fixed versions

- Linux: \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< c99860f9a75079f339ed7670425b1ac58f26e2ff; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< 4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< 73687c53919f49dff3852155621dab7a35c52854; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< e168f819bfa42459b14f479e55ebd550bcc78899; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< 0922ad64ccefa3e483e84355942b86e13c8fea68; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< c6ad7fd16657ebd34a87a97d9588195aae87597d (cvelist)
- Linux: 3.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50753. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50753.md
Affected: Linux >= b292dcab068e141d8a820b77cbcc88d98c610eb4, < c99860f9a75079f339ed7670425b1ac58f26e2ff; >= b292dcab068e141d8a820b77cbcc88d98c610eb4, < 4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e; >= b292dcab068e141d8a820b77cbcc88d98c610eb4, < 73687c53919f49dff3852155621dab7a35c52854; >= b292dcab068e141d8a820b7…
Fixed in: Linux 4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e, Linux 73687c53919f49dff3852155621dab7a35c52854, Linux 0922ad64ccefa3e483e84355942b86e13c8fea68

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50753 being exploited?

There is no confirmed exploitation: CVE-2022-50753 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50753?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2022-50753?

Linux \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< c99860f9a75079f339ed7670425b1ac58f26e2ff; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< 4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< 73687c53919f49dff3852155621dab7a35c52854; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< e168f819bfa42459b14f479e55ebd550bcc78899; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< 0922ad64ccefa3e483e84355942b86e13c8fea68; \>= b292dcab068e141d8a820b77cbcc88d98c610eb4, \< c6ad7fd16657ebd34a87a97d9588195aae87597d; Linux 3.11.

### Is there a fix for CVE-2022-50753?

Yes. Fixed in Linux 4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e, Linux 73687c53919f49dff3852155621dab7a35c52854, Linux 0922ad64ccefa3e483e84355942b86e13c8fea68. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50753?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/c99860f9a75079f339ed7670425b1ac58f26e2ff>
- other: <https://git.kernel.org/stable/c/4a8e8bf280703e04e0b9d91f101e1fdd9a5bd09e>
- other: <https://git.kernel.org/stable/c/73687c53919f49dff3852155621dab7a35c52854>
- other: <https://git.kernel.org/stable/c/e168f819bfa42459b14f479e55ebd550bcc78899>
- other: <https://git.kernel.org/stable/c/0922ad64ccefa3e483e84355942b86e13c8fea68>
- other: <https://git.kernel.org/stable/c/c6ad7fd16657ebd34a87a97d9588195aae87597d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50753>

HTML: <https://flawdb.com/CVE-2022-50753> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50753>
