Linux Kernel Block Size Validation Vulnerability in ext2 File System

Vulnerability

A vulnerability exists in the Linux kernel's ext2 file system module, specifically in the handling of block size during the mounting process. The issue arises because the log of the block size stored in the superblock is not properly validated. If an invalid log block size is encountered, it can cause an overflow when calculating the block size, leading to undefined behavior. This vulnerability affects several versions of the Linux kernel.

Impact

The vulnerability can cause an overflow in block size calculations, leading to undefined behavior, which could potentially be exploited to cause a denial of service or other unintended consequences.

Reproduction

The vulnerability can be reproduced by mounting an ext2 file system with an invalid log block size in the superblock. This can be done by manually setting the log block size to a value that exceeds the maximum allowed, such as 16, which is the limit defined in the kernel source code.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. Instructions for upgrading the kernel can be found in the official Linux kernel documentation.

Added: Oct 4, 2025, 5:14 PM
Updated: Oct 4, 2025, 5:14 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
4.3
remediation
7.7
relevance
0.7
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.