CVE-2022-49380
f2fs: fix to avoid f2fs_bug_on() in dec_valid_node_count()
Mitigation
- Upgrade Linux to 4d17e6fe9293d57081ffdc11e1cf313e25e8fd9e or later.
Who should check
- Anyone running Linux >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < f8b3c3fcf33105bc1ee7788e3b51b0a1ae42ae53; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 2766ddaf45b69252bb8fe526b5b6e56904a9ae7a; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < bce859358d3d5940aa858e40ceee70ee6e76130e; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 89d9a48d0cd30429463ea4e37ca83be6773ed5eb; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < ccffa99ae6a1f44797b57444c6a80382a42928fe; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 4d17e6fe9293d57081ffdc11e1cf313e25e8fd9e
- Anyone running Linux 3.8
Vulnerability facts
- Affected
- Linux >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < f8b3c3fcf33105bc1ee7788e3b51b0a1ae42ae53; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 2766ddaf45b69252bb8fe526b5b6e56904a9ae7a; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < bce859358d3d5940aa858e40ceee70ee6e76130e; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 89d9a48d0cd30429463ea4e37ca83be6773ed5eb; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < ccffa99ae6a1f44797b57444c6a80382a42928fe; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 4d17e6fe9293d57081ffdc11e1cf313e25e8fd9e; Linux 3.8
- Fixed in
- Linux 2766ddaf45b69252bb8fe526b5b6e56904a9ae7a, Linux 89d9a48d0cd30429463ea4e37ca83be6773ed5eb, Linux 4d17e6fe9293d57081ffdc11e1cf313e25e8fd9e
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to avoid f2fs_bug_on() in dec_valid_node_count() As Yanming reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=215897 I have encountered a bug in F2FS file system in kernel v5.17. The kernel should enable CONFIG_KASAN=y and CONFIG_KASAN_INLINE=y. You can reproduce the bug by running the following commands: The kernel message is shown below: kernel BUG at fs/f2fs/f2fs.h:2511! Call Trace: f2fs_remove_inode_page+0x2a2/0x830 f2fs_evict_inode+0x9b7/0x1510 evict+0x282/0x4e0 do_unlinkat+0x33a/0x540 __x64_sys_unlinkat+0x8e/0xd0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x44/0xae The root cause is: .total_valid_block_count or .total_valid_node_count could fuzzed to zero, then once dec_valid_node_count() was called, it will cause BUG_ON(), this patch fixes to print warning info and set SBI_NEED_FSCK into CP instead of panic.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < f8b3c3fcf33105bc1ee7788e3b51b0a1ae42ae53; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 2766ddaf45b69252bb8fe526b5b6e56904a9ae7a; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < bce859358d3d5940aa858e40ceee70ee6e76130e; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 89d9a48d0cd30429463ea4e37ca83be6773ed5eb; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < ccffa99ae6a1f44797b57444c6a80382a42928fe; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 4d17e6fe9293d57081ffdc11e1cf313e25e8fd9e | — | cvelist |
| Linux | 3.8 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-49380. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-49380.md Affected: Linux >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < f8b3c3fcf33105bc1ee7788e3b51b0a1ae42ae53; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 2766ddaf45b69252bb8fe526b5b6e56904a9ae7a; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < bce859358d3d5940aa858e40ceee70ee6e76130e; >= 39a53e0ce0df01b3cf4bb89… Fixed in: Linux 2766ddaf45b69252bb8fe526b5b6e56904a9ae7a, Linux 89d9a48d0cd30429463ea4e37ca83be6773ed5eb, Linux 4d17e6fe9293d57081ffdc11e1cf313e25e8fd9e 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.
References
Patches
- https://git.kernel.org/stable/c/f8b3c3fcf33105bc1ee7788e3b51b0a1ae42ae53
- https://git.kernel.org/stable/c/2766ddaf45b69252bb8fe526b5b6e56904a9ae7a
- https://git.kernel.org/stable/c/bce859358d3d5940aa858e40ceee70ee6e76130e
- https://git.kernel.org/stable/c/89d9a48d0cd30429463ea4e37ca83be6773ed5eb
- https://git.kernel.org/stable/c/ccffa99ae6a1f44797b57444c6a80382a42928fe
- https://git.kernel.org/stable/c/4d17e6fe9293d57081ffdc11e1cf313e25e8fd9e
FAQ
Is CVE-2022-49380 being exploited?
There is no confirmed exploitation: CVE-2022-49380 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-49380?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-49380?
Linux >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < f8b3c3fcf33105bc1ee7788e3b51b0a1ae42ae53; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 2766ddaf45b69252bb8fe526b5b6e56904a9ae7a; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < bce859358d3d5940aa858e40ceee70ee6e76130e; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 89d9a48d0cd30429463ea4e37ca83be6773ed5eb; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < ccffa99ae6a1f44797b57444c6a80382a42928fe; >= 39a53e0ce0df01b3cf4bb898c7ae2fd2189647d5, < 4d17e6fe9293d57081ffdc11e1cf313e25e8fd9e; Linux 3.8.
Is there a fix for CVE-2022-49380?
Yes. Fixed in Linux 2766ddaf45b69252bb8fe526b5b6e56904a9ae7a, Linux 89d9a48d0cd30429463ea4e37ca83be6773ed5eb, Linux 4d17e6fe9293d57081ffdc11e1cf313e25e8fd9e. Upgrade Linux to 4d17e6fe9293d57081ffdc11e1cf313e25e8fd9e or later.
How do I check if I'm affected by CVE-2022-49380?
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.