# CVE-2026-90012: spi: Fix DMA mapping ownership on partial map failure

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **Published:** 2026-09-16T10:33:19.463Z
- **Modified:** 2026-10-19T09:18:49.040Z

## Who should check

- Anyone running Linux \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< cc8354213ad6bd5fb8cc05a3fa3701188d086626; \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< a38051fa2ddedbc8ec15292c55e276880ec5b9a4; \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< 5def8b6aaad44603740786262b95b6f77df52a1c; \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< 367cea239fc93094e5c16a72724800e0358f5c46
- Anyone running Linux 6.11

## Description

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

spi: Fix DMA mapping ownership on partial map failure

If RX mapping fails after TX mapping succeeds, \_\_spi\_map\_msg() unmaps
TX but leaves tx\_sg\_mapped set. If TX mapping fails on a later
transfer, mappings created for earlier transfers remain active.

In both cases, cur\_{tx,rx}\_dma\_dev have not yet been updated because they
are assigned only after every transfer has been mapped. The subsequent
spi\_unmap\_msg() may therefore unmap the TX mapping again or release
earlier mappings using a NULL or stale device. Using a NULL device can
trigger an oops. An empty SG table does not prevent the NULL dereference
because dma\_unmap\_sg\_attrs() accesses the device before checking the
entry count.

Publish both mapping devices before mapping starts and unwind all
failures through \_\_spi\_unmap\_msg(). This clears the mapping flags and
releases each mapping once with the device that created it.

Publishing the devices before the loop also refreshes them when no
transfer needs mapping. No mapping flag is set in that case, so current
users do not use the pointers as mapping owners.

## Affected and fixed versions

- Linux: \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< cc8354213ad6bd5fb8cc05a3fa3701188d086626; \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< a38051fa2ddedbc8ec15292c55e276880ec5b9a4; \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< 5def8b6aaad44603740786262b95b6f77df52a1c; \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< 367cea239fc93094e5c16a72724800e0358f5c46 (cvelist)
- Linux: 6.11 (cvelist)

## Mitigation

- Upgrade Linux to 367cea239fc93094e5c16a72724800e0358f5c46 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-90012.md
Affected: Linux >= e289df82344fecc104ad8326b9ab6da612b9c899, < cc8354213ad6bd5fb8cc05a3fa3701188d086626; >= e289df82344fecc104ad8326b9ab6da612b9c899, < a38051fa2ddedbc8ec15292c55e276880ec5b9a4; >= e289df82344fecc104ad8326b9ab6da612b9c899, < 5def8b6aaad44603740786262b95b6f77df52a1c; >= e289df82344fecc104ad832…
Fixed in: Linux 5def8b6aaad44603740786262b95b6f77df52a1c, Linux 367cea239fc93094e5c16a72724800e0358f5c46

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

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< cc8354213ad6bd5fb8cc05a3fa3701188d086626; \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< a38051fa2ddedbc8ec15292c55e276880ec5b9a4; \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< 5def8b6aaad44603740786262b95b6f77df52a1c; \>= e289df82344fecc104ad8326b9ab6da612b9c899, \< 367cea239fc93094e5c16a72724800e0358f5c46; Linux 6.11.

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

Yes. Fixed in Linux 5def8b6aaad44603740786262b95b6f77df52a1c, Linux 367cea239fc93094e5c16a72724800e0358f5c46. Upgrade Linux to 367cea239fc93094e5c16a72724800e0358f5c46 or later.

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

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

- other: <https://git.kernel.org/stable/c/cc8354213ad6bd5fb8cc05a3fa3701188d086626>
- other: <https://git.kernel.org/stable/c/a38051fa2ddedbc8ec15292c55e276880ec5b9a4>
- other: <https://git.kernel.org/stable/c/5def8b6aaad44603740786262b95b6f77df52a1c>
- other: <https://git.kernel.org/stable/c/367cea239fc93094e5c16a72724800e0358f5c46>

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

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