CVE-2025-71111

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

No CVSS score yet EPSS 0.10%

Published 14 Jan 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2025-71111

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-71111 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.10%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 1.12% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Jun 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 9873964d6eb24bd0205394f9b791de9eddbcb855, before 3dceb68f6ad33156032ef4da21a93d84059cca6d
affected from 9873964d6eb24bd0205394f9b791de9eddbcb855, before bf5b03227f2e6d4360004886d268f9df8993ef8f
affected from 9873964d6eb24bd0205394f9b791de9eddbcb855, before f2b579a0c37c0df19603d719894a942a295f634a
affected from 9873964d6eb24bd0205394f9b791de9eddbcb855, before f94800fbc26ccf7c81eb791707b038a57aa39a18
affected from 9873964d6eb24bd0205394f9b791de9eddbcb855, before a9fb6e8835a22f5796c1182ed612daed3fd273af
affected from 9873964d6eb24bd0205394f9b791de9eddbcb855, before c8cf0c2bdcccc6634b6915ff793b844e12436680
affected from 9873964d6eb24bd0205394f9b791de9eddbcb855, before 670d7ef945d3a84683594429aea6ab2cdfa5ceb4
Other versions: unaffected
Linux
affected 2.6.18
unaffected before 2.6.18
unaffected from 5.10.248 up to and including 5.10.*
unaffected from 5.15.198 up to and including 5.15.*
unaffected from 6.1.160 up to and including 6.1.*
unaffected from 6.6.120 up to and including 6.6.*
unaffected from 6.12.64 up to and including 6.12.*
unaffected from 6.18.3 up to and including 6.18.*
unaffected 6.19 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-71111 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-71111

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-71111
trivy image --scanners vuln IMAGE | grep CVE-2025-71111

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-71111 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.