PT-2025-27992 · Linux+5 · Linux Kernel+5
Published
2025-07-04
·
Updated
2026-04-20
·
CVE-2025-38217
CVSS v3.1
4.7
Medium
| Vector | AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions:
Linux kernel (affected versions not specified)
Description:
A Time-of-Check to Time-of-Use (TOCTOU) race condition exists in the
fts read() function when handling hwmon pwm auto channels temp. The code accesses the shared variable data->fan source[channel] twice without holding any locks, allowing another thread to modify its value between the check and its use. This can lead to undefined behavior, causing a crash or incorrect values being returned to userspace. The issue is resolved by reading data->fan source[channel] into a local variable once and adding a bounds check to ensure the value is less than BITS PER LONG before passing it to the BIT() macro.Recommendations:
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Time Of Check To Time Of Use
Race Condition
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Astra Linux
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu