CVE-2021-47323
JSON

8.8high

watchdog: sc520_wdt: Fix possible use-after-free in wdt_turnoff()

Severity
8.8high CVSS:3.1 by CISA-ADP
Exploit likelihood
1.16% (higher than 68% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0015581a79bbf8e521f85dddb7d3e4a66b9f51d4, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before b4565a8a2d6bffb05bfbec11399d261ec16fe373, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2aef07017fae21c3d8acea9656b10e3b9c0f1e04, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 522e75ed63f67e815d4ec0deace67df22d9ce78e, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 7c56c5508dc20a6b133bc669fc34327a6711c24c, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a173e3b62cf6dd3c4a0a10c8a82eedfcae81a566, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before b3c41ea5bc34d8c7b19e230d80e0e555c6f5057d, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f0feab82f6a0323f54d85e8b512a2be64f83648a and 2 more
Not affected: before 2.6.12, 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.*
CVE List
linux linux_kernelfrom 1da177e4c3f4 before 0015581a79bb, from 1da177e4c3f4 before b4565a8a2d6b, from 1da177e4c3f4 before 2aef07017fae, from 1da177e4c3f4 before 522e75ed63f6, from 1da177e4c3f4 before 7c56c5508dc2, from 1da177e4c3f4 before a173e3b62cf6, from 1da177e4c3f4 before b3c41ea5bc34, from 1da177e4c3f4 before f0feab82f6a0 and 9 more
Not affected: from 4.4.276 before 4.5, from 4.9.276 before 4.10, from 4.14.240 before 4.15, from 4.19.198 before 4.20, from 5.10.52 before 5.11, from 5.12.19 before 5.13
CVE List, NVD

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: watchdog: sc520_wdt: corrige posible use after free en wdt_turnoff(). La ruta de eliminación de este módulo llama a del_timer(). Sin embargo, esa función no espera hasta que finalice el controlador del temporizador. Esto significa que es posible que el controlador del temporizador aún esté ejecutándose después de que haya finalizado la función de eliminación del controlador, lo que daría como resultado un use after free. Para solucionarlo, llame a del_timer_sync(), lo que garantiza que el controlador del temporizador haya finalizado y no pueda reprogramarse.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-47323 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47323 changed 2026-06-17Public domain