Description
In the Linux kernel, the following vulnerability has been resolved: iio: adc: ad7192: 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. ad7192_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 using the chip information.
Affected products and versions
References
- git.kernel.org/stable/c/2129f6902e7ccdff086df5848328154bae1caf4b
- git.kernel.org/stable/c/ae7f8d1c3db54cc6ac60ea0effdf0cf226b019b8
- git.kernel.org/stable/c/077c2865c8382b21e43f76d6078371f80e3b08fa
- git.kernel.org/stable/c/30e229f0e12b91188966b7ffd1a20b9a182fca65
- git.kernel.org/stable/c/7f7a119a370ecf6c8d4ab9e9ee0a8cdd77afedd3
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.