Ad

CVE-2026-99783

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

В ядре Linux устранена следующая уязвимость: net/9p/usbg: Fix use-after-free в disable_usb9pfs() disable_usb9pfs() освобождает объекты IN и OUT usb_request перед отключением соответствующих конечных точек. Если какой-либо запрос все еще стоит в очереди, более поздний вызов usb_ep_disable () отменяет очередь конечной точки, и драйвер UDC все еще может получить доступ к уже освобожденному запросу. С dummy_hcd и KASAN это воспроизводится путем очереди запроса OUT, а затем отсоединения гаджета configfs: BUG: KASAN: slab-use-after-free в dummy_disable+0x2b4/0x300 Read размера 8 в addr ffff888009702400 по задаче sh/1 usb_ep_disable+0x8e/0x1f0 usb9pfs_func_unbind+0x193/0x350 gadget_dev_desc_UDC_store+0x135/0x280 dummy_free_request () также предупреждает, потому что запрос освобождается, в то время как его запись в очереди все еще связана.

Отключите обе конечные точки перед освобождением объектов запроса. Это позволяет usb_ep_disable() отменить любые поставленные в очередь передачи и вызвать обратный вызов завершения, пока хранилище запроса по-прежнему действительно. Объекты запроса освобождаются только после того, как они были удалены из очередей конечных точек.

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

In the Linux kernel, the following vulnerability has been resolved: net/9p/usbg: Fix use-after-free in disable_usb9pfs() disable_usb9pfs() frees the IN and OUT usb_request objects before it disables the corresponding endpoints. If either request is still queued, the later usb_ep_disable() call cancels the endpoint queue and the UDC driver can still access the already freed request. With dummy_hcd and KASAN, this is reproducible by queueing the OUT request and then disconnecting the configfs gadget: BUG: KASAN: slab-use-after-free in dummy_disable+0x2b4/0x300 Read of size 8 at addr ffff888009702400 by task sh/1 usb_ep_disable+0x8e/0x1f0 usb9pfs_func_unbind+0x193/0x350 gadget_dev_desc_UDC_store+0x135/0x280 dummy_free_request() also warns because the request is freed while its queue entry is still linked. Disable both endpoints before freeing the request objects. This lets usb_ep_disable() cancel any queued transfers and invoke the completion callback while the request storage is still valid. The request objects are then freed only after they have been removed from the endpoint queues.