# CVE-2026-31485: spi: spi-fsl-lpspi: fix teardown order issue (UAF)

> 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, NVD) `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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-04-22T13:54:10.892Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< fbe6f40caeebb0b1ea9dfedc259124c1d3cda7a6; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< ca4483f36ac1b62e69f8b182c5b8f059e0abecfb; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< e3fd54f8b0317fbccc103961ddd660f2a32dcf0b; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< adb25339b66112393fd6892ceff926765feb5b86; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< d5d01f24bc6fbde40b4e567ef9160194b61267bc; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< e89e2b97253c124d37bf88e96e5e8ce5c3aeeec3; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< 15650dfbaeeb14bcaaf053b93cf631db8d465300; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< b341c1176f2e001b3adf0b47154fc31589f7410e
- Anyone running Linux 4.10

## Description

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

spi: spi-fsl-lpspi: fix teardown order issue (UAF)

There is a teardown order issue in the driver. The SPI controller is
registered using devm\_spi\_register\_controller(), which delays
unregistration of the SPI controller until after the fsl\_lpspi\_remove()
function returns.

As the fsl\_lpspi\_remove() function synchronously tears down the DMA
channels, a running SPI transfer triggers the following NULL pointer
dereference due to use after free:

\| fsl\_lpspi 42550000.spi: I/O Error in DMA RX
\| Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
\[...\]
\| Call trace:
\|  fsl\_lpspi\_dma\_transfer+0x260/0x340 \[spi\_fsl\_lpspi\]
\|  fsl\_lpspi\_transfer\_one+0x198/0x448 \[spi\_fsl\_lpspi\]
\|  spi\_transfer\_one\_message+0x49c/0x7c8
\|  \_\_spi\_pump\_transfer\_message+0x120/0x420
\|  \_\_spi\_sync+0x2c4/0x520
\|  spi\_sync+0x34/0x60
\|  spidev\_message+0x20c/0x378 \[spidev\]
\|  spidev\_ioctl+0x398/0x750 \[spidev\]
\[...\]

Switch from devm\_spi\_register\_controller() to spi\_register\_controller() in
fsl\_lpspi\_probe() and add the corresponding spi\_unregister\_controller() in
fsl\_lpspi\_remove().

## Affected and fixed versions

- Linux: \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< fbe6f40caeebb0b1ea9dfedc259124c1d3cda7a6; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< ca4483f36ac1b62e69f8b182c5b8f059e0abecfb; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< e3fd54f8b0317fbccc103961ddd660f2a32dcf0b; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< adb25339b66112393fd6892ceff926765feb5b86; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< d5d01f24bc6fbde40b4e567ef9160194b61267bc; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< e89e2b97253c124d37bf88e96e5e8ce5c3aeeec3; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< 15650dfbaeeb14bcaaf053b93cf631db8d465300; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< b341c1176f2e001b3adf0b47154fc31589f7410e (cvelist)
- Linux: 4.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-31485.md
Affected: Linux >= 5314987de5e5f5e38436ef4a69328bc472bbd63e, < fbe6f40caeebb0b1ea9dfedc259124c1d3cda7a6; >= 5314987de5e5f5e38436ef4a69328bc472bbd63e, < ca4483f36ac1b62e69f8b182c5b8f059e0abecfb; >= 5314987de5e5f5e38436ef4a69328bc472bbd63e, < e3fd54f8b0317fbccc103961ddd660f2a32dcf0b; >= 5314987de5e5f5e38436ef4…
Fixed in: Linux 15650dfbaeeb14bcaaf053b93cf631db8d465300

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-2026-31485 being exploited?

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

### How serious is CVE-2026-31485?

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

### Which versions are affected by CVE-2026-31485?

Linux \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< fbe6f40caeebb0b1ea9dfedc259124c1d3cda7a6; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< ca4483f36ac1b62e69f8b182c5b8f059e0abecfb; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< e3fd54f8b0317fbccc103961ddd660f2a32dcf0b; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< adb25339b66112393fd6892ceff926765feb5b86; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< d5d01f24bc6fbde40b4e567ef9160194b61267bc; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< e89e2b97253c124d37bf88e96e5e8ce5c3aeeec3; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< 15650dfbaeeb14bcaaf053b93cf631db8d465300; \>= 5314987de5e5f5e38436ef4a69328bc472bbd63e, \< b341c1176f2e001b3adf0b47154fc31589f7410e; Linux 4.10.

### Is there a fix for CVE-2026-31485?

Yes. Fixed in Linux 15650dfbaeeb14bcaaf053b93cf631db8d465300. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-31485?

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/fbe6f40caeebb0b1ea9dfedc259124c1d3cda7a6>
- patch: <https://git.kernel.org/stable/c/ca4483f36ac1b62e69f8b182c5b8f059e0abecfb>
- patch: <https://git.kernel.org/stable/c/e3fd54f8b0317fbccc103961ddd660f2a32dcf0b>
- patch: <https://git.kernel.org/stable/c/adb25339b66112393fd6892ceff926765feb5b86>
- patch: <https://git.kernel.org/stable/c/d5d01f24bc6fbde40b4e567ef9160194b61267bc>
- patch: <https://git.kernel.org/stable/c/e89e2b97253c124d37bf88e96e5e8ce5c3aeeec3>
- patch: <https://git.kernel.org/stable/c/15650dfbaeeb14bcaaf053b93cf631db8d465300>
- patch: <https://git.kernel.org/stable/c/b341c1176f2e001b3adf0b47154fc31589f7410e>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.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-2026-31485>

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