CVE-2021-47323
watchdog: sc520_wdt: Fix possible use-after-free in wdt_turnoff()
Check your servers for CVE-2021-47323
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-47323 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: 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.
Severity (CVSS)
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
- CWE-416 Use After Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 0015581a79bbf8e521f85dddb7d3e4a66b9f51d4 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before b4565a8a2d6bffb05bfbec11399d261ec16fe373 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 2aef07017fae21c3d8acea9656b10e3b9c0f1e04 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 522e75ed63f67e815d4ec0deace67df22d9ce78e affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 7c56c5508dc20a6b133bc669fc34327a6711c24c affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before a173e3b62cf6dd3c4a0a10c8a82eedfcae81a566 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before b3c41ea5bc34d8c7b19e230d80e0e555c6f5057d affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before f0feab82f6a0323f54d85e8b512a2be64f83648a affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 90b7c141132244e8e49a34a4c1e445cce33e07f4
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-47323 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47323
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-47323
trivy image --scanners vuln IMAGE | grep CVE-2021-47323
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/0015581a79bbf8e521f85dddb7d3e4a66b9f51d4 git.kernel.org
- https://git.kernel.org/stable/c/b4565a8a2d6bffb05bfbec11399d261ec16fe373 git.kernel.org
- https://git.kernel.org/stable/c/2aef07017fae21c3d8acea9656b10e3b9c0f1e04 git.kernel.org
- https://git.kernel.org/stable/c/522e75ed63f67e815d4ec0deace67df22d9ce78e git.kernel.org
- https://git.kernel.org/stable/c/7c56c5508dc20a6b133bc669fc34327a6711c24c git.kernel.org
- https://git.kernel.org/stable/c/a173e3b62cf6dd3c4a0a10c8a82eedfcae81a566 git.kernel.org
- https://git.kernel.org/stable/c/b3c41ea5bc34d8c7b19e230d80e0e555c6f5057d git.kernel.org
- https://git.kernel.org/stable/c/f0feab82f6a0323f54d85e8b512a2be64f83648a git.kernel.org
- https://git.kernel.org/stable/c/90b7c141132244e8e49a34a4c1e445cce33e07f4 git.kernel.org
Source: the record CVE-2021-47323 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.
Vulnpocalypse