Every CVESearch/Get API key

CVE-2026-143437

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

Explain with AI
ChatGPTClaudeGoogle AI
Scores
Unknown
No source reports a CVSS or EPSS score yet.
Exploitation
Unknown
No source reports exploitation yet.
Listed fix
5.10.275 for Kernel
From OSV6 more listed versions

Overview

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.

Affected

Packages 1

Affected packages
PackageAffectedFixed
Kernel
Linux
5.7.0 up to 5.10.275, 5.11.0 up to 5.15.226, 5.16.0 up to 6.1.193, 6.2.0 up to 6.6.163, 6.7.0 up to 6.12.119, 6.13.0 up to 6.18.65, 6.19.0 up to 7.3.6
5.10.2755.15.2266.1.1936.6.1636.12.1196.18.657.3.6

Products 1

Sources

CVE ListNo score

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

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.

Record
CVE-2026-143437
Updated
2026-12-05
EUVDEUVD-2026-145066No score

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.

Record
EUVD-2026-145066
Updated
2026-12-05
GitHub AdvisoriesGHSA-cvgq-h885-4w39No score

In the Linux kernel, the following vulnerability has been resolved: thermal/drivers/sprd:...

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.

Record
GHSA-cvgq-h885-4w39
Updated
2026-12-05
NVDNo score

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.

Record
CVE-2026-143437
Updated
2026-12-05
OSVNo score

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

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.

Record
CVE-2026-143437
Updated
2026-12-05

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
Other IDs, published dateEUVD
Other IDs, referencesGitHub Advisories, NVD
Affected packages, key facts, referencesOSV
First indexedCVE List

Upstream dates may differ.

References

Show 4 more referencesShow less
MoveEnter Open