CVE-2025-71111: hwmon: (w83791d) Convert macros to functions to avoid TOCTOU
Vulnerability summary
CVE-2025-71111 is a medium (CVSS 4.7) vulnerability in linux. EPSS estimates a 0.10% chance of exploitation in the next 30 days, higher than 1% of scored vulnerabilities.
Not severe (CVSS 4.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 47 · Related 43Timeline
- 14-01-2026PublishedVulnerability first disclosed.
- 19-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated4.7MediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.10%
Chance of exploitation in the next 30 days
Percentile
1%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.10% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-367Time-of-check Time-of-use (TOCTOU) Race ConditionThe product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
- CWE-362Concurrent Execution using Shared Resource with Improper SynchronizationThe product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu156 products
- linuxAll versions (No fix recorded) | < 5.15.0-173.183 | < 6.8.0-110.110 | < 6.17.0-22.22
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1103.110 | < 6.8.0-1052.55 | < 6.17.0-1012.12
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Linux2 products
- linux≥ 9873964d6eb24bd0205394f9b791de9eddbcb855, < 3dceb68f6ad33156032ef4da21a93d84059cca6d | ≥ 9873964d6eb24bd0205394f9b791de9eddbcb855, < bf5b03227f2e6d4360004886d268f9df8993ef8f | ≥ 9873964d6eb24bd0205394f9b791de9eddbcb855, < f2b579a0c37c0df19603d719894a942a295f634a | ≥ 9873964d6eb24bd0205394f9b791de9eddbcb855, < f94800fbc26ccf7c81eb791707b038a57aa39a18 | ≥ 9873964d6eb24bd0205394f9b791de9eddbcb855, < a9fb6e8835a22f5796c1182ed612daed3fd273af | ≥ 9873964d6eb24bd0205394f9b791de9eddbcb855, < c8cf0c2bdcccc6634b6915ff793b844e12436680 | ≥ 9873964d6eb24bd0205394f9b791de9eddbcb855, < 670d7ef945d3a84683594429aea6ab2cdfa5ceb4 | 2.6.18
- linux_kernel≥ 2.6.18.1, < 5.10.248 | ≥ 5.11, < 5.15.198 | ≥ 5.16, < 6.1.160 | ≥ 6.2, < 6.6.120 | ≥ 6.7, < 6.12.64 | ≥ 6.13, < 6.18.3 | 2.6.18 | 6.19:rc1 | 6.19:rc2 | 6.19:rc3 | 6.19:rc4 | 6.19:rc5 | 6.19:rc6 | 6.19:rc7 | 6.19:rc8
Debian1 product
- linux< 6.1.162-1 | < 6.12.69-1 | < 6.18.3-1
3 vendors · 159 products