CVE-2021-47324

watchdog: Fix possible use-after-free in wdt_startup()

High · published May 21, 2024

CVSS v3.1
8.8
EPSS
1%
Percentile
66.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
8.8 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01160 · 66.9th percentile
Published
2024-05-21T14:35Z
EPSS history
Timeline
  • 21 MAY 14:35Z
    watchdog: Fix possible use-after-free in wdt_startup()
    cvelistv5