# CVE-2022-49361: f2fs: fix to do sanity check for inline inode

> 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-02-26T02:11:08.881Z
- **Modified:** 2026-08-15T13:17:20.620Z

## Who should check

- Anyone running Linux \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< efdefbe8b7564602ab446474788225a1f2a323b5; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 7cfe2d43becaf76e562b9617d2c2d9b445f86761; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 11c1cd032df85df3c096a57a7f27d57819956e4a; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 198fd9faa271dd54dca6fc8eb6873f42dfd3b4d8; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 677a82b44ebf263d4f9a0cfbd576a6ade797a07b
- Anyone running Linux 4.2

## Description

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

f2fs: fix to do sanity check for inline inode

Yanming reported a kernel bug in Bugzilla kernel \[1\], which can be
reproduced. The bug message is:

The kernel message is shown below:

kernel BUG at fs/inode.c:611!
Call Trace:
 evict+0x282/0x4e0
 \_\_dentry\_kill+0x2b2/0x4d0
 dput+0x2dd/0x720
 do\_renameat2+0x596/0x970
 \_\_x64\_sys\_rename+0x78/0x90
 do\_syscall\_64+0x3b/0x90

\[1\] https://bugzilla.kernel.org/show\_bug.cgi?id=215895

The bug is due to fuzzed inode has both inline\_data and encrypted flags.
During f2fs\_evict\_inode(), as the inode was deleted by rename(), it
will cause inline data conversion due to conflicting flags. The page
cache will be polluted and the panic will be triggered in clear\_inode().

Try fixing the bug by doing more sanity checks for inline data inode in
sanity\_check\_inode().

## Affected and fixed versions

- Linux: \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< efdefbe8b7564602ab446474788225a1f2a323b5; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 7cfe2d43becaf76e562b9617d2c2d9b445f86761; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 11c1cd032df85df3c096a57a7f27d57819956e4a; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 198fd9faa271dd54dca6fc8eb6873f42dfd3b4d8; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 677a82b44ebf263d4f9a0cfbd576a6ade797a07b (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- Upgrade Linux to 677a82b44ebf263d4f9a0cfbd576a6ade797a07b 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-49361. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49361.md
Affected: Linux >= fcc85a4d86b5018f08717160c89c0eb50afd1dca, < efdefbe8b7564602ab446474788225a1f2a323b5; >= fcc85a4d86b5018f08717160c89c0eb50afd1dca, < 7cfe2d43becaf76e562b9617d2c2d9b445f86761; >= fcc85a4d86b5018f08717160c89c0eb50afd1dca, < 11c1cd032df85df3c096a57a7f27d57819956e4a; >= fcc85a4d86b5018f0871716…
Fixed in: Linux 7cfe2d43becaf76e562b9617d2c2d9b445f86761, Linux 11c1cd032df85df3c096a57a7f27d57819956e4a, Linux 198fd9faa271dd54dca6fc8eb6873f42dfd3b4d8, Linux 677a82b44ebf263d4f9a0cfbd576a6ade797a07b

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

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

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

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

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

Linux \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< efdefbe8b7564602ab446474788225a1f2a323b5; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 7cfe2d43becaf76e562b9617d2c2d9b445f86761; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 11c1cd032df85df3c096a57a7f27d57819956e4a; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 198fd9faa271dd54dca6fc8eb6873f42dfd3b4d8; \>= fcc85a4d86b5018f08717160c89c0eb50afd1dca, \< 677a82b44ebf263d4f9a0cfbd576a6ade797a07b; Linux 4.2.

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

Yes. Fixed in Linux 7cfe2d43becaf76e562b9617d2c2d9b445f86761, Linux 11c1cd032df85df3c096a57a7f27d57819956e4a, Linux 198fd9faa271dd54dca6fc8eb6873f42dfd3b4d8, Linux 677a82b44ebf263d4f9a0cfbd576a6ade797a07b. Upgrade Linux to 677a82b44ebf263d4f9a0cfbd576a6ade797a07b or later.

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

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/efdefbe8b7564602ab446474788225a1f2a323b5>
- patch: <https://git.kernel.org/stable/c/7cfe2d43becaf76e562b9617d2c2d9b445f86761>
- patch: <https://git.kernel.org/stable/c/11c1cd032df85df3c096a57a7f27d57819956e4a>
- patch: <https://git.kernel.org/stable/c/198fd9faa271dd54dca6fc8eb6873f42dfd3b4d8>
- patch: <https://git.kernel.org/stable/c/677a82b44ebf263d4f9a0cfbd576a6ade797a07b>

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

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