# CVE-2021-47321: watchdog: Fix possible use-after-free by calling del\_timer\_sync()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-05-21T14:35:35.877Z
- **Modified:** 2026-06-17T04:17:11.387Z

## Who should check

- Anyone running Linux \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 58606882ad8ec6c39e0f40344b922921ef94ab4d; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< ca96b8ea5e74956071154bdb456778cc3027e79f; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 8bec568d7518b1504a602ed5376bb322e4dbb270; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< ecd620e0fb1ff7f78fdb593379b2e6938c99707a; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< db222f1477ad5692cd454709b714949807e5d111; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 66ba9cf929b1c4fabf545bd4c18f6f64e23e46e4; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 4c05dac488a660fe2925c047ecb119e7afaaeb1e; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 1a053c4d716898a53c2e31c574a70ea0c37044a3; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< d0212f095ab56672f6f36aabc605bda205e1e0bf
- Anyone running Linux 4.3

## 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.

## Affected and fixed versions

- Linux: \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 58606882ad8ec6c39e0f40344b922921ef94ab4d; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< ca96b8ea5e74956071154bdb456778cc3027e79f; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 8bec568d7518b1504a602ed5376bb322e4dbb270; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< ecd620e0fb1ff7f78fdb593379b2e6938c99707a; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< db222f1477ad5692cd454709b714949807e5d111; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 66ba9cf929b1c4fabf545bd4c18f6f64e23e46e4; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 4c05dac488a660fe2925c047ecb119e7afaaeb1e; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 1a053c4d716898a53c2e31c574a70ea0c37044a3; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< d0212f095ab56672f6f36aabc605bda205e1e0bf (cvelist)
- Linux: 4.3 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47321. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47321.md
Affected: Linux >= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, < 58606882ad8ec6c39e0f40344b922921ef94ab4d; >= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, < ca96b8ea5e74956071154bdb456778cc3027e79f; >= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, < 8bec568d7518b1504a602ed5376bb322e4dbb270; >= 7c25f8c9f67708e6464d222…
Fixed in: Linux 58606882ad8ec6c39e0f40344b922921ef94ab4d, Linux 8bec568d7518b1504a602ed5376bb322e4dbb270, Linux 66ba9cf929b1c4fabf545bd4c18f6f64e23e46e4, Linux 4c05dac488a660fe2925c047ecb119e7afaaeb1e, Linux 1a053c4d716898a53c2e31c574a70ea0c37044a3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47321 being exploited?

There is no confirmed exploitation: CVE-2021-47321 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47321?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47321?

Linux \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 58606882ad8ec6c39e0f40344b922921ef94ab4d; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< ca96b8ea5e74956071154bdb456778cc3027e79f; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 8bec568d7518b1504a602ed5376bb322e4dbb270; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< ecd620e0fb1ff7f78fdb593379b2e6938c99707a; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< db222f1477ad5692cd454709b714949807e5d111; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 66ba9cf929b1c4fabf545bd4c18f6f64e23e46e4; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 4c05dac488a660fe2925c047ecb119e7afaaeb1e; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< 1a053c4d716898a53c2e31c574a70ea0c37044a3; \>= 7c25f8c9f67708e6464d2221bc311cbd99e950dc, \< d0212f095ab56672f6f36aabc605bda205e1e0bf; Linux 4.3.

### Is there a fix for CVE-2021-47321?

Yes. Fixed in Linux 58606882ad8ec6c39e0f40344b922921ef94ab4d, Linux 8bec568d7518b1504a602ed5376bb322e4dbb270, Linux 66ba9cf929b1c4fabf545bd4c18f6f64e23e46e4, Linux 4c05dac488a660fe2925c047ecb119e7afaaeb1e, Linux 1a053c4d716898a53c2e31c574a70ea0c37044a3. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47321?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/58606882ad8ec6c39e0f40344b922921ef94ab4d>
- patch: <https://git.kernel.org/stable/c/ca96b8ea5e74956071154bdb456778cc3027e79f>
- patch: <https://git.kernel.org/stable/c/8bec568d7518b1504a602ed5376bb322e4dbb270>
- patch: <https://git.kernel.org/stable/c/ecd620e0fb1ff7f78fdb593379b2e6938c99707a>
- patch: <https://git.kernel.org/stable/c/db222f1477ad5692cd454709b714949807e5d111>
- patch: <https://git.kernel.org/stable/c/66ba9cf929b1c4fabf545bd4c18f6f64e23e46e4>
- patch: <https://git.kernel.org/stable/c/4c05dac488a660fe2925c047ecb119e7afaaeb1e>
- patch: <https://git.kernel.org/stable/c/1a053c4d716898a53c2e31c574a70ea0c37044a3>
- patch: <https://git.kernel.org/stable/c/d0212f095ab56672f6f36aabc605bda205e1e0bf>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47321>

HTML: <https://flawdb.com/CVE-2021-47321> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47321>
