CVE-2026-98198

hwmon: (pwm-fan) Stop RPM timer before freeing tach data

No CVSS score yet EPSS 0.22%

Published 6 Oct 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2026-98198

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98198 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

hwmon: (pwm-fan) Stop RPM timer before freeing tach data

sample_timer() rearms the RPM timer and accesses the devm-managed ctx->tachs and ctx->pulses_per_revolution arrays. The cleanup action which stops the timer is registered before those arrays are allocated.

Since devres releases entries in reverse order, driver detach can free the arrays before pwm_fan_cleanup() shuts down the timer. A timer expiry in that window accesses the freed tach data.

With a KASAN kernel, a test-only kprobe delayed entry to pwm_fan_cleanup() while normal sysfs unbind ran. Each of three runs reported three four-byte reads and two four-byte writes in sample_timer() after its backing devm allocations had been freed. The helper did not invoke the timer callback, cleanup actions or free functions.

With the fix, three matching unbind runs completed without KASAN, BUG, WARNING, Oops or panic. Instrumentation confirmed that timer retirement completed before the first timer backing allocation was released.

Split timer retirement from the power cleanup and register its devres action after the timer backing data and IRQ actions are installed. This preserves the early power rollback action while ensuring the timer is retired before its backing data is released. Use timer_shutdown_sync() because the callback can rearm itself.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.82% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 01695410d4529e38fea6159fa9f1260c598290b0, before 6f890d1fe8325ac8330473428b9a9d6526de1b32
affected from 01695410d4529e38fea6159fa9f1260c598290b0, before 7743183d8b0f6ba88738805c824a255baae674b9
affected from 01695410d4529e38fea6159fa9f1260c598290b0, before d073d306e587c1f35aaf9c07c42e54a3d5895d8f
affected from 01695410d4529e38fea6159fa9f1260c598290b0, before 1e824fdb14a187ce56697e803b02b1e86243a755
affected from 01695410d4529e38fea6159fa9f1260c598290b0, before a5ce3fe5335a24d0220958c6866830a6d5fa1cc0
affected from 01695410d4529e38fea6159fa9f1260c598290b0, before b48339b0a577783e4590a69e4cd2f2760ce33154
affected from 01695410d4529e38fea6159fa9f1260c598290b0, before 26d5ff79768548efb1e604bb6e8697c101e06269
Other versions: unaffected
Linux
affected 5.12
unaffected before 5.12
unaffected from 5.15.224 up to and including 5.15.*
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.112 up to and including 6.12.*
unaffected from 6.18.54 up to and including 6.18.*
unaffected from 7.2.8 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98198 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98198

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-98198
trivy image --scanners vuln IMAGE | grep CVE-2026-98198

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-98198 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.