{"id":"CVE-2026-143437","summary":"thermal/drivers/sprd: validate the sensor id from the device tree","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal/drivers/sprd: validate the sensor id from the device tree\n\nsprd_thm_probe() reads each sensor child node's \"reg\" property into\nsen-\u003eid and uses it without validation: to compute the sensor's\nregister offsets in sprd_thm_sensor_init(), as the thermal zone id, and\nfinally as an index into thm-\u003esensor[], which has SPRD_THM_MAX_SENSOR\n(8) entries:\n\n\tret = of_property_read_u32(sen_child, \"reg\", &sen-\u003eid);\n\t...\n\tthm-\u003esensor[sen-\u003eid] = sen;\n\nOnly the number of sensor nodes is checked against SPRD_THM_MAX_SENSOR.\nA \"reg\" value of 8 or more, or one that is negative once stored in the\nint sen-\u003eid, makes the register offsets point outside the sensor range\nand the final store land outside thm-\u003esensor[], overwriting the fields\nthat follow it in struct sprd_thermal_data or other memory.\n\nReject an out-of-range id right after reading it, before it is used.\n\nThis does not address sparse ids, such as a single sensor with id 7:\nthey leave holes in thm-\u003esensor[] that the later loops over\n0..nr_sensors-1 dereference. That needs a separate fix.\n\nFound by static analysis tool CodeQL.","modified":"2026-12-05T03:01:06.332794748Z","published":"2026-12-05T01:41:17.171Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143437.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/5e3325fa3ad3bdd703b94f27ea45768681d2881c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/77e55f779c81495f66aa267f304429aaf2a56d45"},{"type":"WEB","url":"https://git.kernel.org/stable/c/92d81fb62050a7da1c2bfb998ab6319aec1fdb3e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/96cdcc8636c3bbfe37bb9eb72d83439712d9bb1c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a6e7f7cc84b3ac0d3891d22f6014431d62442953"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b17d799ce49bfaad68be5ff3df995b3bd021a9d7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d21e20b3a2537affafaa4e9e0f69cf0a11857955"},{"type":"WEB","url":"https://git.kernel.org/stable/c/edc6ace8ded417ad4fb55b1796da079c9d9994a4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143437.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143437"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"554fdbaf19b188224d52d2fa80c049e4d42002e8"},{"fixed":"edc6ace8ded417ad4fb55b1796da079c9d9994a4"},{"fixed":"96cdcc8636c3bbfe37bb9eb72d83439712d9bb1c"},{"fixed":"5e3325fa3ad3bdd703b94f27ea45768681d2881c"},{"fixed":"d21e20b3a2537affafaa4e9e0f69cf0a11857955"},{"fixed":"a6e7f7cc84b3ac0d3891d22f6014431d62442953"},{"fixed":"77e55f779c81495f66aa267f304429aaf2a56d45"},{"fixed":"92d81fb62050a7da1c2bfb998ab6319aec1fdb3e"},{"fixed":"b17d799ce49bfaad68be5ff3df995b3bd021a9d7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143437.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.7.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143437.json"}}],"schema_version":"1.9.2"}