Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-98129 Overview
CVE-2026-98129 is a NULL pointer dereference vulnerability in the Linux kernel's mpi3mr SCSI driver. The flaw resides in the mpi3mr_sas_port_add() function, which handles Serial Attached SCSI (SAS) port registration for Broadcom MPI3 storage controllers. The function sas_port_alloc_num() can return NULL on memory allocation failure, and its return value is passed directly to sas_port_add() without validation. The code path also leaks the sas_port structure when sas_port_add() fails because it does not call sas_port_free() before jumping to the error label.
Critical Impact
Memory allocation failure during SAS port setup triggers a NULL pointer dereference in kernel space, causing a kernel oops and potential denial of service on affected storage subsystems.
Affected Products
- Linux kernel versions containing the mpi3mr SCSI driver prior to the fix commits
- Systems using Broadcom MPI3 SAS/SATA storage controllers
- Distributions shipping unpatched stable and mainline kernel branches
Discovery Timeline
- 2026-09-25 - CVE-2026-98129 published to NVD
- 2026-09-30 - Last updated in NVD database
Technical Details for CVE-2026-98129
Vulnerability Analysis
The vulnerability exists in drivers/scsi/mpi3mr/mpi3mr_transport.c within the mpi3mr_sas_port_add() function. This function constructs SAS transport port objects when the driver enumerates storage topology. The implementation calls sas_port_alloc_num() to allocate a new SAS port structure, then immediately passes the result to sas_port_add() for registration with the SCSI transport layer.
Under low-memory conditions, sas_port_alloc_num() returns NULL. Without a NULL check, subsequent dereferences inside sas_port_add() trigger a kernel NULL pointer dereference [CWE-476]. The result is a kernel oops that can destabilize the storage stack and lead to a denial of service.
A secondary defect compounds the issue. If sas_port_add() fails after successful allocation, the function jumps to out_fail without calling sas_port_free(). This leaks the allocated sas_port structure, contributing to kernel memory exhaustion over repeated failure cycles.
Root Cause
The root cause is missing return value validation combined with incomplete error-path cleanup in the mpi3mr SAS transport code. The driver assumes allocation success and lacks the defensive checks required for kernel memory operations that can fail.
Attack Vector
Triggering the condition requires memory pressure during SAS port enumeration on a system with an affected Broadcom MPI3 controller. The vulnerability is not remotely exploitable and requires local kernel-level conditions, typically induced through heavy workloads, hotplug events, or constrained allocation contexts.
No verified exploitation code is available. The condition manifests organically under resource exhaustion rather than through crafted input. See the Linux Kernel Commit 2f69ed90 for the fix details.
Detection Methods for CVE-2026-98129
Indicators of Compromise
- Kernel oops or panic messages referencing mpi3mr_sas_port_add or sas_port_add in dmesg and /var/log/kern.log
- Unexpected SCSI transport layer failures coinciding with low-memory conditions
- Repeated sas_port allocation failures preceding system instability
Detection Strategies
- Audit installed kernel versions against the patched commits 2f69ed90, 5c50137b, 5cb58b05, and dba9e218 from the stable tree
- Inventory hosts running Broadcom MPI3 SAS controllers using lspci and correlate with kernel package versions
- Monitor kernel ring buffer output for NULL pointer dereference traces originating in the mpi3mr module
Monitoring Recommendations
- Collect kernel logs centrally and alert on BUG: unable to handle or Oops strings tied to SCSI transport symbols
- Track memory pressure metrics on storage-heavy hosts to identify allocation failure windows
- Correlate storage subsystem resets with kernel error events to surface repeat exposure
How to Mitigate CVE-2026-98129
Immediate Actions Required
- Apply the stable kernel updates containing commits 2f69ed909de9, 5c50137ba11b, 5cb58b052cf0, and dba9e2181ca5
- Prioritize patching on hosts with Broadcom MPI3 SAS controllers running production storage workloads
- Reboot into the patched kernel to activate the corrected mpi3mr_sas_port_add() logic
Patch Information
The upstream fix adds a NULL check on the return value of sas_port_alloc_num() and calls sas_port_free() on the sas_port_add() failure path. Patched commits are available in the stable tree: Linux Kernel Commit 2f69ed90, Linux Kernel Commit 5c50137b, Linux Kernel Commit 5cb58b05, and Linux Kernel Commit dba9e218. Consume updates through your distribution's kernel package channel.
Workarounds
- Avoid unloading and reloading the mpi3mr module on systems under memory pressure to reduce exposure to the allocation failure path
- Provision sufficient free memory and swap on storage controllers to lower the probability of allocation failures
- Where feasible, isolate affected hosts from workloads that trigger frequent SAS topology changes until patched
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

