CVE-2024-27006
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
01/05/2024
Last modified:
04/11/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
thermal/debugfs: Add missing count increment to thermal_debug_tz_trip_up()<br />
<br />
The count field in struct trip_stats, representing the number of times<br />
the zone temperature was above the trip point, needs to be incremented<br />
in thermal_debug_tz_trip_up(), for two reasons.<br />
<br />
First, if a trip point is crossed on the way up for the first time,<br />
thermal_debug_update_temp() called from update_temperature() does<br />
not see it because it has not been added to trips_crossed[] array<br />
in the thermal zone&#39;s struct tz_debugfs object yet. Therefore, when<br />
thermal_debug_tz_trip_up() is called after that, the trip point&#39;s<br />
count value is 0, and the attempt to divide by it during the average<br />
temperature computation leads to a divide error which causes the kernel<br />
to crash. Setting the count to 1 before the division by incrementing it<br />
fixes this problem.<br />
<br />
Second, if a trip point is crossed on the way up, but it has been<br />
crossed on the way up already before, its count value needs to be<br />
incremented to make a record of the fact that the zone temperature is<br />
above the trip now. Without doing that, if the mitigations applied<br />
after crossing the trip cause the zone temperature to drop below its<br />
threshold, the count will not be updated for this episode at all and<br />
the average temperature in the trip statistics record will be somewhat<br />
higher than it should be.<br />
<br />
Cc :6.8+ # 6.8+
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.8 (including) | 6.8.8 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/9c8215d32e730b597c809a9d2090bf8ec1b79fcf
- https://git.kernel.org/stable/c/b552f63cd43735048bbe9bfbb7a9dcfce166fbdd
- https://git.kernel.org/stable/c/9c8215d32e730b597c809a9d2090bf8ec1b79fcf
- https://git.kernel.org/stable/c/b552f63cd43735048bbe9bfbb7a9dcfce166fbdd
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/



