---
id: CVE-2026-64303
title: |-
  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 chann…
summary: |-
  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 chann…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
published: '2026-07-25'
updated: '2026-07-27'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-64303'
references:
  - url: 'https://git.kernel.org/stable/c/01980b5da56e573d62798d0ff6c86bcaa2b22cbe'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/808033d80d5c9f8adf7e8de9317389270ce13430'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/9d000bdd250d649a11cd7f733175686877344582'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ad370d1c7a9a832f77b2341513cd31188c9443af'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/af39a2698f69b584d14a00cffe0f51a2caa15337'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/cce2063404b2341e7b2bbf85eddfcd70a31a0033'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/d5c1060218a3749c8a18b36f8169d910fce20639'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/e65505d91fa036a238968e4c10744244d1b968c4'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-64303.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-64303'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2507222'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-64303'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-64303'
  - url: >-
      https://lore.kernel.org/linux-cve-announce/2026072507-CVE-2026-64303-7a2d@gregkh/T
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
  - score-dispute
epss: 0.00694
epssPercentile: 0.52739
ingestedAt: '2026-07-27T06:16:50.271Z'
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 09c04466ce7ea494993c0635ba5edb6d2222a806 <
    ad370d1c7a9a832f77b2341513cd31188c9443af
  - >-
    Linux >= 09c04466ce7ea494993c0635ba5edb6d2222a806 <
    cce2063404b2341e7b2bbf85eddfcd70a31a0033
  - >-
    Linux >= 09c04466ce7ea494993c0635ba5edb6d2222a806 <
    af39a2698f69b584d14a00cffe0f51a2caa15337
  - >-
    Linux >= 09c04466ce7ea494993c0635ba5edb6d2222a806 <
    e65505d91fa036a238968e4c10744244d1b968c4
  - >-
    Linux >= 09c04466ce7ea494993c0635ba5edb6d2222a806 <
    d5c1060218a3749c8a18b36f8169d910fce20639
  - >-
    Linux >= 09c04466ce7ea494993c0635ba5edb6d2222a806 <
    808033d80d5c9f8adf7e8de9317389270ce13430
  - >-
    Linux >= 09c04466ce7ea494993c0635ba5edb6d2222a806 <
    9d000bdd250d649a11cd7f733175686877344582
  - >-
    Linux >= 09c04466ce7ea494993c0635ba5edb6d2222a806 <
    01980b5da56e573d62798d0ff6c86bcaa2b22cbe
  - Linux 5.2
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-10-16T15:38:43.370379Z'
cwe:
  - CWE-825
scores:
  nvd: 9.8
  vendor: 7
  cna: 9.8
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 9 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 9 · updated 2026-10-16 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-64303.json)
