CVE-2021-47321
watchdog: Fix possible use-after-free by calling del_timer_sync()
Check your servers for CVE-2021-47321
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-47321 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
watchdog: Fix possible use-after-free by calling del_timer_sync()
This driver'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.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 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
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 7c25f8c9f67708e6464d2221bc311cbd99e950dc, before 58606882ad8ec6c39e0f40344b922921ef94ab4d affected from 7c25f8c9f67708e6464d2221bc311cbd99e950dc, before ca96b8ea5e74956071154bdb456778cc3027e79f affected from 7c25f8c9f67708e6464d2221bc311cbd99e950dc, before 8bec568d7518b1504a602ed5376bb322e4dbb270 affected from 7c25f8c9f67708e6464d2221bc311cbd99e950dc, before ecd620e0fb1ff7f78fdb593379b2e6938c99707a affected from 7c25f8c9f67708e6464d2221bc311cbd99e950dc, before db222f1477ad5692cd454709b714949807e5d111 affected from 7c25f8c9f67708e6464d2221bc311cbd99e950dc, before 66ba9cf929b1c4fabf545bd4c18f6f64e23e46e4 affected from 7c25f8c9f67708e6464d2221bc311cbd99e950dc, before 4c05dac488a660fe2925c047ecb119e7afaaeb1e affected from 7c25f8c9f67708e6464d2221bc311cbd99e950dc, before 1a053c4d716898a53c2e31c574a70ea0c37044a3 affected from 7c25f8c9f67708e6464d2221bc311cbd99e950dc, before d0212f095ab56672f6f36aabc605bda205e1e0bf
Other versions: unaffected
|
| Linux |
affected 4.3 unaffected before 4.3 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-47321 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47321
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-47321
trivy image --scanners vuln IMAGE | grep CVE-2021-47321
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
- https://git.kernel.org/stable/c/58606882ad8ec6c39e0f40344b922921ef94ab4d git.kernel.org
- https://git.kernel.org/stable/c/ca96b8ea5e74956071154bdb456778cc3027e79f git.kernel.org
- https://git.kernel.org/stable/c/8bec568d7518b1504a602ed5376bb322e4dbb270 git.kernel.org
- https://git.kernel.org/stable/c/ecd620e0fb1ff7f78fdb593379b2e6938c99707a git.kernel.org
- https://git.kernel.org/stable/c/db222f1477ad5692cd454709b714949807e5d111 git.kernel.org
- https://git.kernel.org/stable/c/66ba9cf929b1c4fabf545bd4c18f6f64e23e46e4 git.kernel.org
- https://git.kernel.org/stable/c/4c05dac488a660fe2925c047ecb119e7afaaeb1e git.kernel.org
- https://git.kernel.org/stable/c/1a053c4d716898a53c2e31c574a70ea0c37044a3 git.kernel.org
- https://git.kernel.org/stable/c/d0212f095ab56672f6f36aabc605bda205e1e0bf git.kernel.org
Source: the record CVE-2021-47321 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse