{"id":"CVE-2026-143437","aliases":["EUVD-2026-145066","GHSA-cvgq-h885-4w39"],"status":"published","title":"thermal/drivers/sprd: validate the sensor id from the device tree","description":"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\", \u0026sen-\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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2026-12-05T01:41:17Z","modified":"2026-12-05T03:30:37Z","fixes":[{"ecosystem":"Linux","package":"Kernel","fixed_in":["5.10.275","5.15.226","6.1.193","6.6.163","6.12.119","6.18.65","7.3.6"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Linux","package":"Kernel","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"}]}]}],"products":[{"vendor":"linux","product":"linux"}],"references":[{"url":"https://git.kernel.org/stable/c/edc6ace8ded417ad4fb55b1796da079c9d9994a4","tags":["web"]},{"url":"https://git.kernel.org/stable/c/96cdcc8636c3bbfe37bb9eb72d83439712d9bb1c","tags":["web"]},{"url":"https://git.kernel.org/stable/c/5e3325fa3ad3bdd703b94f27ea45768681d2881c","tags":["web"]},{"url":"https://git.kernel.org/stable/c/d21e20b3a2537affafaa4e9e0f69cf0a11857955","tags":["web"]},{"url":"https://git.kernel.org/stable/c/a6e7f7cc84b3ac0d3891d22f6014431d62442953","tags":["web"]},{"url":"https://git.kernel.org/stable/c/77e55f779c81495f66aa267f304429aaf2a56d45","tags":["web"]},{"url":"https://git.kernel.org/stable/c/92d81fb62050a7da1c2bfb998ab6319aec1fdb3e","tags":["web"]},{"url":"https://git.kernel.org/stable/c/b17d799ce49bfaad68be5ff3df995b3bd021a9d7","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143437","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-cvgq-h885-4w39"},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143437.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-143437","title":"thermal/drivers/sprd: validate the sensor id from the device tree","description":"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\", \u0026sen-\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.","status":"published","published":"2026-12-05T01:41:17.171Z","modified":"2026-12-05T01:41:17.171Z","updated_at":"2026-12-05T01:48:47.517798Z"}],"euvd":[{"id":"EUVD-2026-145066","description":"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\", \u0026sen-\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.","status":"published","published":"2026-12-05T01:41:17Z","modified":"2026-12-05T01:41:17Z","updated_at":"2026-12-05T03:44:21.912352Z"}],"ghsa":[{"id":"GHSA-cvgq-h885-4w39","title":"In the Linux kernel, the following vulnerability has been resolved:\n\nthermal/drivers/sprd:...","description":"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\", \u0026sen-\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.","status":"published","published":"2026-12-05T03:30:29Z","modified":"2026-12-05T03:30:37Z","updated_at":"2026-12-05T03:31:20.896926Z"}],"nvd":[{"id":"CVE-2026-143437","description":"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\", \u0026sen-\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.","status":"published","published":"2026-12-05T03:19:55.547Z","modified":"2026-12-05T03:19:55.547Z","updated_at":"2026-12-05T03:21:31.003878Z"}],"osv":[{"id":"CVE-2026-143437","title":"thermal/drivers/sprd: validate the sensor id from the device tree","description":"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\", \u0026sen-\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.","status":"published","published":"2026-12-05T01:41:17.171Z","modified":"2026-12-05T03:01:06.332794748Z","updated_at":"2026-12-05T03:12:29.691855Z"}]}}
