# CVE-2025-37842: spi: fsl-qspi: use devm function instead of driver remove

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-05-09T06:41:51.310Z
- **Modified:** 2026-11-05T21:17:55.087Z

## Who should check

- Anyone running Linux \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 69d2d7020b9966817ffc7442ae778c29cb81813f; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 50ae352c1848cab408fb4f7d7f50c71f818bbdbf; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< f68b27d82a749117d9c7d7f33fa53f46373e38e2; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 439688dbe82baa10d4430dc3252bb5ef1183a171; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 40369bfe717e96e26650eeecfa5a6363563df6e4
- Anyone running Linux 5.2

## Description

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

spi: fsl-qspi: use devm function instead of driver remove

Driver use devm APIs to manage clk/irq/resources and register the spi
controller, but the legacy remove function will be called first during
device detach and trigger kernel panic. Drop the remove function and use
devm\_add\_action\_or\_reset() for driver cleanup to ensure the release
sequence.

Trigger kernel panic on i.MX8MQ by
echo 30bb0000.spi \>/sys/bus/platform/drivers/fsl-quadspi/unbind

## Affected and fixed versions

- Linux: \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 69d2d7020b9966817ffc7442ae778c29cb81813f; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 50ae352c1848cab408fb4f7d7f50c71f818bbdbf; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< f68b27d82a749117d9c7d7f33fa53f46373e38e2; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 439688dbe82baa10d4430dc3252bb5ef1183a171; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 40369bfe717e96e26650eeecfa5a6363563df6e4 (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- Upgrade Linux to 40369bfe717e96e26650eeecfa5a6363563df6e4 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-37842. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37842.md
Affected: Linux >= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, < 69d2d7020b9966817ffc7442ae778c29cb81813f; >= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, < 50ae352c1848cab408fb4f7d7f50c71f818bbdbf; >= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, < f68b27d82a749117d9c7d7f33fa53f46373e38e2; >= 8fcb830a00f0980ffe38d22…
Fixed in: Linux 69d2d7020b9966817ffc7442ae778c29cb81813f, Linux 50ae352c1848cab408fb4f7d7f50c71f818bbdbf, Linux 439688dbe82baa10d4430dc3252bb5ef1183a171, Linux 40369bfe717e96e26650eeecfa5a6363563df6e4

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-37842 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 69d2d7020b9966817ffc7442ae778c29cb81813f; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 50ae352c1848cab408fb4f7d7f50c71f818bbdbf; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< f68b27d82a749117d9c7d7f33fa53f46373e38e2; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 439688dbe82baa10d4430dc3252bb5ef1183a171; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8; \>= 8fcb830a00f0980ffe38d223cdd9a4d2d24da476, \< 40369bfe717e96e26650eeecfa5a6363563df6e4; Linux 5.2.

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

Yes. Fixed in Linux 69d2d7020b9966817ffc7442ae778c29cb81813f, Linux 50ae352c1848cab408fb4f7d7f50c71f818bbdbf, Linux 439688dbe82baa10d4430dc3252bb5ef1183a171, Linux 40369bfe717e96e26650eeecfa5a6363563df6e4. Upgrade Linux to 40369bfe717e96e26650eeecfa5a6363563df6e4 or later.

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

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/50ae352c1848cab408fb4f7d7f50c71f818bbdbf>
- patch: <https://git.kernel.org/stable/c/f68b27d82a749117d9c7d7f33fa53f46373e38e2>
- patch: <https://git.kernel.org/stable/c/439688dbe82baa10d4430dc3252bb5ef1183a171>
- patch: <https://git.kernel.org/stable/c/f9bfb3a5f6f616f3eb7665c8ff3bcb9760ae33c8>
- patch: <https://git.kernel.org/stable/c/40369bfe717e96e26650eeecfa5a6363563df6e4>
- other: <https://git.kernel.org/stable/c/69d2d7020b9966817ffc7442ae778c29cb81813f>

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

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