{"id":"CVE-2026-98198","title":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (pwm-fan) Stop RPM timer before freeing tach data\n\nsample_timer() rearms the RPM timer and accesses the devm-managed\nctx->tachs and ctx->pulses_per_revolution ar…","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (pwm-fan) Stop RPM timer before freeing tach data\n\nsample_timer() rearms the RPM timer and accesses the devm-managed\nctx->tachs and ctx->pulses_per_revolution ar…","severity":"none","vendor":"Linux","product":"Linux","affected":["Linux >= 01695410d4529e38fea6159fa9f1260c598290b0 < 1e824fdb14a187ce56697e803b02b1e86243a755","Linux >= 01695410d4529e38fea6159fa9f1260c598290b0 < a5ce3fe5335a24d0220958c6866830a6d5fa1cc0","Linux >= 01695410d4529e38fea6159fa9f1260c598290b0 < b48339b0a577783e4590a69e4cd2f2760ce33154","Linux >= 01695410d4529e38fea6159fa9f1260c598290b0 < 26d5ff79768548efb1e604bb6e8697c101e06269","Linux 5.12"],"published":"2026-10-06","updated":"2026-10-06","sourceUpdated":"2026-10-06T09:18:05.440","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-98198","references":[{"url":"https://git.kernel.org/stable/c/1e824fdb14a187ce56697e803b02b1e86243a755","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/26d5ff79768548efb1e604bb6e8697c101e06269","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/a5ce3fe5335a24d0220958c6866830a6d5fa1cc0","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/b48339b0a577783e4590a69e4cd2f2760ce33154","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}],"tags":["nvd","cve.org"],"ingestedAt":"2026-10-06T08:50:17.445Z","slug":"CVE-2026-98198","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nhwmon: (pwm-fan) Stop RPM timer before freeing tach data\n\nsample_timer() rearms the RPM timer and accesses the devm-managed\nctx->tachs and ctx->pulses_per_revolution arrays. The cleanup action\nwhich stops the timer is registered before those arrays are allocated.\n\nSince devres releases entries in reverse order, driver detach can free\nthe arrays before pwm_fan_cleanup() shuts down the timer. A timer expiry\nin that window accesses the freed tach data.\n\nWith a KASAN kernel, a test-only kprobe delayed entry to\npwm_fan_cleanup() while normal sysfs unbind ran. Each of three runs\nreported three four-byte reads and two four-byte writes in sample_timer()\nafter its backing devm allocations had been freed. The helper did not\ninvoke the timer callback, cleanup actions or free functions.\n\nWith the fix, three matching unbind runs completed without KASAN, BUG,\nWARNING, Oops or panic. Instrumentation confirmed that timer retirement\ncompleted before the first timer backing allocation was released.\n\nSplit timer retirement from the power cleanup and register its devres\naction after the timer backing data and IRQ actions are installed. This\npreserves the early power rollback action while ensuring the timer is\nretired before its backing data is released. Use timer_shutdown_sync()\nbecause the callback can rearm itself.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}