В ядре Linux устранена следующая уязвимость:
ax25: исправлены ошибки использования после освобождения, вызванные ax25_ds_del_timer
Когда устройство ax25 отсоединяется, функция ax25_dev_device_down()
вызывает ax25_ds_del_timer() для очистки подчиненного_таймера. Когда
запущен обработчик таймера, ax25_ds_del_timer(), который
вызовы del_timer() в нем вернут результат напрямую. В результате
могут возникнуть ошибки использования после освобождения, один из сценариев
показано ниже:
(Тема 1) | (Тема 2)
| ax25_ds_timeout()
ax25_dev_device_down() |
ax25_ds_del_timer() |
del_timer() |
ax25_dev_put() // БЕСПЛАТНО |
| ax25_dev-> // ИСПОЛЬЗОВАТЬ
Чтобы устранить ошибки при отсоединении устройства, используйте
timer_shutdown_sync(), чтобы остановить таймер.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ax25: fix use-after-free bugs caused by ax25_ds_del_timer When the ax25 device is detaching, the ax25_dev_device_down() calls ax25_ds_del_timer() to cleanup the slave_timer. When the timer handler is running, the ax25_ds_del_timer() that calls del_timer() in it will return directly. As a result, the use-after-free bugs could happen, one of the scenarios is shown below: (Thread 1) | (Thread 2) | ax25_ds_timeout() ax25_dev_device_down() | ax25_ds_del_timer() | del_timer() | ax25_dev_put() //FREE | | ax25_dev-> //USE In order to mitigate bugs, when the device is detaching, use timer_shutdown_sync() to stop the timer.
Характеристики атаки
Последствия
Строка CVSS v3.1
Тип уязвимости (CWE)
Уязвимые продукты 4
| Конфигурация | От (включительно) | До (исключительно) |
|---|---|---|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
2.6.12
|
6.6.26
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
|
6.7
|
6.8.5
|
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
|
— | — |
|
Linux Linux_Kernel
cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
|
— | — |