CVE-2026-100091

spi: ljca: validate the response length before copying the 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:

spi: ljca: validate the response length before copying the data

ljca_spi_read_write() only checks that the response from the adapter
carries the packet header and a non-zero payload length before copying
r_packet->len bytes from the response into the transfer buffer.

The payload length is taken from the packet the device sent back and is
neither bounded by the number of bytes actually received nor by the
size of the requested transfer: a misbehaving adapter can announce a
payload larger than what it actually sent, and the memcpy then reads
past the end of the 60-byte input buffer and writes past the end of the
caller's transfer buffer.

Check that the response carries the full header before reading
r_packet->len, then reject responses whose payload is not contained in
the data received or is longer than the requested transfer.

Analysis

AI-generated

Technical impact

The ljca_spi_read_write() function in the Linux kernel validates the packet header only, then trusts the payload length reported by an SPI adapter. Because that length is not limited by either the actual number of received bytes or the size of the caller’s transfer request, an adapter that advertises a larger payload can cause the kernel to copy data past the end of a 60‑byte input buffer and overwrite memory beyond the caller’s transfer buffer. This unchecked memory overwrite can lead to kernel crashes or arbitrary code execution with elevated privileges.

Affected Systems

The vulnerability exists in the Linux kernel’s SPI LJC driver. All Linux kernel releases prior to the inclusion of the fix are affected. The specific kernel version range is not listed in the data, so any system running a kernel that still contains the unfixed ljca_spi_read_write() implementation is at risk.

Risk and Exploitability

No EPSS score is provided, and the vulnerability is not included in the CISA KEV catalog, indicating a low publicly documented exploitation probability. Nonetheless, an attacker would need control over or the ability to provide responses from an SPI adapter, making the attack vector device‑local or potentially remote if the adapter is under attacker control. The lack of a CVSS score limits precise severity assessment, but the ability to perform a kernel memory overwrite poses a severe risk if exploited.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the patch validating response length before copying data
  • If the kernel upgrade cannot be performed immediately, disable or unload the ljca_spi driver if it is not required for your environment, or configure the system to load it only for trusted devices
  • Implement device integrity checks or firmware validation for SPI adapters to prevent malicious adapters from delivering corrupt payload lengths

Generated by OpenCVE AI on November 30, 2026 at 16:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
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: spi: ljca: validate the response length before copying the data ljca_spi_read_write() only checks that the response from the adapter carries the packet header and a non-zero payload length before copying r_packet->len bytes from the response into the transfer buffer. The payload length is taken from the packet the device sent back and is neither bounded by the number of bytes actually received nor by the size of the requested transfer: a misbehaving adapter can announce a payload larger than what it actually sent, and the memcpy then reads past the end of the 60-byte input buffer and writes past the end of the caller's transfer buffer. Check that the response carries the full header before reading r_packet->len, then reject responses whose payload is not contained in the data received or is longer than the requested transfer.
Title spi: ljca: validate the response length before copying the 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')

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:23 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM