CVE-2026-100091: spi: ljca: validate the response length before copying the data
In the Linux kernel, the following vulnerability has been resolved:
spi: ljca: validate the response length before copying the data
ljcaspireadwrite() only checks that the response from the adapter carries the packet header and a non-zero payload length before copying rpacket->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 rpacket->len, then reject responses whose payload is not contained in the data received or is longer than the requested transfer.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.117 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.117-1Fixed in 7.3.4-1 - Compensating control
In Linux kernel ljca_spi_read_write(), validate that the full response header is present before reading it, and reject responses whose payload length exceeds the data received or the requested transfer before copying the payload.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel SPI driver for LJCA adapters are exposed when that driver communicates with an adapter that returns a malformed response. The issue is in the adapter response handling path, not in arbitrary SPI traffic.
What does an attacker or faulty device need to do to trigger it?
The adapter must return a response that includes a non-zero claimed payload length that is larger than the bytes actually received or larger than the requested transfer. This can cause the kernel to read beyond its 60-byte response buffer and write beyond the caller's transfer buffer.
How does the fix change handling of adapter responses?
The fix verifies that the complete packet header is present before reading the response length. It rejects payloads that do not fit within the received data or that exceed the requested transfer length.