CVE-2024-27006: thermal/debugfs: Add missing count increment to thermal_debug_tz_trip_up()

Published May 1, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

thermal/debugfs: Add missing count increment to thermaldebugtztripup()

The count field in struct tripstats, representing the number of times the zone temperature was above the trip point, needs to be incremented in thermaldebugtztripup(), for two reasons.

First, if a trip point is crossed on the way up for the first time, thermaldebugupdatetemp() called from updatetemperature() does not see it because it has not been added to tripscrossed[] array in the thermal zone's struct tzdebugfs object yet. Therefore, when thermaldebugtztripup() 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 Software

6 affected componentsFixes available
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1
Linux Linux kernel>=6.8<6.8.8
Linux Linux kernel=6.9-rc1
Linux Linux kernel=6.9-rc2
Linux Linux kernel=6.9-rc3
Linux Linux kernel=6.9-rc4

Event History

May 1, 2024
CVE Published
via MITRE·05:29 AM
Data Sourced
via MITRE·05:29 AM
Description
Data Sourced
via NVD·06:15 AM
Description
Data Sourced
via NVD·06:15 AM
RemedySeverityAffected Software
Jul 11, 2024
Data Sourced
via Launchpad·07:45 PM
Description
Dec 2, 2024
Data Sourced
via Ubuntu·08:15 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-27006?

CVE-2024-27006 has a severity rating that indicates it may lead to potential denial of service due to the improper handling of temperature trip point counts.

2

How do I fix CVE-2024-27006?

To fix CVE-2024-27006, update your Linux kernel to one of the patched versions, such as 5.10.223-1 or later.

3

Which Linux kernel versions are affected by CVE-2024-27006?

CVE-2024-27006 affects specific versions such as 5.10.223-1, 5.10.226-1, 6.1.119-1, 6.1.123-1, 6.12.10-1, and 6.12.11-1.

4

Is CVE-2024-27006 a remote exploit?

CVE-2024-27006 is not classified as a remote exploit but can potentially lead to issues in the local environment.

5

What component of the Linux kernel does CVE-2024-27006 affect?

CVE-2024-27006 affects the thermal/debugfs subsystem of the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203