# CVE-2025-37801: spi: spi-imx: Add check for spi_imx_setupxfer()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- 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.30%, higher than 15% of CVEs (2026-11-30)
- Published: 2025-05-08T06:26:01.980Z
- Modified: 2026-10-15T22:18:18.417Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

spi: spi-imx: Add check for spi_imx_setupxfer()

Add check for the return value of spi_imx_setupxfer().
spi_imx->rx and spi_imx->tx function pointer can be NULL when
spi_imx_setupxfer() return error, and make NULL pointer dereference.

 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
 Call trace:
  0x0
  spi_imx_pio_transfer+0x50/0xd8
  spi_imx_transfer_one+0x18c/0x858
  spi_transfer_one_message+0x43c/0x790
  __spi_pump_transfer_message+0x238/0x5d4
  __spi_sync+0x2b0/0x454
  spi_write_then_read+0x11c/0x200

(As written by CVE List.)

## Affected

- Linux Linux: from 307c897db762d1e0feee9477276b08f6deca4a5b before 2fea0d6d7b5d27fbf55512d51851ba0a346ede52; from 307c897db762d1e0feee9477276b08f6deca4a5b before 2b4479eb462ecb39001b38dfb331fc6028dedac8; from 307c897db762d1e0feee9477276b08f6deca4a5b before 185d376875ea6fb4256b9dc97ee0b4d2b0fdd399; from 307c897db762d1e0feee9477276b08f6deca4a5b before 055ef73bb1afc3f783a9a13b496770a781964a07; from 307c897db762d1e0feee9477276b08f6deca4a5b before 951a04ab3a2db4029debfa48d380ef834b93207e; 5.19 (not affected: before 5.19; from 6.1.136 up to 6.1.*; from 6.6.89 up to 6.6.*; from 6.12.26 up to 6.12.*; from 6.14.5 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: before 6.1.136; from 6.2 before 6.6.89; from 6.7 before 6.12.26; from 6.13 before 6.14.5; 6.15

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/2fea0d6d7b5d27fbf55512d51851ba0a346ede52> (patch)
- <https://git.kernel.org/stable/c/2b4479eb462ecb39001b38dfb331fc6028dedac8> (patch)
- <https://git.kernel.org/stable/c/185d376875ea6fb4256b9dc97ee0b4d2b0fdd399> (patch)
- <https://git.kernel.org/stable/c/055ef73bb1afc3f783a9a13b496770a781964a07> (patch)
- <https://git.kernel.org/stable/c/951a04ab3a2db4029debfa48d380ef834b93207e> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

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

---

Page: https://cve.day/CVE-2025-37801 · Whole record: https://cve.day/CVE-2025-37801.json · Rebuilt by cve.day 2026-11-25T22:58:57.790Z
