What’s Vulnerable › Vulnerabilities

CVE-2021-47323: watchdog: sc520_wdt: Fix possible use-after-free in wdt_turnoff()

Description

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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.240, 4.19.198, 4.4.276, 4.9.276. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-47323 or the next vulnerability affects your stack