CVE-2024-43852: hwmon: (ltc2991) re-order conditions to fix off by one bug
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (ltc2991) re-order conditions to fix off by one bug
LTC2991TINTCHNR is 4. The st->tempen[] array has LTC2991MAXCHANNEL (4) elements. Thus if "channel" is equal to LTC2991TINTCHNR then we have read one element beyond the end of the array. Flip the conditions around so that we check if "channel" is valid before using it as an array index.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Compensating control
In the Linux kernel hwmon ltc2991 code, re-order the conditions so that the "channel" validity check occurs before using "channel" as an array index, preventing an out-of-bounds access when channel equals LTC2991_T_INT_CH_NR.
Event History
Frequently Asked Questions
What is the severity of CVE-2024-43852?
CVE-2024-43852 is classified as a low-severity vulnerability in the Linux kernel.
How do I fix CVE-2024-43852?
To resolve CVE-2024-43852, update your Linux kernel to version 5.10.223-1, 5.10.226-1, 6.1.119-1, 6.1.123-1, or 6.12.11-1.
Which Linux kernel versions are affected by CVE-2024-43852?
CVE-2024-43852 affects Linux kernel versions between 6.7 and 6.10.3.
What specific component of the Linux kernel is impacted by CVE-2024-43852?
CVE-2024-43852 affects the hwmon subsystem, specifically related to the LTC2991 temperature sensor.
Is there a workaround for CVE-2024-43852 before applying a patch?
There are no known workarounds for CVE-2024-43852, and applying the patch is the recommended action.