CVE-2026-139731

scsi: mpi3mr: Fix buffer overflow when caching log data

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

scsi: mpi3mr: Fix buffer overflow when caching log data

Each log data slot holds a header followed by the payload, but the copy was
sized against the whole slot and so wrote one header length past the end of
it. Subtracting the header on its own is not enough either, because the
entry size is derived from the controller reply size and can be smaller
than the header.

Work out the payload room first and clamp the copy to it.

Analysis

AI-generated

Technical impact

The vulnerability is a classic buffer overflow in the MPI3MR SCSI driver. When the driver caches log data, it copies payload data sized against a full log slot, but the payload area is smaller than the header, leading to a write that exceeds the allocated buffer by one header length. This memory corruption in kernel space could allow execution of arbitrary code and privilege escalation if exploited. Based on the description, it can be inferred that the overflow occurs during log caching operations performed by the MPI3MR driver.

Affected Systems

Affected systems are Linux kernel builds that include the MPI3MR SCSI driver. The description does not list specific kernel versions, therefore any kernel version containing the unpatched MPI3MR module is potentially vulnerable. The driver is part of the core kernel and typically enabled on systems that use MPI3 SCSI controllers.

Risk and Exploitability

The risk is local kernel privilege escalation, as exploitation requires execution within the driver’s context. No CVSS or EPSS scores are available and the CVE is not listed in CISA’s KEV catalog. The potential exploitation path would involve triggering a log caching operation on the MPI3MR device; however, the description does not provide details on remote or local attack prerequisites. The practical likelihood of exploitation is uncertain given missing official metrics.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that incorporates the MPI3MR buffer overflow fix.
  • If a kernel upgrade is not yet feasible, disable the mpi3mr module or block access to the SCSI controller to prevent log caching operations.
  • Enable kernel module signing and enforce load policies to ensure only signed, up‑to‑date modules are loaded.
  • Monitor system logs for abnormal memory write patterns or indications of privilege escalation attempts.

Generated by OpenCVE AI on December 1, 2026 at 01:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-120
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix buffer overflow when caching log data Each log data slot holds a header followed by the payload, but the copy was sized against the whole slot and so wrote one header length past the end of it. Subtracting the header on its own is not enough either, because the entry size is derived from the controller reply size and can be smaller than the header. Work out the payload room first and clamp the copy to it.
Title scsi: mpi3mr: Fix buffer overflow when caching log data
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM