CVE-2026-72134

Source
https://cve.org/CVERecord?id=CVE-2026-72134
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72134.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72134
Downstream
Published
2026-08-15T05:53:09.573Z
Modified
2026-08-18T03:56:21.250153082Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
spi: imx: reconfigure for PIO when DMA cannot be started
Details

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

spi: imx: reconfigure for PIO when DMA cannot be started

When spiimxcandma() selects DMA, the ECSPI is configured for DMA: spiimxsetupxfer() sets CTRL.SMC and clears dynamicburst, and spiimxdmatransfer() programs the dynamic-burst BURSTLENGTH and the SDMA watermarks.

If the DMA descriptor cannot be prepared (dmaengineprepslavesingle() returns NULL), the transfer is failed with SPITRANSFAILNOSTART and falls back to PIO. The dynamic-burst DMA path uses its own bounce buffers instead of the SPI core's mapping, so xfer->{tx,rx}sgmapped are not set and the core's DMA->PIO retry is skipped; the driver falls back to PIO internally. But none of the DMA-mode configuration is undone, so the PIO transfer runs with CTRL.SMC set, the wrong burst length and dynamicburst cleared, and the transferred data is corrupted.

This is easily hit on i.MX8MP boards that describe ECSPI DMA in the device tree but run SDMA on ROM firmware (no external sdma-imx7d.bin): every ECSPI DMA prepare fails. An Infineon SLB9670 TPM on ECSPI1 then returns shifted TPM2_GetCapability data, is flagged "field failure mode", /dev/tpmrm0 is never created.

Set controller->fallback before re-running spiimxsetupxfer() so the ECSPI is reconfigured exactly like a normal PIO transfer. With controller->fallback set, spiimxsetupxfer() sees spiimxcandma() return false, so it clears spiimx->usedma and reprograms the controller (clears CTRL.SMC, restores dynamicburst and the PIO burst length). No explicit spiimx->usedma = false is needed: setupxfer() already updates it from the can_dma() result.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72134.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
faa8e404ad8e686cb98c51dc507fdcacfb8020ce
Fixed
40dee2d3e9994aed9efe7bed40eb0e4d38d5a25c
Fixed
245404c26563aafb36aafb01298f148db1851be3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72134.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.0.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72134.json"