В ядре Linux была устранена следующая уязвимость: watchwatch: cpu5wdt.c: Fix use-after-free bug, вызванная cpu5wdt_trigger When Модуль cpu5wdt удаляется, исходный код использует del_timer() для деактивации таймера. Если обработчик таймера запущен, del_timer () не может остановить его и вернется напрямую. Если область порта высвобождается release_region(), а затем обработчик таймера cpu5wdt_trigger() вызывает outb(), чтобы написать в область, которая высвобождается, произойдет ошибка use-after-free.
Измените del_timer() на timer_shutdown_sync(), чтобы обработчик таймера мог быть завершен до освобождения региона порта.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: watchdog: cpu5wdt.c: Fix use-after-free bug caused by cpu5wdt_trigger When the cpu5wdt module is removing, the origin code uses del_timer() to de-activate the timer. If the timer handler is running, del_timer() could not stop it and will return directly. If the port region is released by release_region() and then the timer handler cpu5wdt_trigger() calls outb() to write into the region that is released, the use-after-free bug will happen. Change del_timer() to timer_shutdown_sync() in order that the timer handler could be finished before the port region is released.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 2
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
3.8
|
6.6.33
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.9.4
|