# CVE-2021-47321: watchdog: Fix possible use-after-free by calling del_timer_sync()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:35.877Z
- Modified: 2026-06-17T04:17:11.387Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 7c25f8c9f67708e6464d2221bc311cbd99e950dc before 58606882ad8ec6c39e0f40344b922921ef94ab4d; from 7c25f8c9f67708e6464d2221bc311cbd99e950dc before ca96b8ea5e74956071154bdb456778cc3027e79f; from 7c25f8c9f67708e6464d2221bc311cbd99e950dc before 8bec568d7518b1504a602ed5376bb322e4dbb270; from 7c25f8c9f67708e6464d2221bc311cbd99e950dc before ecd620e0fb1ff7f78fdb593379b2e6938c99707a; from 7c25f8c9f67708e6464d2221bc311cbd99e950dc before db222f1477ad5692cd454709b714949807e5d111; from 7c25f8c9f67708e6464d2221bc311cbd99e950dc before 66ba9cf929b1c4fabf545bd4c18f6f64e23e46e4; from 7c25f8c9f67708e6464d2221bc311cbd99e950dc before 4c05dac488a660fe2925c047ecb119e7afaaeb1e; from 7c25f8c9f67708e6464d2221bc311cbd99e950dc before 1a053c4d716898a53c2e31c574a70ea0c37044a3; from 7c25f8c9f67708e6464d2221bc311cbd99e950dc before d0212f095ab56672f6f36aabc605bda205e1e0bf; 4.3 (not affected: before 4.3; from 4.4.276 up to 4.4.*; from 4.9.276 up to 4.9.*; from 4.14.240 up to 4.14.*; from 4.19.198 up to 4.19.*; from 5.4.134 up to 5.4.*; from 5.10.52 up to 5.10.*; from 5.12.19 up to 5.12.*; from 5.13.4 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: before 4.4.276; from 4.5 before 4.9.276; from 4.10 before 4.14.240; from 4.15 before 4.19.198; from 4.20 before 5.4.134; from 5.5 before 5.10.52; from 5.11 before 5.12.9; from 5.13 before 5.13.4

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2021-47321](https://www.cve.org/CVERecord?id=CVE-2021-47321), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47321](https://nvd.nist.gov/vuln/detail/CVE-2021-47321), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47321 · Whole record: https://cve.day/CVE-2021-47321.json · Rebuilt by cve.day 2026-11-25T22:58:08.796Z
