Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2021-47098

hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • b50aa49638c7e12abf4ecc483f4e928c5cccc1b0 to < d105f30bea9104c590a9e5b495cb8a49bdfe405faffected
  • b50aa49638c7e12abf4ecc483f4e928c5cccc1b0 to < 55840b9eae5367b5d5b29619dc2fb7e4596dba46affected

Linux Linux

Default version status: affected

  • 5.14affected
  • 0 to < 5.14unaffected
  • 5.15.12 to ≤ 5.15.*unaffected
  • 5.16 to ≤ *unaffected

References