Vulnerabilities

CVE-2025-71111

Medium 4.7 CVSS 3.1

Description

In the Linux kernel, the following vulnerability has been resolved: hwmon: (w83791d) Convert macros to functions to avoid TOCTOU The macro FAN_FROM_REG evaluates its arguments multiple times. When used in lockless contexts involving shared driver data, this leads to Time-of-Check to Time-of-Use (TOCTOU) race conditions, potentially causing divide-by-zero errors. Convert the macro to a static function. This guarantees that arguments are evaluated only once (pass-by-value), preventing the race conditions. Additionally, in store_fan_div, move the calculation of the minimum limit inside the update lock. This ensures that the read-modify-write sequence operates on consistent data. Adhere to the principle of minimal changes by only converting macros that evaluate arguments multiple times and are used in lockless contexts.

Description as published by the source, in English.

Key facts

Published
2026-01-14
Last modified
2026-10-19
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.1 % higher than 1 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
Linux Linux Kernel 2.6.18 Affected
Linux Linux Kernel 6.19 Affected
Linux Linux Kernel ≥ 2.6.18.1, < 5.10.248 Affected
Linux Linux Kernel ≥ 5.11, < 5.15.198 Affected
Linux Linux Kernel ≥ 5.16, < 6.1.160 Affected
Linux Linux Kernel ≥ 6.13, < 6.18.3 Affected
Linux Linux Kernel ≥ 6.2, < 6.6.120 Affected
Linux Linux Kernel ≥ 6.7, < 6.12.64 Affected

Weakness type

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities