Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-71111

MEDIUM 4.7EPSS 1%

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

Mitigation

  • Upgrade Linux to 670d7ef945d3a84683594429aea6ab2cdfa5ceb4 or later.

Who should check

  • Anyone running Linux >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 3dceb68f6ad33156032ef4da21a93d84059cca6d; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < bf5b03227f2e6d4360004886d268f9df8993ef8f; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f2b579a0c37c0df19603d719894a942a295f634a; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f94800fbc26ccf7c81eb791707b038a57aa39a18; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < a9fb6e8835a22f5796c1182ed612daed3fd273af; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < c8cf0c2bdcccc6634b6915ff793b844e12436680; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 670d7ef945d3a84683594429aea6ab2cdfa5ceb4
  • Anyone running Linux 2.6.18

Vulnerability facts

Affected
Linux >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 3dceb68f6ad33156032ef4da21a93d84059cca6d; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < bf5b03227f2e6d4360004886d268f9df8993ef8f; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f2b579a0c37c0df19603d719894a942a295f634a; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f94800fbc26ccf7c81eb791707b038a57aa39a18; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < a9fb6e8835a22f5796c1182ed612daed3fd273af; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < c8cf0c2bdcccc6634b6915ff793b844e12436680; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 670d7ef945d3a84683594429aea6ab2cdfa5ceb4; Linux 2.6.18
Fixed in
Linux 3dceb68f6ad33156032ef4da21a93d84059cca6d, Linux 670d7ef945d3a84683594429aea6ab2cdfa5ceb4
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
4.7 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.14% chance of exploitation in 30 days (percentile 1, 2026-11-26)
CWE
CWE-367, CWE-362
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 3dceb68f6ad33156032ef4da21a93d84059cca6d; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < bf5b03227f2e6d4360004886d268f9df8993ef8f; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f2b579a0c37c0df19603d719894a942a295f634a; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f94800fbc26ccf7c81eb791707b038a57aa39a18; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < a9fb6e8835a22f5796c1182ed612daed3fd273af; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < c8cf0c2bdcccc6634b6915ff793b844e12436680; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 670d7ef945d3a84683594429aea6ab2cdfa5ceb4—cvelist
Linux2.6.18—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-71111. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-71111.md
Affected: Linux >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 3dceb68f6ad33156032ef4da21a93d84059cca6d; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < bf5b03227f2e6d4360004886d268f9df8993ef8f; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f2b579a0c37c0df19603d719894a942a295f634a; >= 9873964d6eb24bd0205394f…
Fixed in: Linux 3dceb68f6ad33156032ef4da21a93d84059cca6d, Linux 670d7ef945d3a84683594429aea6ab2cdfa5ceb4

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-71111 being exploited?

There is no confirmed exploitation: CVE-2025-71111 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.14% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-71111?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2025-71111?

Linux >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 3dceb68f6ad33156032ef4da21a93d84059cca6d; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < bf5b03227f2e6d4360004886d268f9df8993ef8f; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f2b579a0c37c0df19603d719894a942a295f634a; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f94800fbc26ccf7c81eb791707b038a57aa39a18; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < a9fb6e8835a22f5796c1182ed612daed3fd273af; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < c8cf0c2bdcccc6634b6915ff793b844e12436680; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 670d7ef945d3a84683594429aea6ab2cdfa5ceb4; Linux 2.6.18.

Is there a fix for CVE-2025-71111?

Yes. Fixed in Linux 3dceb68f6ad33156032ef4da21a93d84059cca6d, Linux 670d7ef945d3a84683594429aea6ab2cdfa5ceb4. Upgrade Linux to 670d7ef945d3a84683594429aea6ab2cdfa5ceb4 or later.

How do I check if I'm affected by CVE-2025-71111?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors