Linux Kernel Block Device Name Length Vulnerability in RAID0 Module

Vulnerability

A vulnerability in the Linux kernel's RAID0 module can lead to an integer overflow issue. When the total length of block device names, including slashes, exceeds 200 characters, the standard 'snprintf' function can miscalculate the remaining buffer space. This flaw allows the '200 minus length' calculation to wrap around, potentially causing memory corruption. The issue has been addressed by replacing 'snprintf' with 'scnprintf', which accurately reports the number of characters written, preventing the overflow.

Impact

Exploitation of this vulnerability can cause memory corruption due to improper handling of string lengths, potentially leading to arbitrary code execution or system crashes.

Reproduction

The vulnerability can be reproduced by using the 'mdadm' command to manage RAID0 arrays with block device names that collectively exceed 200 characters. This will trigger a warning about the 'snprintf' usage, indicating the potential for an integer overflow.

Remediation

Users can upgrade to the patched version of the Linux kernel available in the Linux Kernel PPA for Ubuntu.

Added: Sep 15, 2025, 7:04 PM
Updated: Sep 15, 2025, 7:04 PM

Vulnerability Rating

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