Ad

CVE-2026-98773

NONE EPSS 0.17%
Обновлено 30 октября 2026
Linux
Параметр Значение
Поставщик Linux
Публичный эксплойт Нет

В ядре Linux устранена следующая уязвимость: USB: cdc-acm: skip URB restart in port_shutdown if disconnected acm_port_shutdown() вызывается из механизма tty-port всякий раз, когда последний пользователь закрывает порт. acm_disconnect() устанавливает acm->disconnected и вызывает tty_port_tty_vhangup(), что в конечном итоге вызывает port_shutdown(). В этот момент acm_disconnect() уже назвал acm_poison_urbs() и собирается освободить управление и прочитать URBs. Тем не менее, acm_port_shutdown() безоговорочно вызывает acm_unpoison_urbs() и, когда ALWAYS_POLL_CTRL причуда установлена, немедленно повторно отправляет ctrlurb и все читают URBs.

Если acm_disconnect(), то освобождает эти URBs и их DMA буферы, пока они находятся в полете, результат use-after-free в acm_ctrl_irq() или acm_read_bulk_callback(), доступ к освобожденной памяти DMA. Исправьте, проверив acm->disconnected после слива задержанного якоря и возвращения рано: если мы находимся на пути отключения, URBs должен оставаться отравленным и не должен быть повторно отправлен. Ранний возврат размещается после цикла слива с задержкой якоря, потому что этот цикл только отменяет учет на стороне записи (wb->use false и autopm счетчик) и не касается аппаратного пути.

Показать оригинальное описание (EN)

In the Linux kernel, the following vulnerability has been resolved: USB: cdc-acm: skip URB restart in port_shutdown if disconnected acm_port_shutdown() is called from the tty-port machinery whenever the last user closes the port. acm_disconnect() sets acm->disconnected and calls tty_port_tty_vhangup(), which eventually triggers port_shutdown(). At that point acm_disconnect() has already called acm_poison_urbs() and is about to free the control and read URBs. However, acm_port_shutdown() unconditionally calls acm_unpoison_urbs() and, when the ALWAYS_POLL_CTRL quirk is set, immediately re-submits the ctrlurb and all read URBs. If the concurrent acm_disconnect() then frees those URBs and their DMA buffers while they are in-flight, the result is a use-after-free in acm_ctrl_irq() or acm_read_bulk_callback() accessing the freed DMA memory. Fix by checking acm->disconnected after draining the delayed anchor and returning early: if we are in a disconnect path the URBs must remain poisoned and must not be resubmitted. The early return is placed after the delayed-anchor drain loop because that loop only cancels write-side accounting (wb->use = false and autopm counter) and does not touch the hardware path.