Linux Kernel Nilfs2 Filesystem Shift-Out-Of-Bounds Vulnerability

Vulnerability

A vulnerability in the Linux kernel's nilfs2 filesystem can lead to a shift-out-of-bounds error, causing a kernel panic. This issue arises when the block size exponent in an on-disk superblock is corrupted, allowing the nilfs_sb2_bad_offset function to process an invalid shift value. The vulnerability is present in several versions of the Linux kernel.

Impact

The vulnerability can cause a kernel panic, disrupting system operations and potentially leading to a denial of service.

Reproduction

The vulnerability can be reproduced by mounting a nilfs2 filesystem with a corrupted superblock that includes an invalid block size exponent. This can be done by creating a filesystem image that intentionally damages the superblock data, particularly the block size exponent, and then mounting this image on a system running the affected Linux kernel version.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed.

Added: Oct 4, 2025, 7:55 PM
Updated: Oct 4, 2025, 7:55 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.6
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.