# CVE-2025-68773: spi: fsl-cpm: Check length parity before switching to 16 bit mode

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2026-01-13T15:28:50.686Z
- Modified: 2026-11-10T13:17:59.407Z
- 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.

(As written by CVE List.)

## Affected

- 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; dc120f2d35b030390a2bc0f94dd5f37e900cae91; b558275c1b040f0e5aa56c862241f9212b6118c3; b9d9e8856f1c83e4277403f9b4c369b322ebcb12; 36a6d0f66c874666caf4e8be155b1be30f6231be; and 9 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.*; from 6.18.3 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/c8f1d35076b78df61ace737e41cc1f4b7b63236c>
- <https://git.kernel.org/stable/c/9c34a4a2ead00979d203a8c16bea87f0ef5291d8>
- <https://git.kernel.org/stable/c/837a23a11e0f734f096c7c7b0778d0e625e3dc87>
- <https://git.kernel.org/stable/c/3dd6d01384823e1bd8602873153d6fc4337ac4fe>
- <https://git.kernel.org/stable/c/743cebcbd1b2609ec5057ab474979cef73d1b681>
- <https://git.kernel.org/stable/c/be0b613198e6bfa104ad520397cab82ad3ec1771>
- <https://git.kernel.org/stable/c/1417927df8049a0194933861e9b098669a95c762>
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2025-68773](https://www.cve.org/CVERecord?id=CVE-2025-68773), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2025-68773](https://nvd.nist.gov/vuln/detail/CVE-2025-68773), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2025-68773 · Whole record: https://cve.day/CVE-2025-68773.json · Rebuilt by cve.day 2026-11-25T22:59:10.525Z
