---
id: CVE-2025-37801
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  spi: spi-imx: Add check for spi_imx_setupxfer()

  Add check for the return value of spi_imx_setupxfer().
  spi_imx->rx and spi_imx->tx function pointer can be NULL when
  sp…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  spi: spi-imx: Add check for spi_imx_setupxfer()

  Add check for the return value of spi_imx_setupxfer().
  spi_imx->rx and spi_imx->tx function pointer can be NULL when
  sp…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-476
vendor: linux
product: linux_kernel
affected:
  - linux_kernel < 6.1.136
  - 'linux_kernel >= 6.2, < 6.6.89'
  - 'linux_kernel >= 6.7, < 6.12.26'
  - 'linux_kernel >= 6.13, < 6.14.5'
  - linux_kernel = 6.15
patched:
  - linux_kernel 6.14.5
published: '2025-05-08'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T22:18:18.417'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-37801'
references:
  - url: 'https://git.kernel.org/stable/c/055ef73bb1afc3f783a9a13b496770a781964a07'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/185d376875ea6fb4256b9dc97ee0b4d2b0fdd399'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2b4479eb462ecb39001b38dfb331fc6028dedac8'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2fea0d6d7b5d27fbf55512d51851ba0a346ede52'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/951a04ab3a2db4029debfa48d380ef834b93207e'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-37801.json
  - url: 'https://access.redhat.com/security/cve/CVE-2025-37801'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2365035'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2025-37801'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-37801'
  - url: >-
      https://lore.kernel.org/linux-cve-announce/2025050813-CVE-2025-37801-94fa@gregkh/T
tags:
  - nvd
  - csaf
  - vex
  - red-hat
  - cve.org
  - score-dispute
epss: 0.00214
epssPercentile: 0.11637
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-15T21:45:18.978744Z'
scores:
  nvd: 7.8
  vendor: 4.4
  cna: 7.8
ingestedAt: '2026-10-15T22:48:25.479Z'
---

## Overview

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

spi: spi-imx: Add check for spi_imx_setupxfer()

Add check for the return value of spi_imx_setupxfer().
spi_imx->rx and spi_imx->tx function pointer can be NULL when
spi_imx_setupxfer() return error, and make NULL pointer dereference.

 Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
 Call trace:
  0x0
  spi_imx_pio_transfer+0x50/0xd8
  spi_imx_transfer_one+0x18c/0x858
  spi_transfer_one_message+0x43c/0x790
  __spi_pump_transfer_message+0x238/0x5d4
  __spi_sync+0x2b0/0x454
  spi_write_then_read+0x11c/0x200

## Affected

- `linux_kernel < 6.1.136`
- `linux_kernel >= 6.2, < 6.6.89`
- `linux_kernel >= 6.7, < 6.12.26`
- `linux_kernel >= 6.13, < 6.14.5`
- `linux_kernel = 6.15`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.14.5`

## Vendor advisories

- **Red Hat VEX** · Low · 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/2025/cve-2025-37801.json)
