Ad

CVE-2026-99028

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

В ядре Linux устранена следующая уязвимость: net: xilinx: axienet: Free remained DMA buffers on dmaengine stop В пути dmaengine драйвер предварительно подает RX buffers и удерживает в полёте TX buffers, чей SKBs DMA-картируется драйвером и освобождается только в завершающих вызовах. На ndo_stop() dmaengine_terminate_sync () прерывает эти дескрипторы, не выполняя их обратные вызовы, и драйвер затем освобождает только кольцевые оболочки, пропуская каждый SKB, все еще принадлежащий движку, и его отображение DMA на каждом ifdown. С 128 буферами RX, предварительно размещенными на каждом канале, утечка отображения может в конечном итоге исчерпать ограниченную диафрагму IOMMU.

Clear the slot's skb in the TX and RX callbacks so a non-NULL skb marks a slot that still owns a live, DMA-mapped buffer, and on stop unmap and free every such buffer. axienet_dma_rx_cb() runs from the DMA tasklet and re-arms the RX ring on each completion, so it can race axienet_stop(): a completion may submit a fresh buffer after dmaengine_terminate_sync() has returned, leaving the channel armed with a buffer the teardown then frees while the engine may still write into it (dma_release_channel() does not stop it either). Добавьте блокировку, которую axienet_dma_rx_cb() проводит через проверку stopping и повторную отправку, а axienet_stop() выполняет установку stopping перед завершением. После того, как stopping установлен, никакой обратный вызов не может вооружить новый буфер, и любой вооруженный непосредственно перед этим прерывается окончанием, поэтому разрыв только освобождает буферы, которыми больше не владеет движок.

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

In the Linux kernel, the following vulnerability has been resolved: net: xilinx: axienet: Free outstanding DMA buffers on dmaengine stop In the dmaengine path the driver pre-submits RX buffers and holds in-flight TX buffers whose SKBs are DMA-mapped by the driver and freed only in the completion callbacks. On ndo_stop() dmaengine_terminate_sync() aborts these descriptors without running their callbacks, and the driver then frees only the ring shells, leaking every SKB still owned by the engine and its DMA mapping on each ifdown. With 128 RX buffers pre-posted per channel, the mapping leak can eventually exhaust a limited IOMMU aperture. Clear the slot's skb in the TX and RX callbacks so a non-NULL skb marks a slot that still owns a live, DMA-mapped buffer, and on stop unmap and free every such buffer. axienet_dma_rx_cb() runs from the DMA tasklet and re-arms the RX ring on each completion, so it can race axienet_stop(): a completion may submit a fresh buffer after dmaengine_terminate_sync() has returned, leaving the channel armed with a buffer the teardown then frees while the engine may still write into it (dma_release_channel() does not stop it either). Add a lock that axienet_dma_rx_cb() holds across the @stopping check and the resubmit, and axienet_stop() holds to set @stopping before terminating. Once @stopping is set no callback can arm a new buffer, and any armed just before is aborted by the terminate, so teardown only frees buffers the engine no longer owns.