Not scored
spi: fsl-cpm: Check length parity before switching to 16 bit mode
- Severity
- Not scored
- Exploit likelihood
- 0.24% (higher than 15% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: spi: fsl-cpm: Check length parity before switching to 16 bit mode Commit fc96ec826bce ("spi: fsl-cpm: Use 16 bit mode for large transfers with even size") failed to make sure that the size is really even before switching to 16 bit mode. Until recently the problem went unnoticed because kernfs uses a pre-allocated bounce buffer of size PAGE_SIZE for reading EEPROM. But commit 8ad6249c51d0 ("eeprom: at25: convert to spi-mem API") introduced an additional dynamically allocated bounce buffer whose size is exactly the size of the transfer, leading to a buffer overrun in the fsl-cpm driver when that size is odd. Add the missing length parity verification and remain in 8 bit mode when the length is not even.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 60afe299bb541a928ba39bcb4ae8d3e428d1c5a5 before c8f1d35076b78df61ace737e41cc1f4b7b63236c, from 4badd33929c05ed314794b95f1af1308f7222be8 before 9c34a4a2ead00979d203a8c16bea87f0ef5291d8, from 7f6738e003b364783f3019fdf6e7645bc8dd1643 before 837a23a11e0f734f096c7c7b0778d0e625e3dc87, from fc96ec826bced75cc6b9c07a4ac44bbf651337ab before 3dd6d01384823e1bd8602873153d6fc4337ac4fe, from fc96ec826bced75cc6b9c07a4ac44bbf651337ab before 743cebcbd1b2609ec5057ab474979cef73d1b681, from fc96ec826bced75cc6b9c07a4ac44bbf651337ab before be0b613198e6bfa104ad520397cab82ad3ec1771, from fc96ec826bced75cc6b9c07a4ac44bbf651337ab before 1417927df8049a0194933861e9b098669a95c762, 42c04316d9275ec267d36e5e9064cd56c9884148 and 13 more Not affected: before 6.4, from 5.10.248 up to 5.10.*, from 5.15.198 up to 5.15.*, from 6.1.160 up to 6.1.*, from 6.6.120 up to 6.6.*, from 6.12.64 up to 6.12.* | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: spi: fsl-cpm: Check length parity before switching to 16 bit mode Commit fc96ec826bce ("spi: fsl-cpm: Use 16 bit mode for large transfers with even size") failed to make sure that the size is really even before switching to 16 bit mode. Until recently the problem went unnoticed because kernfs uses a pre-allocated bounce buffer of size PAGE_SIZE for reading EEPROM. But commit 8ad6249c51d0 ("eeprom: at25: convert to spi-mem API") introduced an additional dynamically allocated bounce buffer whose size is exactly the size of the transfer, leading to a buffer overrun in the fsl-cpm driver when that size is odd. Add the missing length parity verification and remain in 8 bit mode when the length is not even.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: spi: fsl-cpm: Verificar la paridad de la longitud antes de cambiar al modo de 16 bits El commit fc96ec826bce ('spi: fsl-cpm: Usar el modo de 16 bits para transferencias grandes con tamaño par') no logró asegurar que el tamaño fuera realmente par antes de cambiar al modo de 16 bits. Hasta hace poco el problema pasó desapercibido porque kernfs utiliza un búfer de rebote preasignado de tamaño PAGE_SIZE para leer la EEPROM. Pero el commit 8ad6249c51d0 ('eeprom: at25: convertir a la API spi-mem') introdujo un búfer de rebote adicional asignado dinámicamente cuyo tamaño es exactamente el tamaño de la transferencia, lo que llevó a un desbordamiento de búfer en el controlador fsl-cpm cuando ese tamaño es impar. Añadir la verificación de paridad de longitud faltante y permanecer en el modo de 8 bits cuando la longitud no es par.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68773 changed 2026-11-10 | CVE Terms of Use |
| NVD | CVE-2025-68773 changed 2026-11-10 | Public domain |