CVE-2021-47324

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

8.8 high EPSS 1.16%

Published 21 May 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2021-47324

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47324 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

8.8 high CVSS 3.1 from CISA (ADP)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 1.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 68.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 21 May 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 63a3dc24bd053792f84cb4eef0168b1266202a02
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 862f2b5a7c38762ac9e369daefbf361a91aca685
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 0ac50a76cf3cd63db000648b3b19f3f98b8aaa76
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before dc9403097be52d57a5c9c35efa9be79d166a78af
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 146cc288fb80c662c9c35e7bc58325d1ac0a7875
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before a397cb4576fc2fc802562418b3a50b8f67d60d31
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before b4ebf4a4692e84163a69444c70ad515de06e2259
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 8adbbe6c86bb13e14f8a19e036ae5f4f5661fd90
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before c08a6b31e4917034f0ed0cb457c3bb209576f542
Other versions: unaffected
Linux
affected 2.6.12
unaffected before 2.6.12
unaffected from 4.4.276 up to and including 4.4.*
unaffected from 4.9.276 up to and including 4.9.*
unaffected from 4.14.240 up to and including 4.14.*
unaffected from 4.19.198 up to and including 4.19.*
unaffected from 5.4.134 up to and including 5.4.*
unaffected from 5.10.52 up to and including 5.10.*
unaffected from 5.12.19 up to and including 5.12.*
unaffected from 5.13.4 up to and including 5.13.*
unaffected 5.14 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47324 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47324

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47324
trivy image --scanners vuln IMAGE | grep CVE-2021-47324

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47324 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.