Junglewise Threat Intelligence

CVE-2025-68773: Linux Kernel buffer overflow in Freescale CPM SPI driver

CVE-2025-68773 · Severity: info · CVSS 0 · Published 2026-01-13

Technologies: Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP. Vendors: Linux, Siemens.

Executive brief

A vulnerability in the Linux kernel's SPI driver for Freescale CPM controllers could allow a buffer overflow. This occurs when the system incorrectly handles data transfers of an odd size, potentially leading to system instability or unauthorized memory access. The issue specifically affects certain industrial hardware and embedded systems using these specific processors.

Technical details

A buffer overflow exists in the fsl-cpm SPI driver (drivers/spi/spi-fsl-spi.c) due to a missing parity check on transfer lengths. The driver incorrectly switches to 16-bit mode for large transfers without verifying if the length is even. When used with components like the at25 EEPROM driver that utilize dynamically allocated bounce buffers sized exactly to the transfer length, an odd-sized transfer causes the driver to write beyond the buffer boundaries. This is a regression from commit fc96ec826bce and is resolved by ensuring the driver remains in 8-bit mode for odd-length transfers.

Affected products

  • Linux Linux 60afe299bb54, 4badd33929c0, 7f6738e003b3, fc96ec826bce
  • Siemens SIMATIC S7-1500 CPU 1518-4 PN/DP MFP V3.1.6

Timeline

  • 2025-11-20: patched: Initial fix authored by Christophe Leroy
  • 2026-01-13: disclosed: CVE-2025-68773 published

References

Related threats