CVE-2026-138957: iio: adc: max11205: reject devices without match data
In the Linux kernel, the following vulnerability has been resolved:
iio: adc: max11205: reject devices without match data
SPI driveroverride allows a device to bind to this driver without matching either the OF or SPI device ID table. In that case, spigetdevicematchdata() returns NULL.
max11205probe() immediately dereferences the returned chip information to set the IIO device name, causing a NULL pointer dereference.
Commit 572a00852635 ("iio: dac: ad5686: missing NULL check on match data") fixed the same driveroverride issue in another SPI driver. Reject devices without match data before using the chip information.
Affected Software
Event History
Frequently Asked Questions
Who can trigger the crash condition?
A user or process able to use SPI driver_override to bind a device to the max11205 driver without matching its OF or SPI device ID table can trigger it. The resulting missing match data is dereferenced during probe, causing a NULL pointer dereference.
Are normally matched MAX11205 devices affected?
The described failure occurs when a device is bound through driver_override without matching either the OF or SPI device ID table. The issue is specifically the absence of match data returned by spi_get_device_match_data().
What does the fix change?
The fix rejects devices that do not have match data before the driver uses the chip information. This prevents the probe path from dereferencing a NULL match-data pointer.