# CVE-2025-37801: spi: spi-imx: Add check for spi\_imx\_setupxfer()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-08T06:26:01.980Z
- **Modified:** 2026-10-15T22:18:18.417Z

## Who should check

- Anyone running Linux \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 2fea0d6d7b5d27fbf55512d51851ba0a346ede52; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 2b4479eb462ecb39001b38dfb331fc6028dedac8; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 185d376875ea6fb4256b9dc97ee0b4d2b0fdd399; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 055ef73bb1afc3f783a9a13b496770a781964a07; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 951a04ab3a2db4029debfa48d380ef834b93207e
- Anyone running Linux 5.19

## 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

## Affected and fixed versions

- Linux: \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 2fea0d6d7b5d27fbf55512d51851ba0a346ede52; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 2b4479eb462ecb39001b38dfb331fc6028dedac8; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 185d376875ea6fb4256b9dc97ee0b4d2b0fdd399; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 055ef73bb1afc3f783a9a13b496770a781964a07; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 951a04ab3a2db4029debfa48d380ef834b93207e (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

- Upgrade Linux to 951a04ab3a2db4029debfa48d380ef834b93207e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37801. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37801.md
Affected: Linux >= 307c897db762d1e0feee9477276b08f6deca4a5b, < 2fea0d6d7b5d27fbf55512d51851ba0a346ede52; >= 307c897db762d1e0feee9477276b08f6deca4a5b, < 2b4479eb462ecb39001b38dfb331fc6028dedac8; >= 307c897db762d1e0feee9477276b08f6deca4a5b, < 185d376875ea6fb4256b9dc97ee0b4d2b0fdd399; >= 307c897db762d1e0feee947…
Fixed in: Linux 2fea0d6d7b5d27fbf55512d51851ba0a346ede52, Linux 2b4479eb462ecb39001b38dfb331fc6028dedac8, Linux 185d376875ea6fb4256b9dc97ee0b4d2b0fdd399, Linux 055ef73bb1afc3f783a9a13b496770a781964a07, Linux 951a04ab3a2db4029debfa48d380ef834b93207e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37801 being exploited?

There is no confirmed exploitation: CVE-2025-37801 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37801?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37801?

Linux \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 2fea0d6d7b5d27fbf55512d51851ba0a346ede52; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 2b4479eb462ecb39001b38dfb331fc6028dedac8; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 185d376875ea6fb4256b9dc97ee0b4d2b0fdd399; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 055ef73bb1afc3f783a9a13b496770a781964a07; \>= 307c897db762d1e0feee9477276b08f6deca4a5b, \< 951a04ab3a2db4029debfa48d380ef834b93207e; Linux 5.19.

### Is there a fix for CVE-2025-37801?

Yes. Fixed in Linux 2fea0d6d7b5d27fbf55512d51851ba0a346ede52, Linux 2b4479eb462ecb39001b38dfb331fc6028dedac8, Linux 185d376875ea6fb4256b9dc97ee0b4d2b0fdd399, Linux 055ef73bb1afc3f783a9a13b496770a781964a07, Linux 951a04ab3a2db4029debfa48d380ef834b93207e. Upgrade Linux to 951a04ab3a2db4029debfa48d380ef834b93207e or later.

### How do I check if I'm affected by CVE-2025-37801?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37801>

HTML: <https://flawdb.com/CVE-2025-37801> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37801>
