watchdog: at91sam9_wdt: prevent timer rearm during teardown
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5161b31dc39a6d6dadc95f298de48a725b73ada8 · < 8444d66aa6b6e7fe0a26fa1a00a11cb4d0523783| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
watchdog: at91sam9_wdt: prevent timer rearm during teardown
at91_ping() rearms the watchdog timer from its callback. timer_delete() neither waits for a running callback nor prevents it from rearming the timer, so probe failure or driver removal can leave the timer accessing the devm-allocated at91wdt after it has been freed.
Use timer_shutdown_sync() on both teardown paths. It waits for a running callback and rejects any attempt by the callback to rearm the timer.
From the CVE record · Linux
The Linux kernel’s at91sam9_wdt watchdog driver can leave a timer running after probe failure or driver removal. The timer may then access freed memory; the input does not specify an attacker path, authentication requirement, or user interaction.
Engineers running Linux kernels with the at91sam9_wdt watchdog driver should check whether their kernel includes the fix; affected versions are not specified.