CVE-2024-27006
thermal/debugfs: Add missing count increment to thermal_debug_tz_trip_up()
Reported by linux · Published May 1, 2024
In the Linux kernel, the following vulnerability has been resolved: thermal/debugfs: Add missing count increment to thermal_debug_tz_trip_up() The count field in struct trip_stats, representing the number of times the zone temperature was above the trip point, needs to be incremented in thermal_debug_tz_trip_up(), for two reasons. First, if a trip point is crossed on the way up for the first time, thermal_debug_update_temp() called from update_temperature() does not see it because it has not been added to trips_crossed[] array in the thermal zone's struct tz_debugfs object yet. Therefore, when thermal_debug_tz_trip_up() is called after that, the trip point's count value is 0, and the attempt to divide by it during the average temperature computation leads to a divide error which causes the kernel to crash. Setting the count to 1 before the division by incrementing it fixes this problem. Second, if a trip point is crossed on the way up, but it has been crossed on the way up already before, its count value needs to be incremented to make a record of the fact that the zone temperature is above the trip now. Without doing that, if the mitigations applied after crossing the trip cause the zone temperature to drop below its threshold, the count will not be updated for this episode at all and the average temperature in the trip statistics record will be somewhat higher than it should be. Cc :6.8+ <stable@vger.kernel.org> # 6.8+
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 7ef01f228c9f54c6260319858be138a8a7e9e704, 7ef01f228c9f54c6260319858be138a8a7e9e704 |
| Linux | Linux | 6.8, 0, 6.8.8 |
| linux | linux_kernel | 6.8, 6.8 |
| Linux | Linux | 7ef01f228c9f54c6260319858be138a8a7e9e704, 7ef01f228c9f54c6260319858be138a8a7e9e704, 6.8 |
Timeline
- May 1, 2024 EPSS Score (30 in total, the first dated here)
- May 1, 2024 CVE Published
- Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
- Dec 5, 2025 CVE Updated
- Jan 15, 2026 Security Advisory (303 in total, the first dated here)
- Mar 31, 2026 Distribution Patch (265 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-27006
vulnetix vdb fixes CVE-2024-27006
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-27006/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/ url