В ядре Linux устранена следующая уязвимость:
net/iucv: возьмите ссылку на сокет, найденный в afiucv_hs_rcv()
afiucv_hs_rcv() ищет целевой сокет в iucv_sk_list.lock,
сбрасывает блокировку, а затем передает сокет в afiucv_hs_callback_*()
обработчики без хранения ссылки. Сокеты AF_IUCV не являются
Защищены RCU и освобождаются синхронно с помощью iucv_sock_kill() ->
sock_put(), поэтому одновременное закрытие может освободить сокет в окне
между read_unlock() и обработчиком, который затем разыменовывает освобожденный
памяти (например, sk->sk_data_ready() в afiucv_hs_callback_syn()).
Возьмите ссылку с помощью sock_hold(), пока сокет все еще находится в списке.
и освободите его с помощью sock_put() после запуска обработчика.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/iucv: take a reference on the socket found in afiucv_hs_rcv() afiucv_hs_rcv() looks up the destination socket under iucv_sk_list.lock, drops the lock, and then passes the socket to the afiucv_hs_callback_*() handlers without holding a reference. AF_IUCV sockets are not RCU-protected and are freed synchronously by iucv_sock_kill() -> sock_put(), so a concurrent close can free the socket in the window between read_unlock() and the handler, which then dereferences freed memory (for example sk->sk_data_ready() in afiucv_hs_callback_syn()). Take a reference with sock_hold() while the socket is still on the list and release it with sock_put() once the handler has run.
Характеристики атаки
Последствия
Строка CVSS v3.1