hwmon: (adt7470) Fix divide-by-zero TOCTOU crash in fan speed read
3Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackepss 0.2%
exploitation probability
0.2%top 89% of all CVEs
observed exploitation
nono source reports it
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.
Affected products
Linux · LinuxReferences
https://git.kernel.org/stable/c/009240d057e26831cc925feaba4c490209c1d0bahttps://git.kernel.org/stable/c/1b46fe9dc8f8de59310f37e6c5e5c0e05ded46c3https://git.kernel.org/stable/c/689a2ea75434131d0af58aeb7d51fde40e858b4dhttps://git.kernel.org/stable/c/76963b04b2d1c648d69949d8dd521e1ff7f40b51https://git.kernel.org/stable/c/832069bec79cf6f903441c5769d3cdba95d0af33https://git.kernel.org/stable/c/96ad57d31763559d376416cdf3bf5ae79bbbebechttps://git.kernel.org/stable/c/d328175045176f85c15c369bd21dc551351e7935