hwmon: (adt7470) Fix divide-by-zero TOCTOU crash in fan speed read
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ fc958a61ff6d34a0ec42744d3ff524ee202b2e9f · < 76963b04b2d1c648d69949d8dd521e1ff7f40b51| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (adt7470) Fix divide-by-zero TOCTOU crash in fan speed read
If the fan data becomes 0 between the FAN_DATA_VALID() check and the FAN_PERIOD_TO_RPM() conversion, it will result in a divide-by-zero crash due to a race with a concurrent update of the cached fan value.
Fix a TOCTOU issue by reading fan data once.
From the CVE record · Linux
The Linux kernel's adt7470 fan speed read can crash if a concurrent update changes cached fan data to zero between validation and conversion. The input does not identify an attacker action or specify network access, authentication, or user interaction conditions.
Teams running Linux kernels with the adt7470 hardware-monitoring driver should check whether their kernel is affected; no affected versions are specified.