Bug 2365035 (CVE-2025-37801) - CVE-2025-37801 kernel: spi: spi-imx: Add check for spi_imx_setupxfer()
Summary: CVE-2025-37801 kernel: spi: spi-imx: Add check for spi_imx_setupxfer()
Keywords:
Status: NEW
Alias: CVE-2025-37801
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-08 07:02 UTC by OSIDB Bzimport
Modified: 2025-05-08 09:55 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-08 07:02:36 UTC
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

Comment 1 Avinash Hanwate 2025-05-08 09:52:41 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050813-CVE-2025-37801-94fa@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.