CVE-2026-142912: thermal/drivers/qcom-spmi-temp-alarm: Fix temp_map indexing
In the Linux kernel, the following vulnerability has been resolved:
thermal/drivers/qcom-spmi-temp-alarm: Fix tempmap indexing
Fix the following issue noticed when booting on the db845c-dragonboard:
BUG: KASAN: global-out-of-bounds in qpnptmsyncthresholds+0x11c/0x180 [qcomspmitempalarm] Read of size 24 at addr ffffdd2495f01200 by task (udev-worker)/371
CPU: 3 UID: 0 PID: 371 Comm: (udev-worker) Not tainted 7.3.0-rc3 #116 PREEMPT Hardware name: Thundercomm Dragonboard 845c (DT) Call trace: showstack+0x18/0x24 (C) dumpstacklvl+0xa4/0xf4 printreport+0x1f4/0x5ac kasanreport+0x84/0xcc kasancheckrange+0xf0/0x1a4 memcpy+0x3c/0xa4 qpnptmsyncthresholds+0x11c/0x180 [qcomspmitempalarm] qpnptmprobe+0x3dc/0xae8 [qcomspmitempalarm] platformprobe+0xc4/0x18c reallyprobe+0x17c/0x4fc ...
The buggy address belongs to the variable: tempmapgen1+0x60/0xc4 [qcomspmitempalarm]
It looks like tempmap is a pointer to the complete temperature map. Indexing it directly advances the entire map, rather than selecting a threshold row.
Fix this by dereferencing the tempmap before indexing it to select the requested threshold row.
Affected Software
Event History
Frequently Asked Questions
Which systems are known to exhibit this issue?
The issue was observed while booting a Thundercomm Dragonboard 845c (db845c) using the qcom_spmi_temp_alarm driver.
How can I tell whether the problem is occurring on a system?
A KASAN-enabled kernel can report a global-out-of-bounds read during driver probe, with qpnp_tm_sync_thresholds and qpnp_tm_probe in the call trace. The report identifies temp_map_gen1 as the affected global variable and may occur in a udev-worker process during boot.