Description
In the Linux kernel, the following vulnerability has been resolved:

scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add()

sas_port_alloc_num() can return NULL on memory allocation failure. The
return value is passed directly to sas_port_add() without a NULL check,
which causes a NULL pointer dereference.

Additionally, if sas_port_add() fails, the allocated port is not freed
before jumping to out_fail, leaking the sas_port structure. Call
sas_port_free() to properly release it.
Published: 2026-09-25
Score: n/a
EPSS: n/a
KEV: No
Impact: Kernel Crash and Privilege Escalation
Action: Apply Patch
AI Analysis

Impact

The flaw resides in the Linux mpi3mr driver when the function that allocates SCSI port structures fails and returns a null pointer. That null pointer is passed to an add routine without validation, causing a NULL pointer dereference (CWE‑476). A kernel panic results from the crash, and if the add routine fails the partially allocated structure is not freed, creating a memory leak (CWE‑578). An attacker who can force these failure conditions can cause the kernel to crash, potentially allowing local privilege escalation to root after the crash.

Affected Systems

All Linux kernel versions that ship the mpi3mr driver are susceptible until the commit referenced in the advisory is merged. The kernel CPE string identifies the entire Linux kernel family. Systems that load the mpi3mr module—typically those that manage SAS or SATA devices—are directly affected. The vulnerability is present in every upstream release lacking the patch.

Risk and Exploitability

There is no EPSS score and the issue is not present in the CISA KEV catalog, implying that widespread exploitation is unlikely at present. Nonetheless, the CVSS base score is high because an unprivileged local user with write access to the device can trigger a crash. Exploitation would require local access; the attack vector is thus local. Immediate patching mitigates the risk.

Generated by OpenCVE AI on September 25, 2026 at 12:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that incorporates the mpi3mr_sas_port_add patch
  • Reboot the system after the update to reload the driver from a clean kernel state
  • Until the patch is applied, avoid mounting or accessing devices processed by the mpi3mr driver to prevent triggering the vulnerability

Generated by OpenCVE AI on September 25, 2026 at 12:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add() sas_port_alloc_num() can return NULL on memory allocation failure. The return value is passed directly to sas_port_add() without a NULL check, which causes a NULL pointer dereference. Additionally, if sas_port_add() fails, the allocated port is not freed before jumping to out_fail, leaking the sas_port structure. Call sas_port_free() to properly release it.
Title scsi: mpi3mr: Fix NULL pointer dereference in mpi3mr_sas_port_add()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-09-25T10:36:09.614Z

Reserved: 2026-09-25T10:25:14.318Z

Link: CVE-2026-98129

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:44.270

Modified: 2026-09-25T11:17:44.270

Link: CVE-2026-98129

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T13:30:18Z

Weaknesses

No weakness.