VDB

CVE-2025-71111

CVE-2025-71111 PUBLISHED

hwmon: (w83791d) Convert macros to functions to avoid TOCTOU

Reported by linux · Published January 14, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.19, 6.18.3, 6.12.64, 6.6.120, 6.1.160, 5.15.198, 5.10.248
LinuxLinuxf94800fbc26ccf7c81eb791707b038a57aa39a18, f2b579a0c37c0df19603d719894a942a295f634a, c8cf0c2bdcccc6634b6915ff793b844e12436680, bf5b03227f2e6d4360004886d268f9df8993ef8f, a9fb6e8835a22f5796c1182ed612daed3fd273af, 670d7ef945d3a84683594429aea6ab2cdfa5ceb4, 3dceb68f6ad33156032ef4da21a93d84059cca6d, 2.6.18

Affected products

VendorProductVersions
LinuxLinux9873964d6eb24bd0205394f9b791de9eddbcb855, 9873964d6eb24bd0205394f9b791de9eddbcb855, 9873964d6eb24bd0205394f9b791de9eddbcb855
LinuxLinux2.6.18, 0, 5.10.248
linuxlinux_kernel2.6.18, 2.6.18, 2.6.18
LinuxLinux9873964d6eb24bd0205394f9b791de9eddbcb855, 9873964d6eb24bd0205394f9b791de9eddbcb855, 9873964d6eb24bd0205394f9b791de9eddbcb855

Timeline

  • Jan 14, 2026 CVE Published
  • Jan 15, 2026 EPSS Score (30 in total, the first dated here)
  • Mar 26, 2026 Coalition ESS Score (2 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (98 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (101 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-71111
vulnetix vdb fixes CVE-2025-71111

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-71111/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›