7.8high
hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations
- Severity
- 7.8high CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from b50aa49638c7e12abf4ecc483f4e928c5cccc1b0 before d105f30bea9104c590a9e5b495cb8a49bdfe405f, from b50aa49638c7e12abf4ecc483f4e928c5cccc1b0 before 55840b9eae5367b5d5b29619dc2fb7e4596dba46, 5.14 Not affected: before 5.14, from 5.15.12 up to 5.15.*, from 5.16 up to * | CVE List |
| linux linux_kernel | from 5.14 before 5.15.2, 5.16 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: hwmon: (lm90) Previene el desbordamiento/desbordamiento insuficiente de enteros en los cálculos de histéresis del commit b50aa49638c7 ("hwmon: (lm90) Evita el desbordamiento insuficiente de enteros en los cálculos de temperatura") abordó una serie de situaciones de desbordamiento insuficiente al escribir. límites de temperatura. Sin embargo, omitió una situación, vista cuando se intenta establecer el valor de histéresis en MAX_LONG y el límite de temperatura crítica es negativo. Utilice abrazadera_val() al configurar la temperatura de histéresis para garantizar que el valor proporcionado nunca pueda desbordarse o subestimarse.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47098 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47098 changed 2026-06-17 | Public domain |