# CVE-2021-47098: hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-03-04T18:10:50.282Z
- Modified: 2026-06-17T04:16:28.423Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 5.14 before 5.15.2; 5.16

## References

- <https://git.kernel.org/stable/c/d105f30bea9104c590a9e5b495cb8a49bdfe405f> (patch)
- <https://git.kernel.org/stable/c/55840b9eae5367b5d5b29619dc2fb7e4596dba46> (patch)

## Sources

- CVE List: [CVE-2021-47098](https://www.cve.org/CVERecord?id=CVE-2021-47098), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47098](https://nvd.nist.gov/vuln/detail/CVE-2021-47098), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47098 · Whole record: https://cve.day/CVE-2021-47098.json · Rebuilt by cve.day 2026-11-25T22:58:08.659Z
