watchdog: Fix possible use-after-free in wdt_startup()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < a397cb4576fc2fc802562418b3a50b8f67d60d31| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
watchdog: Fix possible use-after-free in wdt_startup()
This module's remove path calls del_timer(). However, that function does not wait until the timer handler finishes. This means that the timer handler may still be running after the driver's remove function has finished, which would result in a use-after-free.
Fix by calling del_timer_sync(), which makes sure the timer handler has finished, and unable to re-schedule itself.
From the CVE record · Linux
The watchdog driver's removal path can leave a timer handler running after removal finishes, causing a use-after-free. The input does not specify how an attacker could trigger this condition or whether access, authentication, or user interaction is required.
Engineers running the Linux kernel should check their watchdog driver; affected versions are not specified.