CVE-2026-138956

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

mcp3911_probe() stores the result and later calls through chip->config
and accesses other chip-specific fields, 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 continuing the probe.

Analysis

AI-generated

Technical impact

In the Linux kernel the mcp3911 SPI driver fails to verify that match data is present when a device is bound via the driver_override mechanism. When no match data is supplied, the driver stores a NULL pointer and later dereferences it during probe, leading to a kernel fault. This flaw results in an unhandled NULL pointer dereference, classified as CWE‑476.

Affected Systems

The flaw affects any Linux kernel build that incorporates the mcp3911 driver without the added NULL‑check, including distributions that ship earlier kernel versions. The specific affected release versions were not enumerated in the advisory, but the issue existed prior to the patch committed in 572a00852635.

Risk and Exploitability

No EPSS score is provided and the vulnerability is not listed in the CISA KEV catalog. However, the missing verification creates a local attack surface: a user with control over SPI device binding or the driver_override interface could trigger the crash, potentially enabling local privilege escalation or denial of service. The CVSS score is not supplied, but the nature of a kernel fault implies a high severity risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit which adds a NULL check in the mcp3911 driver.
  • Ensure that mcp3911 devices are defined with proper OF or SPI device ID tables so that match data is always present.
  • Disable or restrict the use of driver_override for SPI devices, or manually prevent the mcp3911 driver from binding to devices lacking match data.
  • If an immediate kernel update is not feasible, apply an in‑tree patch that inserts a NULL‑check before accessing chip->config.

Generated by OpenCVE AI on November 30, 2026 at 18:04 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: mcp3911: 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. mcp3911_probe() stores the result and later calls through chip->config and accesses other chip-specific fields, 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 continuing the probe.
Title iio: adc: mcp3911: 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