watchdog: sc520_wdt: Fix possible use-after-free in wdt_turnoff()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < a173e3b62cf6dd3c4a0a10c8a82eedfcae81a566| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
watchdog: sc520_wdt: Fix possible use-after-free in wdt_turnoff()
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 sc520_wdt driver's remove path can finish while its timer handler is still running, resulting in a use-after-free. The input does not establish whether an attacker can trigger this condition or specify any access or user-interaction requirements.
Teams running Linux kernels with the sc520_wdt driver should check their exposure; affected versions are not specified.