Ad

CVE-2026-98796

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

В ядре Linux была устранена следующая уязвимость: net: ethernet: mtk_eth_soc: выделить манекен netdev раньше колец The RX, а общий NAPI переносится внутренним "dummy" netdev (eth->dummy_dev). mtk_probe() создает это манекен устройство и добавляет к нему общий tx/rx NAPI, только после регистрации MAC netdev. Этот порядок существует с тех пор, как была добавлена поддержка MT7623, и оставляет окно, в котором сетевые разработчики видны сетевому ядру до того, как общий NAPI и фиктивное устройство существуют. Если в этом окне появляется первый netdev (например, netifd, открывающий ссылку WAN в момент регистрации интерфейса), первый открытый путь запускается без них.

На NETSYS v2 и более поздних версиях SoCs mtk_rx_alloc() -> __xdp_rxq_info_reg() затем отсылает eth->dummy_dev NULL: WARNING: CPU: ... Отсутствует net_device от драйвера в net/core/xdp.c и mtk_open() не работает с -ENODEV. На NETSYS v1 SoCs (MT7621/MT7622/MT7623/MT7629) нет пула страниц, поэтому тот же открытый вместо этого вызывает napi_enable() на napi_struct, который netif_napi_add() еще не инициализирован, и удаляет ссылки на NULL napi->dev.

Выделите манекен netdev и добавьте к нему общий tx/rx NAPI перед циклом register_netdev(). И отказ размещения манекена, и отказ register_netdev() теперь проходят через mtk_unreg_dev(), который отменяет регистрацию уведомителей net_device и зарегистрированных до сих пор netdev, останавливая одновременно открытый netdev (ndo_stop) и его NAPI до освобождения несущей манекена. Netdev, который открылся во время окна, также может поставить в очередь рабочего сброса фреймового движка (через сторожевую систему tx или phylink), поэтому путь ошибки зонда теперь отменяет eth->pending_work перед освобождением общего состояния, как mtk_cleanup () уже делает при удалении.

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

In the Linux kernel, the following vulnerability has been resolved: net: ethernet: mtk_eth_soc: allocate dummy netdev sooner The RX rings and the shared NAPI are carried by an internal "dummy" netdev (eth->dummy_dev). mtk_probe() creates that dummy device, and adds the shared tx/rx NAPI to it, only after the MAC netdevs have been registered. That order has been there since the MT7623 support was added and leaves a window in which the netdevs are visible to the network core before the shared NAPI and the dummy device exist. If anything brings the first netdev up during that window (e.g. netifd opening the WAN link the instant the interface is registered), the first-open path runs without them. On NETSYS v2 and later SoCs mtk_rx_alloc() -> __xdp_rxq_info_reg() then dereferences eth->dummy_dev == NULL: WARNING: CPU: ... Missing net_device from driver in net/core/xdp.c and mtk_open() fails with -ENODEV. On NETSYS v1 SoCs (MT7621/MT7622/MT7623/MT7629) there is no page pool, so the same open instead calls napi_enable() on a napi_struct that netif_napi_add() has not initialised yet and dereferences a NULL napi->dev. Allocate the dummy netdev and add the shared tx/rx NAPI to it before the register_netdev() loop. Both the dummy-allocation failure and a register_netdev() failure now unwind through mtk_unreg_dev(), which unregisters the net_device notifiers and the netdevs registered so far, stopping a concurrently-opened netdev (ndo_stop) and its NAPI before the dummy carrier is freed. A netdev that opened during the window can also have queued the frame-engine reset worker (via the tx watchdog or phylink), so the probe error path now cancels eth->pending_work before freeing the shared state, as mtk_cleanup() already does on remove.