Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93825 Overview
CVE-2026-93825 is a NULL pointer dereference vulnerability in the Linux kernel's Serial Peripheral Interface (SPI) subsystem. The flaw resides in spi_get_device_match_data(), which fails to validate the return value of spi_get_device_id(). When a user binds a driver using driver_override without a matching SPI ID entry, spi_get_device_id() returns NULL, triggering a kernel-mode NULL pointer dereference. The upstream fix adds an explicit NULL check before the pointer is dereferenced.
Critical Impact
A local user with privileges to write to the driver_override sysfs attribute can trigger a kernel NULL pointer dereference, resulting in a denial of service through a kernel oops or panic.
Affected Products
- Linux kernel SPI subsystem (drivers/spi/spi.c)
- Linux kernel versions prior to the commits referenced in git.kernel.org stable trees
- Distributions shipping unpatched upstream kernels
Discovery Timeline
- 2026-09-24 - CVE-2026-93825 published to the National Vulnerability Database
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-93825
Vulnerability Analysis
The Linux kernel SPI core exposes spi_get_device_match_data() as a helper used by SPI drivers to retrieve per-device match data during probe. Internally, the helper calls spi_get_device_id() to look up the device entry registered by the driver.
The function previously assumed spi_get_device_id() would always return a valid pointer. When a user uses the sysfs driver_override mechanism to force-bind a driver to a device that has no matching entry in the driver's spi_device_id table, spi_get_device_id() returns NULL. The caller then dereferences this NULL pointer, producing a kernel oops.
The issue is a reliability and availability flaw rather than a memory corruption primitive. Exploitation requires local access with permission to write to sysfs attributes under /sys/bus/spi/, which is typically restricted to root.
Root Cause
The root cause is a missing input validation check [CWE-476 NULL Pointer Dereference]. spi_get_device_match_data() did not verify that spi_get_device_id() returned a non-NULL pointer before dereferencing it to extract driver_data. The driver_override interface intentionally bypasses the normal ID matching flow, creating a code path where the returned ID pointer is legitimately NULL.
Attack Vector
A local actor with the ability to write to /sys/bus/spi/devices/<device>/driver_override can force an unmatched driver binding. When the kernel subsequently probes the device and the driver invokes spi_get_device_match_data(), the NULL dereference occurs in kernel context. The result is a denial of service on the affected system. Remote exploitation is not applicable because the attack vector requires local sysfs write access.
The fix, present in commits 3fcd9415144f, 72cc9c6d6fba, and f1b061b4d4c6 in the stable kernel tree, inserts a NULL check so the helper returns gracefully instead of dereferencing an invalid pointer. See the kernel git references for the exact diff.
Detection Methods for CVE-2026-93825
Indicators of Compromise
- Kernel oops or panic messages referencing spi_get_device_match_data or spi_get_device_id in dmesg or /var/log/kern.log
- Call traces originating from SPI driver probe() routines following a driver_override write
- Unexpected system reboots or hung tasks on hosts with user-accessible SPI buses (common on embedded and IoT Linux systems)
Detection Strategies
- Audit kernel logs for BUG: unable to handle kernel NULL pointer dereference entries tied to SPI symbols
- Monitor write access to /sys/bus/spi/devices/*/driver_override using the Linux audit subsystem (auditctl -w /sys/bus/spi -p wa)
- Compare running kernel versions against vendor advisories to identify unpatched hosts
Monitoring Recommendations
- Forward kern.log and dmesg output to a centralized logging platform for anomaly review
- Alert on repeated kernel oops events on the same host, which may indicate iterative probing
- Track package and kernel versions across the fleet to confirm patch deployment status
How to Mitigate CVE-2026-93825
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in the git.kernel.org stable commits 3fcd9415144f, 72cc9c6d6fba, and f1b061b4d4c6
- Update to a distribution kernel package that incorporates these fixes once available from your vendor
- Restrict write access to sysfs driver_override attributes to trusted administrative accounts only
Patch Information
The fix adds a NULL check for the return value of spi_get_device_id() inside spi_get_device_match_data(). Patches are available in the mainline and stable kernel trees via the Kernel Git Commit 3fcd9415144f, Kernel Git Commit 72cc9c6d6fba, and Kernel Git Commit f1b061b4d4c6 references. Rebuild and reboot affected hosts after applying.
Workarounds
- Remove or restrict permissions on /sys/bus/spi/devices/*/driver_override so only root can modify driver bindings
- Avoid using driver_override on SPI devices unless the target driver has a matching spi_device_id entry
- On embedded systems, disable unused SPI drivers in the kernel configuration to reduce exposed attack surface
# Verify kernel version and SPI driver_override exposure
uname -r
find /sys/bus/spi/devices -name driver_override -exec ls -l {} \;
# Harden sysfs permissions (example; adapt to your init system)
chmod 600 /sys/bus/spi/devices/*/driver_override
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

