CVE-2022-50864 Details
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.
A vulnerability in the Linux kernel's Nilfs2 file system can cause a shift-out-of-bounds error, leading to a kernel panic, if the superblock's log block size exponent is corrupted and excessively large. The issue arises in the 'init_nilfs()' and 'load_nilfs()' functions, where the invalid block size exponent triggers a warning that the shift is too large for a 32-bit integer. This vulnerability has been addressed by implementing a new helper function that includes a sanity check for the block size.
Users can upgrade to the patched version of the Linux kernel where this vulnerability has been fixed. Instructions for downloading the latest stable kernel can be found on the official Linux kernel website.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 30, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/8b6ef451b5701b37d9a5905534595776a662edfc | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a16731fa1b96226c75bbf18e73513b14fc318360 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ddb6615a168f97b91175e00eda4c644741cf531c | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ebeccaaef67a4895d2496ab8d9c2fb8d89201211 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/ec93b5430ec0f60877a5388bb023d60624f9ab9f | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
| Linux nilfs2 | All versions |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 30, 2025 | New CVE Received | kernel.org |
Volerion