CVE-2021-47098

published 4 Mar 2024 · updated 11 May 2026

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

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 55840b9eae5367b5d5b29619dc2fb7e4596dba46 and Kernel d105f30bea9104c590a9e5b495cb8a49bdfe405f.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.14, >=b50aa49638c7e12abf4ecc483f4e928c5cccc1b0 <55840b9eae5367b5d5b29619dc2fb7e4596dba46, >=b50aa49638c7e12abf4ecc483f4e928c5cccc1b0 <d105f30bea9104c590a9e5b495cb8a49bdfe405f55840b9eae5367b5d5b29619dc2fb7e4596dba46, d105f30bea9104c590a9e5b495cb8a49bdfe405f

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-47098 severity on Zeptric[![CVE-2021-47098](https://zeptric.io/badge/cve/CVE-2021-47098.svg)](https://zeptric.io/cve/CVE-2021-47098)