CVE-2026-64221: spi: ti-qspi: fix use-after-free after DMA setup failure

Published Jul 24, 2026
·
Updated

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

spi: ti-qspi: fix use-after-free after DMA setup failure

The driver falls back to PIO mode if DMA setup fails during probe.

Make sure to clear the DMA channel pointer also if buffer allocation fails to avoid passing a pointer to the released channel to the DMA engine (or trying to free the channel a second time on late probe errors or driver unbind).

This issue was flagged by Sashiko when reviewing a devres allocation conversion patch.

Affected Software

12 affected components
Linux Linux kernel
Linux Linux kernel>=4.12<5.10.258
Linux Linux kernel>=5.11<5.15.209
Linux Linux kernel>=5.16<6.1.175
Linux Linux kernel>=6.2<6.6.142
Linux Linux kernel>=6.7<6.12.92
Linux Linux kernel>=6.13<6.18.34
Linux Linux kernel>=6.19<7.0.11
Linux Linux kernel=7.1-rc1
Linux Linux kernel=7.1-rc2
Linux Linux kernel=7.1-rc3
Linux Linux kernel=7.1-rc4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel (spi: ti-qspi) to a version that resolves this vulnerability.

    Patch spi: ti-qspi: fix use-after-free after DMA setup failure

Event History

Jul 24, 2026
CVE Published
via MITRE·03:23 PM
Data Sourced
via MITRE·03:23 PM
DescriptionSeverity
Data Sourced
via NVD·04:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the Linux kernel TI QSPI SPI driver are affected when DMA setup fails during driver probe and the driver falls back to PIO mode. The issue involves a stale pointer to a DMA channel that has already been released.

2

What level of access is required for exploitation?

An attacker would need local access and low privileges, as reflected by the CVSS vector. Exploitation depends on reaching the affected driver error path after DMA setup failure.

3

What could happen if the vulnerable path is reached?

The described failure path can later pass the released DMA-channel pointer to the DMA engine or attempt to release it a second time, including during late probe errors or driver unbind. This can result in use-after-free behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203