PT-2026-168743
CVE-2026-143437
·
تاريخ النشر
2026-12-05
·
تاريخ التحديث
2026-12-05
الوصف من
الدرجة
N/A
غير متوفرلا تتوفر حاليًا تقييمات أو مقاييس للخطورة. سنحدّث المعلومات المقابلة في الصفحة فور توفرها.
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.
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾