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

Published Dec 30, 2025
·
Updated

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 slogblocksize of superblock data is corrupted and too large, initnilfs() and loadnilfs() still can trigger a shift-out-of-bounds warning followed by a kernel panic (if paniconwarn is set):

shift exponent 38973 is too large for 32-bit type 'int' Call Trace: <TASK> dumpstacklvl+0xcd/0x134 ubsanepilogue+0xb/0x50 ubsanhandleshiftoutofbounds.cold.12+0x17b/0x1f5 initnilfs.cold.11+0x18/0x1d [nilfs2] nilfsmount+0x9b5/0x12b0 [nilfs2] ...

This fixes the issue by adding and using a new helper function for getting block size with sanity check.

Affected Software

1 affected component
linux/nilfs2

Event History

Dec 30, 2025
CVE Published
via MITRE·12:15 PM
Data Sourced
via MITRE·12:15 PM
Description
Data Sourced
via NVD·01:16 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2022-50864?

CVE-2022-50864 has a medium severity rating due to the potential for a shift-out-of-bounds condition in the nilfs2 filesystem.

2

How does CVE-2022-50864 impact the Linux kernel?

CVE-2022-50864 can lead to a denial of service if the block size exponent in the superblock is corrupted.

3

How do I fix CVE-2022-50864?

To fix CVE-2022-50864, update to the latest stable version of the Linux kernel that includes the patch addressing this vulnerability.

4

Which versions of the Linux kernel are affected by CVE-2022-50864?

CVE-2022-50864 affects versions of the Linux kernel that utilize the nilfs2 filesystem with a corrupted block size exponent.

5

What are the potential consequences of not addressing CVE-2022-50864?

Failure to address CVE-2022-50864 could result in system instability or denial of service due to crashes related to the nilfs2 filesystem.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203