В ядре Linux была устранена следующая уязвимость: ALSA: seq: Serialize compat port-info ioctls Нативный секвенсор ioctl path сериализует вызовы обработчика с помощью client->ioctl_mutex, но переведенный путь компата порта-инфо вызывает те же обработчики через snd_seq_kernel_client_ctl(), не принимая этот мьютекс. Это позволяет одновременным запросам compat CREATE_PORT пройти проверку количества портов, прежде чем любой запрос достигнет сериализованной вставки. Вычисленный индекс целочисленного порта может затем превысить диапазон адресного поля и обернуться к существующему индексу.
Последующий разрыв абонента может разрешить дубликат адреса на неправильный порт и получить доступ к освобожденному абоненту. Возьмите ioctl_mutex при отправке преобразованных запросов port-info, соответствующих родному пути ioctl. Все переведенные команды port-info разделяют этот помощник, поэтому их доступ к клиентскому состоянию порта также сериализован.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: ALSA: seq: Serialize compat port-info ioctls The native sequencer ioctl path serializes handler calls with client->ioctl_mutex, but the translated port-info compat path invokes the same handlers through snd_seq_kernel_client_ctl() without taking that mutex. This lets concurrent compat CREATE_PORT requests pass the port-count check before any request reaches the serialized insertion. The computed integer port index can then exceed the address field range and wrap to an existing index. Subsequent subscriber teardown can resolve the duplicate address to the wrong port and access a freed subscriber. Take ioctl_mutex while dispatching converted port-info requests, matching the native ioctl path. All translated port-info commands share this helper, so their accesses to the client port state are serialized as well.