CVE-2026-139735

scsi: mpi3mr: Fix buffer overflow in BSG passthrough request copy

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 in BSG passthrough request copy

The size of an incoming BSG request is checked using a variable that is
narrower than the field it is read from, so large values wrap and pass the
check. The copy that follows then uses the full value and writes past the
request buffer.

Widen the variable and copy only the amount that was checked.

Analysis

AI-generated

Technical impact

A mismatch between the variable used to validate the size of an incoming SCSI MPI3 multicast request and the actual size field allows a large value to wrap around, pass the check, and then be used in a memory copy operation that overruns the destination buffer. This buffer overflow occurs in kernel space and can corrupt critical data structures, potentially allowing an attacker to gain elevated privileges or crash the system. The weakness is a classic out‑of‑bounds write in a kernel driver.

Affected Systems

Linux kernel – any kernel version that includes the mpi3mr driver and does not incorporate the referenced commits. Version information is not specified, so all affected kernels before the fix are at risk unless patched.

Risk and Exploitability

The vulnerability has no published CVSS score or EPSS data and is not listed in the CISA KEV catalog at this time. The likely attack vector is to send a crafted BSG passthrough request to a exposed MPI3 device from a local or privileged user, as the buffer overrun occurs in kernel space. Because the flaw is a classic out‑of‑bounds write, an attacker who can trigger it can potentially execute arbitrary code with kernel privileges, leading to system takeover or denial of service.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel that incorporates the patch committed in 2c118e14ead952ccfbae9d694a8b7dacaca56cd8 and related commits; refer to the provided Git kernel references for the specific commit history.
  • If the MPI3 driver is not required for your environment, disable or remove the mpi3mr module from the kernel configuration to eliminate the attack surface.
  • Restrict access to SCSI device files (e.g., /dev/sg* or /dev/mpt*), ensuring that only trusted users or processes can issue BSG commands to the MPI3 device.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-120
CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: scsi: mpi3mr: Fix buffer overflow in BSG passthrough request copy The size of an incoming BSG request is checked using a variable that is narrower than the field it is read from, so large values wrap and pass the check. The copy that follows then uses the full value and writes past the request buffer. Widen the variable and copy only the amount that was checked.
Title scsi: mpi3mr: Fix buffer overflow in BSG passthrough request copy
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')

  • CWE-787

    Out-of-bounds Write

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