Linux Kernel Megaraid_sas Out-of-Bounds Access Vulnerability

Vulnerability

A vulnerability in the Linux kernel's megaraid_sas SCSI driver has been identified, involving an out-of-bounds access issue. This problem occurs on systems with DRAM interleave enabled, where the driver improperly handles interrupt vector allocations. The flaw has been detected during the probing of the megaraid_sas device, leading to undefined behavior by accessing an invalid array index.

Impact

Exploitation of this vulnerability causes an out-of-bounds array access, which can lead to undefined behavior such as memory corruption.

Reproduction

The vulnerability can be reproduced by enabling DRAM interleave on a system and loading the megaraid_sas driver. During the driver's initialization process, it requests 128 MSI-X interrupt vectors, but an invalid node index is generated, causing an out-of-bounds access in the CPU topology data. This issue can be observed using the Undefined Behavior Sanitizer, which reports the array index out-of-bounds error.

Added: Jul 9, 2025, 12:06 PM
Updated: Jul 9, 2025, 12:06 PM

Vulnerability Rating

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