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

CVE-2026-98198
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.17 % · centile 7 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Received

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.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 01695410d4529e38fea6159fa9f1260c598290b0 < 6f890d1fe8325ac8330473428b9a9d6526de1b32 ; affected 01695410d4529e38fea6159fa9f1260c598290b0 < 7743183d8b0f6ba88738805c824a255baae674b9 ; affected 01695410d4529e38fea6159fa9f1260c598290b0 < d073d306e587c1f35aaf9c07c42e54a3d5895d8f ; affected 01695410d4529e38fea6159fa9f1260c598290b0 < 1e824fdb14a187ce56697e803b02b1e86243a755 ; affected 01695410d4529e38fea6159fa9f1260c598290b0 < a5ce3fe5335a24d0220958c6866830a6d5fa1cc0 ; affected 01695410d4529e38fea6159fa9f1260c598290b0 < b48339b0a577783e4590a69e4cd2f2760ce33154
Linux · Linuxaffected 5.12 ; unaffected 0 < 5.12 ; unaffected 5.15.224 ≤ 5.15.* ; unaffected 6.1.191 ≤ 6.1.* ; unaffected 6.6.160 ≤ 6.6.* ; unaffected 6.12.112 ≤ 6.12.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD