watchdog: Fix possible use-after-free by calling del_timer_sync()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7c25f8c9f67708e6464d2221bc311cbd99e950dc · < 66ba9cf929b1c4fabf545bd4c18f6f64e23e46e4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
watchdog: Fix possible use-after-free by calling del_timer_sync()
This driver'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 Linux kernel watchdog driver's remove path does not wait for its timer handler to finish. If the handler continues after removal, it can cause a use-after-free. The input does not specify whether exploitation requires local access, authentication, or user interaction.
Engineers running the Linux kernel should check whether their kernel includes the affected watchdog driver; affected versions are not specified.