В ядре Linux устранена следующая уязвимость:
net/iucv: исправлено использование после освобождения отрезанного iucv_path
af_iucv ставит в очередь уведомления о еще не полученных сообщениях в iucv->message_q,
каждый из которых содержит необработанный указатель на iucv_path соединения. Когда сверстник
разрывает соединение, iucv_sever_path() освобождает этот путь с помощью
iucv_path_free(), но оставляет уведомления в очереди. Более поздний метод Recvmsg()
сливает message_q через iucv_process_message_q() и передает устаревший путь
message_receive() — использование после освобождения освобожденного iucv_path.
Отбрасывать уведомления в очереди при разрыве пути; как только путь будет ушли, их больше нельзя получить. Это также освобождает уведомления утечка произошла, когда сокет закрыт, а сообщения все еще находились в очереди.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: net/iucv: fix use-after-free of a severed iucv_path af_iucv queues not-yet-received message notifications on iucv->message_q, each holding a raw pointer to the connection's iucv_path. When the peer severs the connection, iucv_sever_path() frees that path with iucv_path_free() but leaves the notifications queued. A later recvmsg() drains message_q via iucv_process_message_q() and hands the stale path to message_receive() -- a use-after-free of the freed iucv_path. Drop the queued notifications when the path is severed; once the path is gone they can no longer be received. This also frees the notifications leaked when a socket is closed with messages still queued.
Характеристики атаки
Последствия
Строка CVSS v3.1