{"id":"CVE-2026-138951","summary":"iio: accel: adxl313: reject devices without match data","details":"In the Linux kernel, the following vulnerability has been resolved:\n\niio: accel: adxl313: reject devices without match data\n\nSPI driver_override allows a device to bind to this driver without\nmatching either the OF or SPI device ID table. In that case,\nspi_get_device_match_data() returns NULL.\n\nadxl313_spi_probe() dereferences chip_data to select the regmap\nconfiguration, causing a NULL pointer dereference.\n\nCommit 572a00852635 (\"iio: dac: ad5686: missing NULL check on match\ndata\") fixed the same driver_override issue in another SPI driver.\nReject devices without match data before selecting the configuration.","modified":"2026-11-30T15:01:38.142242739Z","published":"2026-11-30T13:26:29.765Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138951.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/30dc79cebd92896dd9f0ea8525811d27e7a8b6e6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5381f1c9be61b7da2844ba118978959e5fd1694b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/880a85d01493cc5c4fa24c8a3a8a6bfa91e30f72"},{"type":"WEB","url":"https://git.kernel.org/stable/c/defd4c0b29f1cd17caa5feebac33fc5fdf4e1916"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138951.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138951"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"d6e3ee74d16f2faef0cbe0251071076e0654e68a"},{"fixed":"880a85d01493cc5c4fa24c8a3a8a6bfa91e30f72"},{"fixed":"5381f1c9be61b7da2844ba118978959e5fd1694b"},{"fixed":"30dc79cebd92896dd9f0ea8525811d27e7a8b6e6"},{"fixed":"defd4c0b29f1cd17caa5feebac33fc5fdf4e1916"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138951.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.11.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138951.json"}}],"schema_version":"1.9.2"}