CVE-2022-50864
nilfs2: fix shift-out-of-bounds due to too large exponent of block size
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ec93b5430ec0f60877a5388bb023d60624f9ab9f; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < 8b6ef451b5701b37d9a5905534595776a662edfc; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ddb6615a168f97b91175e00eda4c644741cf531c; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < a16731fa1b96226c75bbf18e73513b14fc318360; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ebeccaaef67a4895d2496ab8d9c2fb8d89201211
- Anyone running Linux 2.6.30
Vulnerability facts
- Affected
- Linux >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ec93b5430ec0f60877a5388bb023d60624f9ab9f; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < 8b6ef451b5701b37d9a5905534595776a662edfc; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ddb6615a168f97b91175e00eda4c644741cf531c; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < a16731fa1b96226c75bbf18e73513b14fc318360; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ebeccaaef67a4895d2496ab8d9c2fb8d89201211; Linux 2.6.30
- Fixed in
- Linux 8b6ef451b5701b37d9a5905534595776a662edfc
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.26% chance of exploitation in 30 days (percentile 11, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix shift-out-of-bounds due to too large exponent of block size If field s_log_block_size of superblock data is corrupted and too large, init_nilfs() and load_nilfs() still can trigger a shift-out-of-bounds warning followed by a kernel panic (if panic_on_warn is set): shift exponent 38973 is too large for 32-bit type 'int' Call Trace: <TASK> dump_stack_lvl+0xcd/0x134 ubsan_epilogue+0xb/0x50 __ubsan_handle_shift_out_of_bounds.cold.12+0x17b/0x1f5 init_nilfs.cold.11+0x18/0x1d [nilfs2] nilfs_mount+0x9b5/0x12b0 [nilfs2] ... This fixes the issue by adding and using a new helper function for getting block size with sanity check.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ec93b5430ec0f60877a5388bb023d60624f9ab9f; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < 8b6ef451b5701b37d9a5905534595776a662edfc; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ddb6615a168f97b91175e00eda4c644741cf531c; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < a16731fa1b96226c75bbf18e73513b14fc318360; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ebeccaaef67a4895d2496ab8d9c2fb8d89201211 | — | cvelist |
| Linux | 2.6.30 | — | 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-50864. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50864.md Affected: Linux >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ec93b5430ec0f60877a5388bb023d60624f9ab9f; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < 8b6ef451b5701b37d9a5905534595776a662edfc; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ddb6615a168f97b91175e00eda4c644741cf531c; >= 8a9d2191e9f43bbcd256a9a… Fixed in: Linux 8b6ef451b5701b37d9a5905534595776a662edfc 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
Other
- https://git.kernel.org/stable/c/ec93b5430ec0f60877a5388bb023d60624f9ab9f
- https://git.kernel.org/stable/c/8b6ef451b5701b37d9a5905534595776a662edfc
- https://git.kernel.org/stable/c/ddb6615a168f97b91175e00eda4c644741cf531c
- https://git.kernel.org/stable/c/a16731fa1b96226c75bbf18e73513b14fc318360
- https://git.kernel.org/stable/c/ebeccaaef67a4895d2496ab8d9c2fb8d89201211
FAQ
Is CVE-2022-50864 being exploited?
There is no confirmed exploitation: CVE-2022-50864 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50864?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2022-50864?
Linux >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ec93b5430ec0f60877a5388bb023d60624f9ab9f; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < 8b6ef451b5701b37d9a5905534595776a662edfc; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ddb6615a168f97b91175e00eda4c644741cf531c; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < a16731fa1b96226c75bbf18e73513b14fc318360; >= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, < ebeccaaef67a4895d2496ab8d9c2fb8d89201211; Linux 2.6.30.
Is there a fix for CVE-2022-50864?
Yes. Fixed in Linux 8b6ef451b5701b37d9a5905534595776a662edfc. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2022-50864?
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.