CVE-2026-138951

iio: accel: adxl313: 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: adxl313: 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.

adxl313_spi_probe() dereferences chip_data to select the regmap
configuration, 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 selecting the configuration.

Analysis

AI-generated

Technical impact

The vulnerability arises when the SPI driver_override mechanism allows an unvalidated device to bind to the adxl313 accelerometer driver. Because the driver lacks a NULL check on the match data returned by spi_get_device_match_data(), the probe routine dereferences a NULL chip_data pointer during configuration, leading to a kernel fault. This flaw represents a null pointer dereference, equivalent to CWE‑476, which can cause a denial‑of‑service via a kernel crash.

Affected Systems

Affected systems are any Linux kernel builds that include the iio accel adxl313 driver and permit the driver_override attribute on SPI devices. No specific version range is listed in the advisories; the issue exists before the patch that adds a NULL guard to the probe routine, so any kernel containing the unpatched driver may be affected.

Risk and Exploitability

Exploitation requires an attacker to manipulate the SPI bus, which usually requires direct hardware access or root privileges on the target device. The primary consequence is a kernel panic that results in denial of service. Because EPSS data for this issue is unavailable and it is not listed in the KEV catalog, the likelihood of exploitation remains uncertain, but the impact is high if an attacker can gain the required device access. The flaw is best mitigated by applying the kernel patch that adds the NULL check, or by disabling driver_override for SPI devices until the update is deployed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that contains the patch adding the NULL guard for the adxl313 driver, or apply the specific patch that fixes the issue.
  • If a kernel update cannot be applied immediately, configure the system to disable the SPI driver_override attribute for all devices, thereby preventing unvalidated bindings.
  • Reboot the system after either applying the patch or disabling driver_override to ensure the kernel is running the corrected driver state.

Generated by OpenCVE AI on November 30, 2026 at 18:07 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: adxl313: 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. adxl313_spi_probe() dereferences chip_data to select the regmap configuration, 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 selecting the configuration.
Title iio: accel: adxl313: 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