# CVE-2022-50273: f2fs: fix to do sanity check on destination blkaddr during recovery

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-09-15T14:21:09.496Z
- **Modified:** 2026-08-15T13:17:31.530Z

## Who should check

- Anyone running Linux \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 68b1e607559d3dc85f94b0d738d7c4e8029b0cfa; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 73fb4bd2c055a393816f078f158cdd3025006f1d; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< ed854f10e6afd5cbd5c3274d4c4df4bfe0ab4362; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 8f0a47def4722c5fd8d6b9268b5ffed8a249e2db; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 3a4d24d746866dd45d970bd565ff3886e839366a; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 0ef4ca04a3f9223ff8bc440041c524b2123e09a3
- Anyone running Linux 3.8

## Description

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

f2fs: fix to do sanity check on destination blkaddr during recovery

As Wenqing Liu reported in bugzilla:

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

loop5: detected capacity change from 0 to 131072
F2FS-fs (loop5): recover\_inode: ino = 6, name = hln, inline = 1
F2FS-fs (loop5): recover\_data: ino = 6 (i\_size: recover) err = 0
F2FS-fs (loop5): recover\_inode: ino = 6, name = hln, inline = 1
F2FS-fs (loop5): recover\_data: ino = 6 (i\_size: recover) err = 0
F2FS-fs (loop5): recover\_inode: ino = 6, name = hln, inline = 1
F2FS-fs (loop5): recover\_data: ino = 6 (i\_size: recover) err = 0
F2FS-fs (loop5): Bitmap was wrongly set, blk:5634
------------\[ cut here \]------------
WARNING: CPU: 3 PID: 1013 at fs/f2fs/segment.c:2198
RIP: 0010:update\_sit\_entry+0xa55/0x10b0 \[f2fs\]
Call Trace:
 \<TASK\>
 f2fs\_do\_replace\_block+0xa98/0x1890 \[f2fs\]
 f2fs\_replace\_block+0xeb/0x180 \[f2fs\]
 recover\_data+0x1a69/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

If we enable CONFIG\_F2FS\_CHECK\_FS config, it will trigger a kernel panic
instead of warning.

The root cause is: in fuzzed image, SIT table is inconsistent with inode
mapping table, result in triggering such warning during SIT table update.

This patch introduces a new flag DATA\_GENERIC\_ENHANCE\_UPDATE, w/ this
flag, data block recovery flow can check destination blkaddr's validation
in SIT table, and skip f2fs\_replace\_block() to avoid inconsistent status.

## Affected and fixed versions

- Linux: \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 68b1e607559d3dc85f94b0d738d7c4e8029b0cfa; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 73fb4bd2c055a393816f078f158cdd3025006f1d; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< ed854f10e6afd5cbd5c3274d4c4df4bfe0ab4362; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 8f0a47def4722c5fd8d6b9268b5ffed8a249e2db; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 3a4d24d746866dd45d970bd565ff3886e839366a; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 0ef4ca04a3f9223ff8bc440041c524b2123e09a3 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- Upgrade Linux to 0ef4ca04a3f9223ff8bc440041c524b2123e09a3 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50273.md
Affected: Linux >= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, < 68b1e607559d3dc85f94b0d738d7c4e8029b0cfa; >= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, < 73fb4bd2c055a393816f078f158cdd3025006f1d; >= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, < ed854f10e6afd5cbd5c3274d4c4df4bfe0ab4362; >= d624c96fb3249e5d3dcf4e6…
Fixed in: Linux 68b1e607559d3dc85f94b0d738d7c4e8029b0cfa, Linux 73fb4bd2c055a393816f078f158cdd3025006f1d, Linux 8f0a47def4722c5fd8d6b9268b5ffed8a249e2db, Linux 3a4d24d746866dd45d970bd565ff3886e839366a, Linux 0ef4ca04a3f9223ff8bc440041c524b2123e09a3

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-50273 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 68b1e607559d3dc85f94b0d738d7c4e8029b0cfa; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 73fb4bd2c055a393816f078f158cdd3025006f1d; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< ed854f10e6afd5cbd5c3274d4c4df4bfe0ab4362; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 8f0a47def4722c5fd8d6b9268b5ffed8a249e2db; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 3a4d24d746866dd45d970bd565ff3886e839366a; \>= d624c96fb3249e5d3dcf4e60a805e5e6b0dd7d91, \< 0ef4ca04a3f9223ff8bc440041c524b2123e09a3; Linux 3.8.

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

Yes. Fixed in Linux 68b1e607559d3dc85f94b0d738d7c4e8029b0cfa, Linux 73fb4bd2c055a393816f078f158cdd3025006f1d, Linux 8f0a47def4722c5fd8d6b9268b5ffed8a249e2db, Linux 3a4d24d746866dd45d970bd565ff3886e839366a, Linux 0ef4ca04a3f9223ff8bc440041c524b2123e09a3. Upgrade Linux to 0ef4ca04a3f9223ff8bc440041c524b2123e09a3 or later.

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

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

- patch: <https://git.kernel.org/stable/c/68b1e607559d3dc85f94b0d738d7c4e8029b0cfa>
- patch: <https://git.kernel.org/stable/c/73fb4bd2c055a393816f078f158cdd3025006f1d>
- patch: <https://git.kernel.org/stable/c/ed854f10e6afd5cbd5c3274d4c4df4bfe0ab4362>
- patch: <https://git.kernel.org/stable/c/8f0a47def4722c5fd8d6b9268b5ffed8a249e2db>
- patch: <https://git.kernel.org/stable/c/3a4d24d746866dd45d970bd565ff3886e839366a>
- patch: <https://git.kernel.org/stable/c/0ef4ca04a3f9223ff8bc440041c524b2123e09a3>

## 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-50273>

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