CVE-2021-47098

medium

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.

References

https://git.kernel.org/stable/c/d105f30bea9104c590a9e5b495cb8a49bdfe405f

https://git.kernel.org/stable/c/55840b9eae5367b5d5b29619dc2fb7e4596dba46

Details

Source: Mitre, NVD

Published: 2024-03-04

Updated: 2024-03-05

Risk Information

CVSS v2

Base Score: 5.9

Vector: CVSS2#AV:L/AC:L/Au:M/C:C/I:N/A:C

Severity: Medium

CVSS v3

Base Score: 6

Vector: CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:H

Severity: Medium