CVE-2026-139368

scsi: libsas: Fix out-of-bounds memcpy() in sas_ssp_task_response()

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

scsi: libsas: Fix out-of-bounds memcpy() in sas_ssp_task_response()

The min_t(int, ...) clamp of the device-provided sense_data_len turns
negative for values >= 0x80000000 and is then used as the memcpy()
length, reading and writing out of bounds. Compare as u32
instead. Well-formed responses are unaffected.

Analysis

AI-generated

Technical impact

The kernel’s libsas subsystem performs a memcpy using a length derived from device‑supplied sense data. When the sense_data_len field is large, the min_t clamp produces a negative integer that is used as the copy length, causing a read and write beyond the bounds of the destination buffer. This flaw can corrupt memory, potentially leading to system compromise if an attacker can supply crafted task responses. The weakness is a classic out‑of‑bounds buffer copy.

Affected Systems

All Linux kernel releases that compile the libsas SCSI subsystem are affected. The vulnerability applies to standard kernel builds that include scsi and libsas drivers; no specific version range is given, so any kernel version prior to the commit that introduced the fix is susceptible.

Risk and Exploitability

The CVSS score is not publicly disclosed, and EPSS data is unavailable, indicating insufficient information to judge exploitation likelihood. The flaw is not listed in the CISA KEV catalog, suggesting no confirmed field‑deployed exploitation. Attackers would need the ability to send malformed SCSI task responses to a target system using a SAS device, an advanced adversary scenario. Without a public exploit, the risk remains theoretical but significant if the attack surface exists.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply an updated Linux kernel version that incorporates the libsas memcpy fix, ensuring the patch from commit 2215058e08955a60fc845d9ad12519087ad15947 and subsequent commits is present.
  • If the system must continue to use SAS devices but cannot be updated immediately, disable the libsas module or replace it with a minimal implementation that refuses malformed task responses, thereby removing the vulnerable code path.
  • Implement monitoring to detect abnormal SAS task responses with excessively large sense_data_len values and configure the kernel’s SCSI subsystem to reject or quarantine such responses, limiting the window for exploitation.

Generated by OpenCVE AI on December 1, 2026 at 06:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.6, 'vector': 'CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: scsi: libsas: Fix out-of-bounds memcpy() in sas_ssp_task_response() The min_t(int, ...) clamp of the device-provided sense_data_len turns negative for values >= 0x80000000 and is then used as the memcpy() length, reading and writing out of bounds. Compare as u32 instead. Well-formed responses are unaffected.
Title scsi: libsas: Fix out-of-bounds memcpy() in sas_ssp_task_response()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:34 PM