Linux Kernel ext4 Memory Allocation Vulnerability

Vulnerability

A vulnerability in the Linux kernel's ext4 file system has been identified, related to memory allocation and disk space management. The issue arises in the ext4 memory block allocator, where a 'BUG_ON' condition is triggered, indicating a kernel bug. This vulnerability can be reproduced by creating a disk image, formatting it with the ext4 file system, and then using a file system stress test tool. The problem occurs when the size of the allocation request is truncated, leading to a situation where the requested disk space management operations are not properly aligned or validated, potentially causing inconsistencies in how disk space is allocated or managed.

Impact

Exploitation of this vulnerability leads to a kernel panic, causing a denial of service by crashing the system.

Reproduction

The vulnerability can be reproduced by creating a disk image file, formatting it with the ext4 file system using a specific block size and group size, and then mounting the file system. After mounting, a file system stress test can be applied to the mounted directory, which triggers the vulnerability by causing the memory block allocator to encounter an unexpected condition that violates its assumptions about disk space management.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
0.0
relevance
0.0
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.