hwmon: (lm90) Prevent integer overflow/underflow in hysteresis calculations
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's lm90 hardware-monitoring driver can overflow or underflow when the hysteresis value is set to MAX_LONG while the critical temperature limit is negative. The input does not establish an attacker capability, authentication requirement, or whether the setting can be reached remotely or requires user interaction.
Engineers running Linux kernels with the lm90 driver should check their kernel versions; affected versions are not specified.