Description
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.
Published: 2026-07-24
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel, the ti‑qspi driver contains a use‑after‑free condition that arises when DMA setup or buffer allocation fails during the probe routine. The driver fails to clear its DMA channel pointer in those failure paths, allowing the DMA engine to operate on a dangling reference or leading to a double free of the channel. This kernel memory corruption can be leveraged to execute arbitrary code with kernel privileges. The flaw is not exposed through normal user‑space interfaces; an attacker would need to influence the probe sequence or induce the faulty condition to trigger the bug.

Affected Systems

All Linux kernel builds that ship with the ti‑qspi driver are affected. The issue existed before commit 178b9b57 and was fixed in that commit. Any distribution or custom kernel that has not incorporated this change remains vulnerable, regardless of kernel version or release candidate. The problem does not depend on specific kernel configuration options beyond the presence of the driver.

Risk and Exploitability

The CVSS score of 7.8 indicates high severity, while the EPSS score of less than 1 % reflects a low but nonzero probability of exploitation. The vulnerability is not present in the CISA KEV catalog. An attacker would need to trigger a DMA setup or buffer allocation failure during probe, which typically requires local access to the TI QSPI peripheral or the ability to manipulate its state. Without such local or device‑level control, the risk is moderate to low. The attack vector is inferred to be local; no direct remote exploitation path is documented.

Generated by OpenCVE AI on August 13, 2026 at 11:41 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the kernel to a release that includes commit 178b9b57 or later, which removes the use‑after‑free bug.
  • If a custom kernel is in use, apply the upstream patch from the Linux kernel repository to the ti‑qspi driver source and rebuild the kernel.
  • If an immediate kernel update is not possible, disable or isolate the TI QSPI peripheral or block DMA operations to the device to mitigate the use‑after‑free risk.

Generated by OpenCVE AI on August 13, 2026 at 11:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8620-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8620-2 Linux kernel (Azure FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8620-3 Linux kernel (Intel IoTG) vulnerabilities
Ubuntu USN Ubuntu USN USN-8620-4 Linux kernel (Intel IoTG) vulnerabilities
History

Tue, 11 Aug 2026 18:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
CPEs cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*

Tue, 04 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
CWE-942

Thu, 30 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416
CWE-942

Wed, 29 Jul 2026 00:15:00 +0000


Mon, 27 Jul 2026 05:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Fri, 24 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Description 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.
Title spi: ti-qspi: fix use-after-free after DMA setup failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:40:08.448Z

Reserved: 2026-07-19T15:36:31.770Z

Link: CVE-2026-64221

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-07-24T16:16:49.923

Modified: 2026-08-11T18:25:02.363

Link: CVE-2026-64221

cve-icon Redhat

Severity :

Publid Date: 2026-07-24T00:00:00Z

Links: CVE-2026-64221 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T11:45:03Z

Weaknesses