# CVE-2022-50864: nilfs2: fix shift-out-of-bounds due to too large exponent of block size

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:15:36.489Z
- **Modified:** 2026-06-17T05:24:19.050Z

## Who should check

- Anyone running Linux \>= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, \< ec93b5430ec0f60877a5388bb023d60624f9ab9f; \>= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, \< 8b6ef451b5701b37d9a5905534595776a662edfc; \>= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, \< ddb6615a168f97b91175e00eda4c644741cf531c; \>= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, \< a16731fa1b96226c75bbf18e73513b14fc318360; \>= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, \< ebeccaaef67a4895d2496ab8d9c2fb8d89201211
- Anyone running Linux 2.6.30

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

- Linux: \>= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, \< ec93b5430ec0f60877a5388bb023d60624f9ab9f; \>= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, \< 8b6ef451b5701b37d9a5905534595776a662edfc; \>= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, \< ddb6615a168f97b91175e00eda4c644741cf531c; \>= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, \< a16731fa1b96226c75bbf18e73513b14fc318360; \>= 8a9d2191e9f43bbcd256a9a6871bd73434c83f2f, \< ebeccaaef67a4895d2496ab8d9c2fb8d89201211 (cvelist)
- Linux: 2.6.30 (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-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.
```

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

## References

- other: <https://git.kernel.org/stable/c/ec93b5430ec0f60877a5388bb023d60624f9ab9f>
- other: <https://git.kernel.org/stable/c/8b6ef451b5701b37d9a5905534595776a662edfc>
- other: <https://git.kernel.org/stable/c/ddb6615a168f97b91175e00eda4c644741cf531c>
- other: <https://git.kernel.org/stable/c/a16731fa1b96226c75bbf18e73513b14fc318360>
- other: <https://git.kernel.org/stable/c/ebeccaaef67a4895d2496ab8d9c2fb8d89201211>

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

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