Ad

CVE-2026-74677

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

В ядре Linux устранена следующая уязвимость: net: usb: ipheth: исправить UAF Carrier_work при отключении ipheth_sndbulk_callback() повторно запускает проверку несущей на любом ненулевой статус URB: еще Schedule_delayed_work(&dev->carrier_work, 0); Ничто не связывает это с включенным интерфейсом, поэтому работу можно поставить на охрану. снова после того, как ipheth_close() уже истощил его, и оставайтесь вооруженными до тех пор, пока netdev, чья частная область встраивает его, не будет освобожден. При отключении от TX URB в полете ipheth_disconnect() истощает работу через unregister_netdev() -> ipheth_close() -> cancel_delayed_work_sync() и только после этого вызывает ipheth_kill_urbs(). usb_kill_urb() завершает URB TX в полете с помощью -ENOENT, поэтому ipheth_sndbulk_callback() запускается после слива и перевооружения перевозчик_работа. Эта же доработка и перевооружает работу, если интерфейс только сбит во время полета TX URB, и ipheth_carrier_check_work() затем продолжает повторно ставить себя в очередь один раз в второй. unregister_netdev() не вызывает ipheth_close() для уже отключенный интерфейс, поэтому ничто не истощает его при последующем отключении либо.

В обоих случаях free_netdev() освобождает netdev, в то время как Carrier_work все еще находится в ожидании, и разыменования ipheth_carrier_check_work() освобождены память. Привяжите работу к состоянию интерфейса вместо того, чтобы гоняться за завершением: отключите его в ipheth_close() и включите в ipheth_open(), чтобы Schedule_delayed_work() из завершения URB не работает всякий раз, когда интерфейс не активен. Disable_delayed_work_sync() также ожидает работающий экземпляр, поэтому он полностью заменяет cancel_delayed_work_sync() оно занимает место. Работа начинается с отключения в ipheth_probe(). поэтому включение/отключение учитывает баланс с первого открытия.

Воспроизводится под KASAN на linux-next (next-20260731) с dummy_hcd и raw-gadget, заменяющий устройство, прокладывающий второй путь выше ( интерфейс уже отключен, поэтому unregister_netdev() не вызывает ipheth_close()): 15 из 15 непропатченных загрузок сообщают о slab-use-after-free в __run_timers(), освобожденный с помощью ipheth_disconnect() и повторно активированный из ipheth_sndbulk_callback() черезqueue_delayed_work_on(). тот же триггер на ядре, отличающемся только этим патчем, сообщает 0 из 15, и проверка носителя по-прежнему работает в циклах открытия/закрытия. Репродуктору необходимо подключенное USB-устройство, которое перестанет выгружать большую часть данных на ВЫХОД. плюс ссылку вниз и отключить, управляется от имени root. Это не привилегия пересечение границ и не было разработано никакого примитива эксплойта.

Найден пользователем 0sec (https://0sec.ai).

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

In the Linux kernel, the following vulnerability has been resolved: net: usb: ipheth: fix carrier_work UAF on disconnect ipheth_sndbulk_callback() re-arms the carrier-check work on any non-zero URB status: else schedule_delayed_work(&dev->carrier_work, 0); Nothing ties that to the interface being up, so the work can be armed again after ipheth_close() has already drained it, and stay armed until the netdev whose private area embeds it is freed. On unplug with a TX URB in flight, ipheth_disconnect() drains the work through unregister_netdev() -> ipheth_close() -> cancel_delayed_work_sync() and only then calls ipheth_kill_urbs(). usb_kill_urb() completes the in-flight TX URB with -ENOENT, so ipheth_sndbulk_callback() runs after the drain and re-arms carrier_work. The same completion also re-arms the work if the interface is only brought down while a TX URB is in flight, and ipheth_carrier_check_work() then keeps re-queueing itself once a second. unregister_netdev() does not call ipheth_close() for an already-down interface, so nothing drains it on the later unplug either. In both cases free_netdev() frees the netdev while carrier_work is still pending, and ipheth_carrier_check_work() dereferences freed memory. Tie the work to the interface state instead of chasing the completion: disable it in ipheth_close() and enable it in ipheth_open(), so a schedule_delayed_work() from the URB completion is a no-op whenever the interface is not up. disable_delayed_work_sync() also waits for a running instance, so it fully replaces the cancel_delayed_work_sync() it takes the place of. The work starts out disabled in ipheth_probe() so the enable/disable counts balance from the first open. Reproduced under KASAN on linux-next (next-20260731) with dummy_hcd and raw-gadget standing in for the device, driving the second path above (the interface is already down, so unregister_netdev() does not call ipheth_close()): 15 of 15 unpatched boots report a slab-use-after-free in __run_timers(), freed by ipheth_disconnect() and re-armed from ipheth_sndbulk_callback() via queue_delayed_work_on(). The same trigger on a kernel differing only by this patch reports 0 of 15, and the carrier check still functions across open/close cycles. The reproducer needs an attached USB device that stops draining bulk OUT, plus a link down and unplug, driven as root. It is not a privilege boundary crossing and no exploit primitive was developed. Found by 0sec (https://0sec.ai).