CVE-2026-138956 in Linuxinfo

Summary

by MITRE • 11/30/2026

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.

VulDB is the best source for vulnerability data and more expert information about this specific topic.

Analysis

by VulDB Data Team • 11/30/2026

The vulnerability identified within the Linux kernel's Industrial I/O subsystem, specifically affecting the MCP3911 Analog-to-Digital Converter driver, stems from an insufficient validation of device binding mechanisms via the SPI driver override functionality. This issue arises because the current implementation allows a device to bind to the mcp3911 driver even when it does not match any entry in either the Open Firmware or SPI device ID tables. When such a mismatch occurs, the function spi_get_device_match_data returns NULL rather than providing valid configuration data for the specific hardware variant being probed. This lack of validation creates a critical path where uninitialized pointers are passed further into the driver initialization sequence without adequate safety checks.

The technical flaw manifests during the probe phase of the device lifecycle when mcp3911_probe attempts to utilize the result from spi_get_device_match_data. The code stores this potentially NULL pointer and subsequently proceeds to access chip-specific fields through a configuration structure referenced by that pointer. Because no explicit check is performed to verify whether the match data exists before dereferencing it, any attempt to read or write to members of an undefined structure results in a null pointer dereference. This type of memory corruption typically leads to immediate kernel panic or system crash on affected systems where such invalid bindings are triggered through driver override mechanisms.

From an operational impact perspective, this vulnerability represents a denial-of-service condition that can be exploited locally by users with the ability to manipulate device binding parameters or load modules under specific conditions involving SPI devices. The resulting instability disrupts system availability and may require manual intervention to recover if automatic reboot is not configured. While remote exploitation is unlikely due to the local nature of driver loading and device enumeration, the severity lies in the potential for arbitrary code execution depending on how the kernel handles memory corruption following a null dereference in certain configurations or architectures where such faults do not immediately terminate the process but allow further manipulation.

This issue aligns with CWE-476 which describes NULL Pointer Dereferences as a common software weakness leading to crashes and potential privilege escalation if exploited creatively through subsequent memory operations. In terms of attack vector classification, it relates to ATT&CK techniques involving local resource hijacking or system availability disruption via kernel-level faults triggered by improper input validation during device initialization sequences. The root cause is fundamentally an absence of defensive programming practices regarding pointer validity checks after dynamic data retrieval functions that may return null under specific edge cases like driver overrides without matching identifiers.

The resolution involves implementing a strict check immediately following the call to spi_get_device_match_data within the mcp3911_probe function. By verifying that the returned match data is not NULL before proceeding with any configuration access, the driver ensures it only operates on devices for which valid hardware-specific parameters are available. This approach mirrors fixes applied in similar SPI drivers such as ad5686 where comparable vulnerabilities were addressed by rejecting unsupported device bindings early in the probe sequence. Such mitigation strategies reinforce robustness against unexpected input states and prevent cascading failures resulting from uninitialized memory access patterns inherent to poorly validated driver implementations.

To mitigate this risk, system administrators should ensure that kernel updates incorporating these patches are applied promptly across all systems utilizing MCP3911 ADC devices or similar SPI peripherals managed by the Industrial I/O subsystem. Additionally developers reviewing other SPI drivers should audit their probe functions for similar omissions in NULL checking after device match data retrieval operations to prevent recurrence of this class of vulnerability across the broader kernel codebase maintaining consistency with established secure coding standards and preventing future instances of null pointer dereferences arising from driver override scenarios.

Responsible

Linux

Reservation

11/30/2026

Disclosure

11/30/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Might our Artificial Intelligence support you?

Check our Alexa App!