CVE-2026-98197·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: hwmon: (w83791d) remove fan/pwm 4-5 sysfs group on remove When the fan/pwm 4-5 pins are not used as GPIO, w83791d_probe() creates the w83791d_group_fanpwm45 sysfs group on the I2C client device. The probe error path removes this group when a later initialization step fails, but the normal remove path only removes w83791d_group. As a result, the optional fan/pwm 4-5 sysfs files can remain after the driver is unbound. The callbacks associated with these files access the driver data, which is devm allocated and released after driver unbind. Leaving the sysfs files behind can therefore result in accesses to stale driver data. Remove w83791d_group_fanpwm45 during normal teardown as well. This issue was found by manual code inspection.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8, 7.3
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.12% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-98197 scores 7 on CVSS, so a successful attack would be serious — but at 0.12%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
How to fix this CVE
Update your Linux kernel to a patched stable release to prevent potential memory corruption from orphaned sysfs files. The w83791d hardware monitoring driver was leaving fan/pwm 4-5 sysfs attributes behind during driver removal, which could lead to use-after-free conditions when accessed after the driver's devm-managed memory was freed. Install the fixed kernel version for your current branch: 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, or 7.2.8, or contact your Linux distribution for a backported security update.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check your current kernel version: uname -r
- Verify if w83791d module is loaded: lsmod | grep w83791d
- List remaining sysfs attributes after driver removal: ls -la /sys/class/hwmon/ (look for orphaned pwm4/pwm5 entries)
- Compare your kernel version against fixed versions (5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8) using: uname -r and verify it is at or above the patched release for your branch
FAQ
What is CVE-2026-98197?
A memory safety vulnerability in the Linux kernel's w83791d hardware monitoring driver where optional sysfs attributes for fan/pwm pins 4-5 were not properly removed during driver teardown, leaving stale file handles pointing to freed memory.
Is CVE-2026-98197 being actively exploited?
No, this vulnerability is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. It requires local access and specific hardware configuration to trigger.
What versions of Kernel are affected by CVE-2026-98197?
All kernel versions before the patched releases are affected. Fixed versions include 5.10.271, 5.15.222, 6.1.189, 6.6.158, 6.12.112, 6.18.54, 7.2.8, and mainline 7.3 and later.
How do I check if my server is vulnerable to CVE-2026-98197?
Run 'uname -r' to get your kernel version and compare it against the fixed versions listed. If your kernel version is lower than the patched release for your branch, you are vulnerable.
Does Defensia detect CVE-2026-98197?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-98197 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/081e3a78453635fb370b1712809d2af29e60b4c5
- https://git.kernel.org/stable/c/0ff9c7775e51ac6d47b1bb5c46f06b1434fe58a8
- https://git.kernel.org/stable/c/2c381e6e0f033f2df13bd64905e7232c42f49009
- https://git.kernel.org/stable/c/2ccf6c512290a288a2d4d7f076430dfb0c6ee476
- https://git.kernel.org/stable/c/2dd37d00f1f1af8e02ffa70ee573c10fd1a76864
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-98197. Free for 1 server.
Get started free