В ядре Linux устранена следующая уязвимость:
Bluetooth: ISO: избегать взаимоблокировок в iso_sock_timeout
iso_sock_timeout() принимает lock_sock, поэтому синхронизируйте отключение таймера во время
удерживание этого замка может привести к тупику.
iso_sock_timeout() также может выполняться одновременно с iso_conn_del(), что
приводит к УАФ
[Задача 1] [Задача hddev->workqueue]
iso_sock_timeout iso_conn_del
iso_conn_hold_unless_zero iso_chan_del
`------------> iso_conn_put
вызывающий абонент освобождает hcon
iso_conn_put
iso_conn_free
conn->hcon->iso_data = NULL; /* УАФ */
Исправьте взаимоблокировку, удалив отключение из разделов lock_sock.
Переместите таймер с iso_conn на iso_pinfo, чтобы отделить его от iso_conn.
который, возможно, потребуется освободить в разделе lock_sock. Преобразовать некоторые из
clear_timer для отключения_таймера.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: ISO: avoid deadlocks in iso_sock_timeout iso_sock_timeout() takes lock_sock, so sync disabling the timer while holding that lock may deadlock. iso_sock_timeout() may also run concurrently with iso_conn_del(), which leads to UAF [Task 1] [Task hdev->workqueue] iso_sock_timeout iso_conn_del iso_conn_hold_unless_zero iso_chan_del `------------> iso_conn_put caller frees hcon iso_conn_put iso_conn_free conn->hcon->iso_data = NULL; /* UAF */ Fix the deadlock by removing the disable from the lock_sock sections. Move the timer from iso_conn to iso_pinfo to decouple it from iso_conn which may need to be freed in lock_sock section. Convert some of the clear_timer to disable_timer.
Характеристики атаки
Последствия
Строка CVSS v3.1