CVE-2026-139726 — Linux Kernel — NONE Vulnerability
In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix out-of-bounds read in SAS topology change events The number of entries in a SAS topology change event is used to walk the entry array without being compared against the amount of event data that was received, so the walk can run past the end of the buffer. Work out how many entries the payload can hold and skip the event if it claims more.
In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix out-of-bounds read in SAS topology change events The number of entries in a SAS topology change event is used to walk the entry array without being compared against the amount of event data that was received, so the walk can run past the end of the buffer. Work out how many entries the payload can hold and skip the event if it claims more.
🎯 What is this vulnerability?
This vulnerability is a classic Out-of-Bounds (OOB) Read (CWE-125) within the Linux kernel's mpi3mr SCSI driver, specifically in the handling of SAS (Serial Attached SCSI) topology change events.
Technical Flaw Analysis:
1. Context: The mpi3mr driver communicates with LSI/Microsemi MegaRAID controllers. When the SAS topology changes (e.g., a disk is hot-plugged, or a cable is disconnected), the controller sends an interrupt/event to the driver containing a payload describing the change.
2. The Bug: The driver code iterates through an array of "entries" within the event payload. The loop counter is driven by a field in the event header that specifies the number of entries. However, the code fails to validate this count against the actual length of the received data buffer.
3. Consequence: If the controller (or a maliciously crafted event) reports a higher number of entries than the buffer actually contains, the driver's loop will read memory beyond the allocated buffer boundary.
4. Impact: In the Linux kernel, reading OOB memory typically leads to:
* Kernel Panic (Denial of Service): If the OOB read hits an unmapped page or a protected memory region, the kernel will crash.
* Information Disclosure: If the OOB read hits mapped kernel memory, it may leak sensitive kernel data (pointers, keys, etc.) into the event processing path, potentially observable via logs or side-channels, though this is less likely to be directly exploitable for RCE without further primitives.
CVSS Note: The provided CVSS score is 0/10 (NONE), which is technically inconsistent with a kernel OOB read that can cause a panic. In standard CVSS v3.1, a kernel DoS via local or adjacent network (SAS is an adjacent network) would typically score Medium (5.5-6.5) or High (7.5) depending on the attack vector and privileges required. The "NONE" score likely indicates a data entry error in the source feed or a specific context where the vulnerability is deemed non-exploitable in the specific deployment model (e.g., trusted hardware only). However, for analysis purposes, we treat it as a Medium-High severity DoS vulnerability.
⚡ Attack Chain
Prerequisites:
- The target system must be running a vulnerable Linux kernel (5.14 or specific commit
40edab8fbf28252abb84f655a185ceda7777dfe9). - The system must have an LSI/Microsemi MegaRAID controller using the
mpi3mrdriver. - The attacker must have physical access to the SAS fabric or the ability to inject events into the SAS topology (e.g., via a compromised HBA, a malicious disk, or a man-in-the-middle on the SAS cable). SAS is a point-to-point or tree topology, so remote network exploitation is not possible. This is a local/adjacent attack.
Step 1: Discovery & Reconnaissance
1. Identify Hardware: The attacker identifies that the target server uses an LSI/Microsemi MegaRAID controller. Command:*lspci | grep -i lsi or lspci | grep -i mega
Check Driver:* lsmod | grep mpi3mr
2. Identify Kernel Version:
Command:* uname -r
* Verify if the version is 5.14 or contains the vulnerable commit 40edab8fbf28252abb84f655a185ceda7777dfe9.Step 2: Exploitation
Mechanism: The attacker crafts a malicious SAS topology change event. This requires low-level interaction with the SAS protocol, typically via a custom kernel module or a specialized tool that can send raw MPI (Message Passing Interface) commands to the controller.Illustrative PoC Concept (Kernel Module):
Note: This is a conceptual example. Actual exploitation requires writing a kernel module that interfaces with the MPI3MR driver's internal structures or uses the ioctl interface if exposed (it is not directly exposed to userspace for raw event injection). The most realistic attack vector is via a malicious disk or a compromised HBA that sends a malformed event.
/* Conceptual Kernel Module Snippet - Illustrative Only */
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/mpi3mr.h> // Hypothetical header for internal structures
/*
* In reality, the attacker would need to:
* 1. Allocate a buffer for the MPI3MR event.
* 2. Set the 'num_entries' field to a value larger than the buffer size.
* 3. Send this event to the driver via the MPI3MR interrupt handler path.
*
* This is typically achieved by:
* - A malicious disk that triggers a topology change with corrupted metadata.
* - A compromised HBA firmware that sends malformed events.
*/
static int mpi3mr_trigger_oob_read(void) {
struct mpi3mr_event *event;
int num_entries = 100; // Maliciously high value
int buffer_size = 64; // Actual buffer size is smaller
/*
* The driver code likely looks like this (vulnerable):
* for (i = 0; i < event->num_entries; i++) {
* process_entry(&event->entries[i]); // OOB READ if i >= buffer_size/entry_size
* }
*/
// Trigger the event via the MPI3MR driver's internal API
// This requires kernel-level access or a compromised HBA
return 0;
}Realistic Attack Vector:
1. Malicious Disk: An attacker with physical access inserts a disk that, upon connection, sends a SAS topology change event with a corrupted "number of entries" field.
2. Compromised HBA: If the HBA firmware is compromised, it can send malformed events to the host driver.
Step 3: Post-Exploitation
1. Denial of Service: The OOB read causes a kernel panic. The system crashes and reboots. 2. Information Disclosure (Low Probability): If the OOB read does not crash the kernel, it may read adjacent kernel memory. This data is processed by the driver and may be logged or used in subsequent operations. An attacker with local access could potentially monitor these logs to extract kernel pointers or other sensitive data, aiding in further kernel exploits. 3. No RCE: This vulnerability is primarily a DoS. It does not provide a direct write primitive, so RCE is unlikely without additional vulnerabilities.🌍 Real World Impact
Practical Consequences:
🛡️ Remediation & Mitigation
1. Patching
40edab8fbf28252abb84f655a185ceda7777dfe9.2. Workarounds
mpt3sas if supported and patched).3. Detection
dmesg or /var/log/kern.log for kernel panics or OOB read errors related to mpi3mr.BUG: unable to handle kernel paging request in mpi3mr_handle_event
⚠️ Urgency
CVSS Score: 0/10 (NONE) - Note: This score is likely incorrect or context-specific. Treat as Medium-High.*
* Critical for: Data centers with strict physical security controls and no history of malicious hardware insertion.
* High for: Environments with less strict physical security or where supply chain risks are a concern.
* Recommendation: Patch during the next regular maintenance window. Do not delay if physical security is a concern.
[🤖 CVE Professor AI Security Engine]
FOFA Query