VDB

CVE-2026-90012

CVE-2026-90012 PUBLISHED CVSS 9.8 CRITICAL

spi: Fix DMA mapping ownership on partial map failure

Reported by linux · Published September 16, 2026

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.

EPSS 0.63% · 50.9th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.18Amazon Linux1:6.18.51-120.162.amzn2023
python3-perf6.12Amazon Linux1:6.12.110-135.201.amzn2023
kernel6.12-headersAmazon Linux1:6.12.110-135.201.amzn2023
kernel-livepatch-6.18.51-120.162Amazon Linux1:1.0-0.amzn2023
perf6.12Amazon Linux1:6.12.110-135.201.amzn2023
kernel6.12-toolsAmazon Linux1:6.12.110-135.201.amzn2023
kernel6.18-develAmazon Linux1:6.18.51-120.162.amzn2023

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score
0.63%
50.9th percentile

Affected products

VendorProductVersions
LinuxLinuxe289df82344fecc104ad8326b9ab6da612b9c899, e289df82344fecc104ad8326b9ab6da612b9c899, e289df82344fecc104ad8326b9ab6da612b9c899
LinuxLinux6.11, 0, 6.12.110
amazon:2023kernel6.180
amazon:2023python3-perf6.120
amazon:2023kernel6.12-headers0
amazon:2023kernel-livepatch-6.18.51-120.1620
amazon:2023perf6.120
amazon:2023kernel6.12-tools0
amazon:2023kernel6.18-devel0
linuxlinux_kernel6.11, 6.11, 6.11
LinuxLinux6.11, 7.3, 7.2.5
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel6.18-headers0
amazon:2023kernel6.18-tools0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023perf6.180
amazon:2023kernel6.12-devel0
amazon:2023microvm-kernel6.180
amazon:2023kernel-livepatch-6.12.110-135.2010
amazon:2023kernel6.18-modules-extra-common0

…and 7 more

Timeline

  • Sep 16, 2026 Coalition ESS Score
  • Sep 16, 2026 CVE Published
  • Sep 17, 2026 EPSS Score (26 in total, the first dated here)
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-90012
vulnetix vdb fixes CVE-2026-90012

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-90012/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›