Skip to main content
Vulnerability Database/CVE-2026-98128

CVE-2026-98128: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-98128 is a privilege escalation flaw in the Linux kernel mpi3mr driver causing memory leaks through improper reference counting. This post explains its technical details, affected versions, and mitigation steps.

Published:

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-98128 Overview

CVE-2026-98128 is a reference count leak in the Linux kernel's mpi3mr SCSI driver, which supports Broadcom MPI 3.0 storage adapters. The flaw resides in the mpi3mr_sas_port_add() function, where a target device reference acquired via mpi3mr_get_tgtdev_by_addr() is not released on the error path. The leaked reference prevents the target device structure from ever being freed, causing a persistent kernel memory leak each time the error path executes.

Critical Impact

The reference leak prevents target device structures from being freed, degrading kernel memory availability over time and potentially leading to resource exhaustion on systems using affected mpi3mr SCSI adapters.

Affected Products

  • Linux kernel builds containing the mpi3mr SCSI driver prior to the fix commits
  • Systems using Broadcom MPI 3.0 storage host bus adapters that invoke mpi3mr_sas_port_add()
  • Stable kernel branches referenced in the upstream commits 040146f, 06a7073, 1ccbe8c, and 419d129

Discovery Timeline

  • 2026-09-25 - CVE-2026-98128 published to NVD
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98128

Vulnerability Analysis

The vulnerability is a Memory Leak caused by an unbalanced kernel reference count (kref) in the mpi3mr SCSI low-level driver. When mpi3mr_sas_port_add() resolves a SAS end device by address, it calls mpi3mr_get_tgtdev_by_addr(), which increments the target device kref before returning the device pointer. If a subsequent operation fails and control jumps to the shared out_fail label, the function exits without calling mpi3mr_tgtdev_put().

Because the reference is never decremented, the target device structure remains pinned in kernel memory indefinitely. Repeated port-add failures compound the leak and reduce memory available to other kernel subsystems.

Root Cause

The root cause is an asymmetric lifecycle in the error-handling path. The success path releases the acquired reference, but the out_fail label is shared with earlier error branches that never acquired a tgtdev reference. The original code therefore omitted a put call to avoid dereferencing a NULL tgtdev in those earlier branches, leaving the later branch's reference permanently leaked.

The fix adds a mpi3mr_tgtdev_put(tgtdev) call on the out_fail path, guarded by a NULL check so it executes only when a reference was actually acquired for a SAS_END_DEVICE target.

Attack Vector

The defect is reached through normal kernel code paths during SAS port enumeration on affected hardware. There is no published remote attack vector. The practical risk is reliability and availability: environments that experience repeated port-add failures accumulate leaked target device structures, which can contribute to long-term kernel memory pressure.

// No verified exploit code is available for this issue.
// Refer to the upstream patch commits for the exact source-level fix:
// https://git.kernel.org/stable/c/040146f81d099006a354b0caacc7f01ca00f257e
// https://git.kernel.org/stable/c/06a7073b33b8f5cb0ee71e07dc669efffb1c7d58
// https://git.kernel.org/stable/c/1ccbe8c42009706af79e6629c70d42fc929aef2b
// https://git.kernel.org/stable/c/419d129f970aaa6567dbac366b0c93784bf9ec97

Detection Methods for CVE-2026-98128

Indicators of Compromise

  • Growing kernel slab usage attributable to mpi3mr target device allocations without a matching free rate
  • Repeated mpi3mr_sas_port_add() failure messages in dmesg or /var/log/kern.log on hosts with Broadcom MPI 3.0 adapters
  • Target devices that remain visible in sysfs after the underlying SAS end device has been removed

Detection Strategies

  • Inventory running kernels against the fixed stable commits (040146f, 06a7073, 1ccbe8c, 419d129) and flag hosts that predate these fixes
  • Monitor /proc/slabinfo and per-driver kmalloc counters on systems loading the mpi3mr module for upward trends that do not plateau
  • Correlate SCSI subsystem error log entries with memory accounting metrics to identify leaking hosts

Monitoring Recommendations

  • Enable persistent kernel log collection and forward mpi3mr driver events to a central log platform for trend analysis
  • Track long-running storage hosts for slow, monotonic increases in Slab and SUnreclaim values reported in /proc/meminfo
  • Add alerting on SAS enumeration errors so repeated port-add failures are investigated before memory pressure becomes operationally significant

How to Mitigate CVE-2026-98128

Immediate Actions Required

  • Identify all hosts running the mpi3mr driver and determine their kernel build commit
  • Schedule patching to a stable kernel release that includes one of the fix commits for CVE-2026-98128
  • On unpatched hosts, plan periodic reboots of long-running storage servers to reclaim leaked target device structures

Patch Information

The upstream fix adds a conditional mpi3mr_tgtdev_put(tgtdev) on the out_fail path of mpi3mr_sas_port_add(). The change is available in the following stable kernel commits: Kernel Git Commit 040146f, Kernel Git Commit 06a7073, Kernel Git Commit 1ccbe8c, and Kernel Git Commit 419d129. Apply vendor-provided kernel updates that incorporate these commits.

Workarounds

  • Where patching cannot be performed immediately, monitor and schedule reboots of affected hosts to clear accumulated leaked references
  • If the hardware is not required, unload the mpi3mr module on hosts that do not use Broadcom MPI 3.0 adapters to eliminate exposure
  • Address underlying causes of repeated SAS port enumeration failures (cabling, expanders, firmware) to minimize executions of the leaking error path
bash
# Verify whether the mpi3mr driver is loaded and in use
lsmod | grep mpi3mr

# Review recent SCSI and mpi3mr driver messages for port-add failures
dmesg -T | grep -Ei 'mpi3mr|sas_port_add'

# Track kernel slab growth over time on affected hosts
watch -n 60 "grep -E 'Slab|SUnreclaim' /proc/meminfo"

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.