7.7high
mISDN: fix possible use-after-free in HFC_cleanup()
- Severity
- 7.7high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.34% (higher than 20% of CVEs)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: mISDN: fix possible use-after-free in HFC_cleanup() 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 package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 87c5fa1bb42624254a2013cbbc3b170d6017f5d6 before 49331c07ef0f8fdfa42b30ba6a83a657b29d7fbe, from 87c5fa1bb42624254a2013cbbc3b170d6017f5d6 before 54ff3202928952a100c477248e65ac6db01258a7, from 87c5fa1bb42624254a2013cbbc3b170d6017f5d6 before 7867ddc5f3de7f289aee63233afc0df4b62834c5, from 87c5fa1bb42624254a2013cbbc3b170d6017f5d6 before 5f2818185da0fe82a932f0856633038b66faf124, from 87c5fa1bb42624254a2013cbbc3b170d6017f5d6 before 3ecd228c636ee17c14662729737fa07242a93cb0, from 87c5fa1bb42624254a2013cbbc3b170d6017f5d6 before b7ee9ae1e0cf55a037c4a99af2acc5d78cb7802d, from 87c5fa1bb42624254a2013cbbc3b170d6017f5d6 before 61370ff07e0acc657559a8fac02551dfeb9d3020, from 87c5fa1bb42624254a2013cbbc3b170d6017f5d6 before ed7c3739d0a07e2ec3ccbffe7e93cea01c438cda and 2 more Not affected: before 2.6.29, 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.133 up to 5.4.* | CVE List |
| linux linux_kernel | from 1da177e4c3f4 before 49331c07ef0f, from 1da177e4c3f4 before 54ff32029289, from 1da177e4c3f4 before 7867ddc5f3de, from 1da177e4c3f4 before 5f2818185da0, from 1da177e4c3f4 before 3ecd228c636e, from 1da177e4c3f4 before b7ee9ae1e0cf, from 1da177e4c3f4 before 61370ff07e0a, from 1da177e4c3f4 before ed7c3739d0a0 and 9 more Not affected: 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.133 up to 5.4.*, from 5.10.51 up to 5.10.* | CVE List, NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: mISDN: fix possible use-after-free in HFC_cleanup() 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: mISDN: corrige posible use after free en HFC_cleanup(). 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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47356 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47356 changed 2026-06-17 | Public domain |