KernelScan.io

HIGH Introduced in 6.8

axienet DmaBuffer Leak

CVE-2026-99028

CVSS 7.1 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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.

02

Engine v0.9.0

Risk summary

A local attacker with CAP_NET_ADMIN (obtainable in a user namespace) can repeatedly bring a Xilinx AXI Ethernet interface down and up to leak DMA-mapped socket buffers and their IOMMU mappings. Each ifdown leaks up to 128 RX buffers per channel, eventually exhausting the IOMMU aperture and causing denial of service. A race condition in the RX completion path can also leave a freshly submitted buffer armed after teardown begins, allowing the DMA engine to write into freed memory — a use-after-free that could be exploited for privilege escalation.

Affecteddrivers/net/ethernet/xilinx/xilinx_axienet_main.c (axienet Ethernet driver)

Vulnerability analysis

The Xilinx AXI Ethernet driver's dmaengine path pre-posts RX buffers and holds in-flight TX buffers with DMA-mapped SKBs that are normally freed in completion callbacks. When the interface is stopped, dmaengine_terminate_sync() aborts descriptors without running their callbacks, and the original code only freed the ring shells — leaking every SKB and its DMA mapping on each ifdown. Additionally, the RX completion callback can race with the stop path: it may submit a new buffer after terminate_sync() returns but before teardown frees the rings, leaving the DMA engine writing into a buffer that has already been freed. The fix clears each slot's SKB pointer in the TX and RX callbacks so a non-NULL SKB marks a live DMA-mapped buffer, then on stop walks both rings to unmap and free any remaining buffers. A new spinlock serializes the RX callback's stopping check and resubmission with the stop path's setting of the stopping flag, ensuring no new buffers are armed once teardown begins and any buffer armed just before is caught by the terminate call.

03

BranchIntroducedFixed inPatch commit
6.126.86.12.114079396129da5
6.186.86.18.58eececf7c3a67
7.26.87.2.115e5cf3ad7c09
mainline6.87.3bcf2573a68a8
cip/6.126.86.12.114-cip34079396129da5

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34