What’s Vulnerable › Vulnerabilities
CVE-2021-47098: hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-04 · updated 2026-06-17
- Weakness: CWE-190
Description
In the Linux kernel, the following vulnerability has been resolved: hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations Commit b50aa49638c7 ("hwmon: (lm90) Prevent integer underflows of temperature calculations") addressed a number of underflow situations when writing temperature limits. However, it missed one situation, seen when an attempt is made to set the hysteresis value to MAX_LONG and the critical temperature limit is negative. Use clamp_val() when setting the hysteresis temperature to ensure that the provided value can never overflow or underflow.
Affected products
- Linux kernel: from 5.14 before 5.15.2; 5.16-rc1, 5.16-rc2, 5.16-rc3, 5.16-rc4, 5.16-rc5, 5.16-rc6 — fixed in 5.15.2
How to fix
Upgrade to a fixed version: Linux kernel 5.15.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/55840b9eae5367b5d5b29619dc2fb7e4596dba46
- https://git.kernel.org/stable/c/d105f30bea9104c590a9e5b495cb8a49bdfe405f
- https://git.kernel.org/stable/c/55840b9eae5367b5d5b29619dc2fb7e4596dba46
- https://git.kernel.org/stable/c/d105f30bea9104c590a9e5b495cb8a49bdfe405f
Get alerted when CVE-2021-47098 or the next vulnerability affects your stack