CVE-2026-143437

Source
https://cve.org/CVERecord?id=CVE-2026-143437
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143437.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-143437
Downstream
Published
2026-12-05T01:41:17Z
Modified
2026-12-05T03:01:06Z
Summary
thermal/drivers/sprd: validate the sensor id from the device tree
Details

In the Linux kernel, the following vulnerability has been resolved:

thermal/drivers/sprd: validate the sensor id from the device tree

sprd_thm_probe() reads each sensor child node's "reg" property into sen->id and uses it without validation: to compute the sensor's register offsets in sprd_thm_sensor_init(), as the thermal zone id, and finally as an index into thm->sensor[], which has SPRD_THM_MAX_SENSOR (8) entries:

ret = of_property_read_u32(sen_child, "reg", &sen->id);
...
thm->sensor[sen->id] = sen;

Only the number of sensor nodes is checked against SPRD_THM_MAX_SENSOR. A "reg" value of 8 or more, or one that is negative once stored in the int sen->id, makes the register offsets point outside the sensor range and the final store land outside thm->sensor[], overwriting the fields that follow it in struct sprd_thermal_data or other memory.

Reject an out-of-range id right after reading it, before it is used.

This does not address sparse ids, such as a single sensor with id 7: they leave holes in thm->sensor[] that the later loops over 0..nr_sensors-1 dereference. That needs a separate fix.

Found by static analysis tool CodeQL.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143437.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

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
Show 3 more events Show fewer events
Fixed
77e55f779c81495f66aa267f304429aaf2a56d45
Fixed
92d81fb62050a7da1c2bfb998ab6319aec1fdb3e
Fixed
b17d799ce49bfaad68be5ff3df995b3bd021a9d7

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143437.json"

Linux / Kernel

Package

Name
Kernel

Affected 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"