PT-2026-163408

CVE-2026-139367

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
net: axienet: free outstanding TX buffers in axienet dma bd release()
axienet dma bd release() walks the RX ring to unmap and free every receive buffer before releasing it, but frees the TX descriptor ring with dma free coherent() alone. Any descriptor that axienet free tx chain() had not yet reclaimed still holds its skb and its streaming DMA mapping, and both are lost.
axienet stop() disables TX NAPI and stops the DMA engine before calling it, so nothing reclaims those descriptors afterwards. Bringing the interface down while frames are in flight therefore leaks up to lp->tx bd num skbs and mappings each time.
axienet dma err handler() already walks the TX ring this way before it restarts the DMA engine: it unmaps every descriptor whose cntrl is still set - axienet free tx chain() clears it on reclaim - frees any skb still attached, and clears the descriptor. Move that loop into a helper, axienet free tx bufs(), and call it from axienet dma bd release() too. This relies on axienet stop() having stopped the DMA engine first, as the RX walk in the same function already does. The helper frees the skbs with dev kfree skb any(), as drops: in the error handler, which runs from a workqueue, that frees them directly rather than deferring them to softirq as dev kfree skb irq() did.
The walk must not run on a ring that is not there. axienet open() does not check the result of the reset that runs axienet dma bd init(), so when that reset fails tx bd v is either still NULL or, after an earlier close, points at the ring that close freed. Clear tx bd v and rx bd v once their rings are freed, and skip the walk when tx bd v is NULL. That also ends the second dma free coherent() of a stale ring which the same path already did. On the axienet dma bd init() error path the TX ring has just been allocated zeroed, so the walk does nothing.
This was reported by the Sashiko AI review bot.
Tested on the AXI Ethernet MAC of an ADVA TimeCard X2 (PCIe card, with the built-in AXI DMA): traffic passes, and after each of ten down/up cycles and five module reloads, all made with traffic running and each running axienet dma bd release(), traffic resumes and nothing is logged. The leak itself was not measured, and neither the failed-reset paths nor axienet dma err handler() were exercised.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾