CVE-2026-93825: spi: Add NULL check for spi_get_device_id() in spi_get_device_match_data()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
spi: Add NULL check for spi_get_device_id() in spi_get_device_match_data()
Prevent NULL pointer dereference when spi_get_device_id() returns NULL, which can happen when using driver_override without matching SPI ID entry.
The Linux kernel CVE team has assigned CVE-2026-93825 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.111 with commit 3fcd9415144f4fbd21e1bef35a7f8dbd734f607d Fixed in 6.18.53 with commit 72cc9c6d6fba5b4e0aaf89126884a56bb54b92f8 Fixed in 7.2 with commit f1b061b4d4c6cbf861319ba954caa80145cf018f
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-93825
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/spi/spi.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/3fcd9415144f4fbd21e1bef35a7f8dbd734f607d https://git.kernel.org/stable/c/72cc9c6d6fba5b4e0aaf89126884a56bb54b92f8 https://git.kernel.org/stable/c/f1b061b4d4c6cbf861319ba954caa80145cf018f