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

spi: fsl-lpspi: terminate the RX channel on TX prepare failure path

When dmaengine_prep_slave_sg() fails for the TX channel, the error path
terminates the TX DMA channel but leaves the RX channel running. Since
the RX channel was already submitted and issued prior to preparing
the TX descriptor, returning -EINVAL causes the SPI core to unmap the
DMA buffers while the RX DMA engine continues writing to them, leading
to potential memory corruption or use-after-free.

Terminate the RX channel before returning on the TX prepare failure path.
Published: 2026-07-25
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel flaw occurs when dmaengine_prep_slave_sg() fails for a transmit (TX) channel in the fsl‑lpspi SPI driver. The error path terminates the TX DMA channel but leaves the receive (RX) channel running. Because the RX channel was already started before the TX descriptor was prepared, the kernel unmapped the DMA buffers while the RX DMA engine continued writing to them, leading to potential memory corruption or a use‑after‑free condition that can crash the kernel or allow an attacker to inject malicious code.

Affected Systems

The vulnerability affects all Linux kernel builds that include the fsl‑lpspi SPI driver and have not yet incorporated the patch that cleans up the RX channel on TX failure. No specific kernel release range is listed, so any distribution version that ships with the unpatched driver is at risk.

Risk and Exploitability

The CVSS score of 9.8 indicates a critical severity, and the EPSS score of less than 1 % shows a very low probability of exploitation so far. The flaw is not yet in CISA’s KEV catalog. The attack requires local access to an SPI device that uses the fsl‑lpspi driver; based on the description, the likely attack vector is inferred to involve an attacker who can issue SPI transactions to the device and trigger a DMA preparation failure to corrupt kernel memory. No known exploits are publicly documented at this time.

Generated by OpenCVE AI on August 3, 2026 at 19:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the fsl‑lpspi patch that terminates the RX channel on TX preparation failure.
  • If a kernel upgrade is not immediately available, disable the fsl‑lpspi driver or remove the SPI device from the system configuration to prevent DMA operations for that device.
  • For custom kernel builds, modify the fsl‑lpspi driver code to terminate the RX channel whenever dmaengine_prep_slave_sg() fails for the transmit channel, mirroring the upstream patch.

Generated by OpenCVE AI on August 3, 2026 at 19:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4717-1 linux security update
Debian DLA Debian DLA DLA-4720-1 linux security update
Debian DLA Debian DLA DLA-4723-1 linux-6.1 security update
Debian DLA Debian DLA DLA-4724-1 linux-6.12 new package
History

Sat, 01 Aug 2026 02:45:00 +0000

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

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

Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

threat_severity

Important


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

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

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

Type Values Removed Values Added
Metrics cvssV3_1

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


Sat, 25 Jul 2026 09:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: spi: fsl-lpspi: terminate the RX channel on TX prepare failure path When dmaengine_prep_slave_sg() fails for the TX channel, the error path terminates the TX DMA channel but leaves the RX channel running. Since the RX channel was already submitted and issued prior to preparing the TX descriptor, returning -EINVAL causes the SPI core to unmap the DMA buffers while the RX DMA engine continues writing to them, leading to potential memory corruption or use-after-free. Terminate the RX channel before returning on the TX prepare failure path.
Title spi: fsl-lpspi: terminate the RX channel on TX prepare failure path
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:47.211Z

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

Link: CVE-2026-64303

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-07-25T10:17:11.277

Modified: 2026-08-11T15:00:57.447

Link: CVE-2026-64303

cve-icon Redhat

Severity : Important

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

Links: CVE-2026-64303 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T19:30:04Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference