{"api_version":"1","generated_at":"2026-12-06T01:17:46+00:00","cve":"CVE-2026-143437","urls":{"html":"https://cve.report/CVE-2026-143437","api":"https://cve.report/api/cve/CVE-2026-143437.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143437","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143437"},"summary":{"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->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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-05 03:19:55","updated_at":"2026-12-05 23:18:34"},"problem_types":[],"metrics":[{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"8.4","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"8.4","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":8.4,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/edc6ace8ded417ad4fb55b1796da079c9d9994a4","name":"https://git.kernel.org/stable/c/edc6ace8ded417ad4fb55b1796da079c9d9994a4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5e3325fa3ad3bdd703b94f27ea45768681d2881c","name":"https://git.kernel.org/stable/c/5e3325fa3ad3bdd703b94f27ea45768681d2881c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/92d81fb62050a7da1c2bfb998ab6319aec1fdb3e","name":"https://git.kernel.org/stable/c/92d81fb62050a7da1c2bfb998ab6319aec1fdb3e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a6e7f7cc84b3ac0d3891d22f6014431d62442953","name":"https://git.kernel.org/stable/c/a6e7f7cc84b3ac0d3891d22f6014431d62442953","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d21e20b3a2537affafaa4e9e0f69cf0a11857955","name":"https://git.kernel.org/stable/c/d21e20b3a2537affafaa4e9e0f69cf0a11857955","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/77e55f779c81495f66aa267f304429aaf2a56d45","name":"https://git.kernel.org/stable/c/77e55f779c81495f66aa267f304429aaf2a56d45","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/96cdcc8636c3bbfe37bb9eb72d83439712d9bb1c","name":"https://git.kernel.org/stable/c/96cdcc8636c3bbfe37bb9eb72d83439712d9bb1c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b17d799ce49bfaad68be5ff3df995b3bd021a9d7","name":"https://git.kernel.org/stable/c/b17d799ce49bfaad68be5ff3df995b3bd021a9d7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143437","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143437","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 554fdbaf19b188224d52d2fa80c049e4d42002e8 edc6ace8ded417ad4fb55b1796da079c9d9994a4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 554fdbaf19b188224d52d2fa80c049e4d42002e8 96cdcc8636c3bbfe37bb9eb72d83439712d9bb1c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 554fdbaf19b188224d52d2fa80c049e4d42002e8 5e3325fa3ad3bdd703b94f27ea45768681d2881c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 554fdbaf19b188224d52d2fa80c049e4d42002e8 d21e20b3a2537affafaa4e9e0f69cf0a11857955 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 554fdbaf19b188224d52d2fa80c049e4d42002e8 a6e7f7cc84b3ac0d3891d22f6014431d62442953 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 554fdbaf19b188224d52d2fa80c049e4d42002e8 77e55f779c81495f66aa267f304429aaf2a56d45 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 554fdbaf19b188224d52d2fa80c049e4d42002e8 92d81fb62050a7da1c2bfb998ab6319aec1fdb3e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 554fdbaf19b188224d52d2fa80c049e4d42002e8 b17d799ce49bfaad68be5ff3df995b3bd021a9d7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.7","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.7 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/thermal/sprd_thermal.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"edc6ace8ded417ad4fb55b1796da079c9d9994a4","status":"affected","version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","versionType":"git"},{"lessThan":"96cdcc8636c3bbfe37bb9eb72d83439712d9bb1c","status":"affected","version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","versionType":"git"},{"lessThan":"5e3325fa3ad3bdd703b94f27ea45768681d2881c","status":"affected","version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","versionType":"git"},{"lessThan":"d21e20b3a2537affafaa4e9e0f69cf0a11857955","status":"affected","version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","versionType":"git"},{"lessThan":"a6e7f7cc84b3ac0d3891d22f6014431d62442953","status":"affected","version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","versionType":"git"},{"lessThan":"77e55f779c81495f66aa267f304429aaf2a56d45","status":"affected","version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","versionType":"git"},{"lessThan":"92d81fb62050a7da1c2bfb998ab6319aec1fdb3e","status":"affected","version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","versionType":"git"},{"lessThan":"b17d799ce49bfaad68be5ff3df995b3bd021a9d7","status":"affected","version":"554fdbaf19b188224d52d2fa80c049e4d42002e8","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/thermal/sprd_thermal.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.7"},{"lessThan":"5.7","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.7","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.7","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"metrics":[{"cvssV3_1":{"baseScore":8.4,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"scenarios":[{"lang":"en","value":"AV:L - The out-of-range index is the sensor child's \"reg\" property, copied by of_property_read_u32() into sen->id inside sprd_thm_probe() when the boot DTB's sprd,ums512-thermal node is instantiated by of_platform_default_populate_init().\nAC:L - A child reg of 15 keeps SPRD_THM_THRES(id) (id*4+0x2c = 0x68) inside the register window the driver already maps through SPRD_THM_TEMP(7), and a thermal-zones thermal-sensors cell of 15 makes devm_thermal_of_zone_register() succeed so the store runs on every probe with no race.\nPR:N - sprd_thm_probe() reads that \"reg\" and indexes thm->sensor[] with no capable() or credential check, on the platform bind started from of_platform_default_populate_init() before userspace. A crafted boot DTB is consumed with no Linux account.\nUI:N - of_platform_default_populate_init() creates the sprd,ums512-thermal device and driver core calls sprd_thm_probe() during boot, with no mount, open, or sysfs write required from a victim.\nS:U - The thm->sensor[sen->id] store and the later sprd_thm_toggle_sensor() NULL dereference both stay in the host kernel that probed the controller; they do not cross a guest-host, IOMMU, or sandbox boundary.\nC:H - With sen->id >= 15, thm->sensor[sen->id] = sen writes an 8-byte heap pointer at offset 8+id*8, which is byte 128 or later of the 104-byte sprd_thermal_data from devm_kzalloc (kmalloc-128). Corrupting the next slab object can be leveraged to disclose kernel memory.\nI:H - That sprd_thm_probe() store writes sen past the kmalloc-128 object (id 15 hits the next object's first 8 bytes). sprd_thm_sensor_init() also read-modify-writes MMIO at thm->base+SPRD_THM_THRES(sen->id), outside the eight sensor threshold registers.\nA:H - After the children are registered, sprd_thm_probe() calls sprd_thm_toggle_sensor(thm->sensor[i]) for i in 0..nr_sensors-1. An id >= 8 leaves one of those slots NULL, so sen->tzd oopses. A larger reg whose SPRD_THM_THRES() offset leaves the ioremap window faults in readl() inside sprd_thm_update_bits()."}]}],"providerMetadata":{"dateUpdated":"2026-12-05T20:34:37.710Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143437","datePublished":"2026-12-05T01:41:17.171Z","dateReserved":"2026-12-03T03:10:28.375Z","dateUpdated":"2026-12-05T20:34:37.710Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-05 03:19:55","lastModifiedDate":"2026-12-05 23:18:34","problem_types":[],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.4,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.5,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143437","Ordinal":"1","Title":"thermal/drivers/sprd: validate the sensor id from the device tre","CVE":"CVE-2026-143437","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143437","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"thermal/drivers/sprd: validate the sensor id from the device tre"}]}}}