В ядре Linux была устранена следующая уязвимость: wifi: mt76: mt7996: отсоединить поток TWT, если MCU отклоняет соглашение mt7996_mac_add_twt_setup() связывает новый поток в dev->twt_list, прежде чем попросить MCU добавить соглашение, но выходит без отсоединения потока, если запрос не выполняется. Маски с идентификатором потока и таблицей выполняются только после успеха MCU, поэтому все еще связанный поток невидим для путей разбора с помощью маски. Если станция повторно пытается установить, тот же самый слот очищается, и его встроенный узел списка повторно инициализируется, пока он все еще связан, повреждая dev->twt_list.
Если станция вместо этого отсоединяется, разрыв пропускает поток, и хранилище станции может быть освобождено, пока узел остается связанным. Более поздний процесс планирования или отладки twt_stats может затем удалить ссылку на свободный поток, что приводит к use-after-free. Unlink поток, когда MCU отвергает соглашение.
Это восстанавливает список до состояния предварительного запроса, оставляя неизмененную маску и учет соглашения нетронутыми.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: wifi: mt76: mt7996: unlink TWT flow if the MCU rejects the agreement mt7996_mac_add_twt_setup() links a new flow into dev->twt_list before asking the MCU to add the agreement, but exits without unlinking the flow if the request fails. The flow-ID and table masks are only committed after MCU success, so the still-linked flow is invisible to the mask-gated teardown paths. If the station retries the setup, the same slot is cleared and its embedded list node reinitialized while it is still linked, corrupting dev->twt_list. If the station disassociates instead, teardown skips the flow and station storage can be freed while the node remains linked. A later scheduling or debugfs twt_stats walk can then dereference the freed flow, resulting in a use-after-free. Unlink the flow when the MCU rejects the agreement. This restores the list to its pre-request state while leaving the unchanged mask and agreement accounting untouched.
Характеристики атаки
Последствия
Строка CVSS v3.1