CVE-2025-71111

MediumCVSS 4.7/10Last modified Oct 19, 2026

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.

Metrics

CVSS 3.1 4.7/10CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 3dceb68f6ad33156032ef4da21a93d84059cca6d; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < bf5b03227f2e6d4360004886d268f9df8993ef8f; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f2b579a0c37c0df19603d719894a942a295f634a; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < f94800fbc26ccf7c81eb791707b038a57aa39a18; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < a9fb6e8835a22f5796c1182ed612daed3fd273af; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < c8cf0c2bdcccc6634b6915ff793b844e12436680; >= 9873964d6eb24bd0205394f9b791de9eddbcb855, < 670d7ef945d3a84683594429aea6ab2cdfa5ceb4
LinuxLinux2.6.18

References

Timeline

Published
Jan 14, 2026
Last modified
Oct 19, 2026
NVD status
Modified

Related CVEs from 2025

CVE-2025-711127.1In the Linux kernel, the following vulnerability has been resolved: net: hns3: add VLAN id validation before using Currently, the VLAN id CVE-2025-711135.5In the Linux kernel, the following vulnerability has been resolved: crypto: af_alg - zero initialize memory allocated via sock_kmalloc SevCVE-2025-711145.5In the Linux kernel, the following vulnerability has been resolved: via_wdt: fix critical boot hang due to unnamed resource allocation TheCVE-2025-711155.5In the Linux kernel, the following vulnerability has been resolved: um: init cpu_tasks[] earlier This is currently done in uml_finishsetupCVE-2025-711167.1In the Linux kernel, the following vulnerability has been resolved: libceph: make decode_pool() more resilient against corrupted osdmaps ICVE-2025-711175.5In the Linux kernel, the following vulnerability has been resolved: block: Remove queue freezing from several sysfs store callbacks FreeziCVE-2025-711185.5In the Linux kernel, the following vulnerability has been resolved: ACPICA: Avoid walking the Namespace if start_node is NULL Although comCVE-2025-711195.5In the Linux kernel, the following vulnerability has been resolved: powerpc/kexec: Enable SMT before waking offline CPUs If SMT is disableCVE-2025-71125.4A vulnerability was found in Portabilis i-Educar 2.9.0 and classified as problematic. This issue affects some unknown processing of the fileCVE-2025-711205.5In the Linux kernel, the following vulnerability has been resolved: SUNRPC: svcauth_gss: avoid NULL deref on zero length gss_token in gss_rCVE-2025-711215.5In the Linux kernel, the following vulnerability has been resolved: parisc: Do not reprogram affinitiy on ASP chip The ASP chip is a very CVE-2025-711227.8In the Linux kernel, the following vulnerability has been resolved: iommufd/selftest: Check for overflow in IOMMU_TEST_OP_ADD_RESERVED syz
CVE-2025-71111: Medium severity, CVSS 4.7 | Vulnix