CVE-2026-138954

iio: adc: ti-ads1018: 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: adc: ti-ads1018: 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.

ads1018_spi_probe() immediately dereferences the returned chip
information to initialize the IIO device, 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 allocating the IIO device.

Analysis

AI-generated

Technical impact

In the Linux kernel, the SPI driver_override mechanism allows a device to bind to the ti-ads1018 ADC driver without matching the required OF or SPI device ID table. When this occurs, the driver’s probe routine dereferences a NULL pointer because spi_get_device_match_data() returns NULL. The missing null check causes a kernel fault that can lead to a system crash and, in a worst‑case scenario, a denial‑of‑service or privilege escalation if an attacker can force the fault.

Affected Systems

This issue affects all Linux kernel releases that contain the ti-ads1018 driver before the commit that added a NULL check. No specific vendor versions are listed; the impact applies to any distribution that ships the affected kernel code.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in CISA KEV. The CVSS score is not provided, but the lack of a NULL check is a classic software flaw (CWE‑476) with a high impact if an attacker can supply a fake SPI device. The exploit requires the ability to inject or modify an SPI device configuration, which may be possible on systems with privileged access or on embedded devices that expose SPI bus control. The risk is considered high for targeted or local attacks but lower for publicly accessible systems that cannot manipulate the SPI bus.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the NULL‑check fix for the ti‑ads1018 driver.
  • If updating is not possible, disable the driver_override feature so that the driver binds only to devices that match its device ID table.
  • Restrict modifications to the SPI device tree or device configuration files to prevent untrusted users from adding devices that could trigger the fault.
  • Monitor kernel logs for SIGKILL or oops events that may indicate a crash from this driver.

Generated by OpenCVE AI on November 30, 2026 at 18:05 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: adc: ti-ads1018: 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. ads1018_spi_probe() immediately dereferences the returned chip information to initialize the IIO device, 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 allocating the IIO device.
Title iio: adc: ti-ads1018: 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