CVE-2026-138948

iio: accel: sca3000: reject devices without match data

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

iio: accel: sca3000: reject devices without match data

SPI driver_override allows a device to bind to this driver without
matching either the OF or SPI device ID table. In that case,
spi_get_device_match_data() returns NULL.

sca3000_probe() immediately dereferences the returned chip information
to set the IIO device name and channel layout, causing a NULL pointer
dereference.

Commit 572a00852635 ("iio: dac: ad5686: missing NULL check on match
data") fixed the same driver_override issue in another SPI driver.
Reject devices without match data before using the chip information.

Analysis

AI-generated

Technical impact

An SPI driver override can force an IIO driver for the sca3000 accelerometer to load without valid match data. The sca3000_probe function immediately dereferences a NULL pointer returned by spi_get_device_match_data, leading to a kernel panic. This lack of input validation allows any device that can be forced to bind to this driver to crash the system, resulting in a denial of service.

Affected Systems

The issue exists in the Linux kernel's sca3000 SPI driver for accelerometers. All distributions that compile this driver into the kernel are affected, regardless of specific vendor or distribution. The vulnerability is triggered whenever the driver is bound to a device lacking proper match data, which can occur in any kernel version where the driver has not been patched by commit 572a0085.

Risk and Exploitability

Because the driver can be bound via the driver_override interface, an attacker with local privileges or the ability to control an SPI device can exploit this flaw. The exploit requires only the ability to bind the driver to an arbitrary device; no remote network access is needed. No EPSS data is available, and the vulnerability has not been listed in the CISA KEV. Nevertheless, the potential for a kernel crash makes it a high‑severity risk for unpatched systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a Linux kernel version that includes the commit 572a0085, which adds a NULL check for match data in sca3000_probe.
  • Remove or disable the driver_override capability for the sca3000 driver to prevent arbitrary binding of the driver to devices without match data.
  • As a temporary measure, configure SPI devices to provide valid match data or disable the sca3000 driver if the hardware is not required.

Generated by OpenCVE AI on November 30, 2026 at 18:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: iio: accel: sca3000: reject devices without match data SPI driver_override allows a device to bind to this driver without matching either the OF or SPI device ID table. In that case, spi_get_device_match_data() returns NULL. sca3000_probe() immediately dereferences the returned chip information to set the IIO device name and channel layout, causing a NULL pointer dereference. Commit 572a00852635 ("iio: dac: ad5686: missing NULL check on match data") fixed the same driver_override issue in another SPI driver. Reject devices without match data before using the chip information.
Title iio: accel: sca3000: reject devices without match data
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:26 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM