{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143437","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-12-03T03:10:28.375Z","datePublished":"2026-12-05T01:41:17.171Z","dateUpdated":"2026-12-05T01:41:17.171Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-05T01:41:17.171Z"},"descriptions":[{"lang":"en","value":"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->id 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->sensor[], which has SPRD_THM_MAX_SENSOR\n(8) entries:\n\n\tret = of_property_read_u32(sen_child, \"reg\", &sen->id);\n\t...\n\tthm->sensor[sen->id] = 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->id, makes the register offsets point outside the sensor range\nand the final store land outside thm->sensor[], 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->sensor[] that the later loops over\n0..nr_sensors-1 dereference. That needs a separate fix.\n\nFound by static analysis tool CodeQL."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/thermal/sprd_thermal.c"],"versions":[{"version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","lessThan":"edc6ace8ded417ad4fb55b1796da079c9d9994a4","status":"affected","versionType":"git"},{"version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","lessThan":"96cdcc8636c3bbfe37bb9eb72d83439712d9bb1c","status":"affected","versionType":"git"},{"version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","lessThan":"5e3325fa3ad3bdd703b94f27ea45768681d2881c","status":"affected","versionType":"git"},{"version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","lessThan":"d21e20b3a2537affafaa4e9e0f69cf0a11857955","status":"affected","versionType":"git"},{"version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","lessThan":"a6e7f7cc84b3ac0d3891d22f6014431d62442953","status":"affected","versionType":"git"},{"version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","lessThan":"77e55f779c81495f66aa267f304429aaf2a56d45","status":"affected","versionType":"git"},{"version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","lessThan":"92d81fb62050a7da1c2bfb998ab6319aec1fdb3e","status":"affected","versionType":"git"},{"version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","lessThan":"b17d799ce49bfaad68be5ff3df995b3bd021a9d7","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/thermal/sprd_thermal.c"],"versions":[{"version":"5.7","status":"affected"},{"version":"0","lessThan":"5.7","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/edc6ace8ded417ad4fb55b1796da079c9d9994a4"},{"url":"https://git.kernel.org/stable/c/96cdcc8636c3bbfe37bb9eb72d83439712d9bb1c"},{"url":"https://git.kernel.org/stable/c/5e3325fa3ad3bdd703b94f27ea45768681d2881c"},{"url":"https://git.kernel.org/stable/c/d21e20b3a2537affafaa4e9e0f69cf0a11857955"},{"url":"https://git.kernel.org/stable/c/a6e7f7cc84b3ac0d3891d22f6014431d62442953"},{"url":"https://git.kernel.org/stable/c/77e55f779c81495f66aa267f304429aaf2a56d45"},{"url":"https://git.kernel.org/stable/c/92d81fb62050a7da1c2bfb998ab6319aec1fdb3e"},{"url":"https://git.kernel.org/stable/c/b17d799ce49bfaad68be5ff3df995b3bd021a9d7"}],"title":"thermal/drivers/sprd: validate the sensor id from the device tree","x_generator":{"engine":"bippy-1.2.0"}}}}