CVE-2021-47324

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

HIGH
8.8
CVSS Score
Published: May 21, 2024 at 02:35 PM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 1%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.4.2762.6.12 ≤ v < 4.14.2402.6.12 ≤ v < 4.19.1982.6.12 ≤ v < 4.4.2762.6.12 ≤ v < 4.9.2762.6.12 ≤ v < 5.10.522.6.12 ≤ v < 5.12.192.6.12 ≤ v < 5.13.42.6.12 ≤ v < 5.142.6.12 ≤ v < 5.4.1344.10 ≤ v < 4.14.2404.15 ≤ v < 4.19.1984.20 ≤ v < 5.4.1344.5 ≤ v < 4.9.2765.11 ≤ v < 5.12.195.13 ≤ v < 5.13.45.5 ≤ v < 5.10.520 1da177e4c3f41da177e4c3f41da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.12
Vendor states this is fixed in 0ac50a76cf3c (fixed)
Vendor states this is fixed in 0ac50a76cf3cd63db000648b3b19f3f98b8aaa76 (fixed)
Vendor states this is fixed in 146cc288fb80 (fixed)
Vendor states this is fixed in 146cc288fb80c662c9c35e7bc58325d1ac0a7875 (fixed)
Vendor states this is fixed in 63a3dc24bd05 (fixed)
Vendor states this is fixed in 63a3dc24bd053792f84cb4eef0168b1266202a02 (fixed)
Vendor states this is fixed in 862f2b5a7c38 (fixed)
Vendor states this is fixed in 862f2b5a7c38762ac9e369daefbf361a91aca685 (fixed)
Vendor states this is fixed in 8adbbe6c86bb (fixed)
Vendor states this is fixed in 8adbbe6c86bb13e14f8a19e036ae5f4f5661fd90 (fixed)
Vendor states this is fixed in a397cb4576fc (fixed)
Vendor states this is fixed in a397cb4576fc2fc802562418b3a50b8f67d60d31 (fixed)
Vendor states this is fixed in b4ebf4a4692e (fixed)
Vendor states this is fixed in b4ebf4a4692e84163a69444c70ad515de06e2259 (fixed)
Vendor states this is fixed in c08a6b31e491 (fixed)
Vendor states this is fixed in c08a6b31e4917034f0ed0cb457c3bb209576f542 (fixed)
Vendor states this is fixed in dc9403097be5 (fixed)
Vendor states this is fixed in dc9403097be52d57a5c9c35efa9be79d166a78af (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 4.14.240 (unaffected)
Vendor states this is fixed in 4.19.198 (unaffected)
Vendor states this is fixed in 4.4.276 (unaffected)
Vendor states this is fixed in 4.9.276 (unaffected)
Vendor states this is fixed in 5.10.52 (unaffected)
Vendor states this is fixed in 5.12.19 (unaffected)
Vendor states this is fixed in 5.13.4 (unaffected)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.4.134 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0ac50a76cf3cd63db000648b3b19f3f98b8aaa76
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/146cc288fb80c662c9c35e7bc58325d1ac0a7875
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/63a3dc24bd053792f84cb4eef0168b1266202a02
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/862f2b5a7c38762ac9e369daefbf361a91aca685
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8adbbe6c86bb13e14f8a19e036ae5f4f5661fd90
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a397cb4576fc2fc802562418b3a50b8f67d60d31
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b4ebf4a4692e84163a69444c70ad515de06e2259
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c08a6b31e4917034f0ed0cb457c3bb209576f542

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.8HIGHCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card