Linux Kernel RAID Device Array Out-of-Bounds Access Vulnerability

Vulnerability

A vulnerability in the Linux kernel's device-mapper RAID implementation allows for out-of-bounds memory access in RAID device arrays. This issue arises when the dm-raid table is loaded, as the allocation of the device array does not properly account for changes in RAID layout that may differ from the current number of members defined in the superblocks. Such layout changes can include modifications to RAID1 legs or adjustments in RAID4/5/6/10 stripe counts. The vulnerability was identified using the Kernel Address Sanitizer (KASAN), and the subsequent memory access beyond the allocated array was fixed by ensuring that the correct number of RAID disks was used in control loops, validating all added devices, and cleaning up the iteration process over RAID devices.

Impact

Exploitation of this vulnerability leads to out-of-bounds memory access, which can potentially be exploited to execute arbitrary code or cause a denial-of-service condition by crashing the system.

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.0
remediation
0.0
relevance
0.0
threat
3.2
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.