CVE-2026-139367: net: axienet: free outstanding TX buffers in axienet_dma_bd_release()

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: axienet: free outstanding TX buffers in axienetdmabdrelease()

axienetdmabdrelease() walks the RX ring to unmap and free every receive buffer before releasing it, but frees the TX descriptor ring with dmafreecoherent() alone. Any descriptor that axienetfreetxchain() had not yet reclaimed still holds its skb and its streaming DMA mapping, and both are lost.

axienetstop() 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->txbdnum skbs and mappings each time.

axienetdmaerrhandler() already walks the TX ring this way before it restarts the DMA engine: it unmaps every descriptor whose cntrl is still set - axienetfreetxchain() clears it on reclaim - frees any skb still attached, and clears the descriptor. Move that loop into a helper, axienetfreetxbufs(), and call it from axienetdmabdrelease() too. This relies on axienetstop() having stopped the DMA engine first, as the RX walk in the same function already does. The helper frees the skbs with devkfreeskbany(), as drops: in the error handler, which runs from a workqueue, that frees them directly rather than deferring them to softirq as devkfreeskbirq() did.

The walk must not run on a ring that is not there. axienetopen() does not check the result of the reset that runs axienetdmabdinit(), so when that reset fails txbdv is either still NULL or, after an earlier close, points at the ring that close freed. Clear txbdv and rxbdv once their rings are freed, and skip the walk when txbdv is NULL. That also ends the second dmafreecoherent() of a stale ring which the same path already did. On the axienetdmabdinit() 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 axienetdmabdrelease(), traffic resumes and nothing is logged. The leak itself was not measured, and neither the failed-reset paths nor axienetdmaerrhandler() were exercised.

Affected Software

1 affected component
Linux Linux kernel

Event History

Nov 30, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
Description

Frequently Asked Questions

1

Which systems are affected in practice?

Systems using the Linux kernel axienet network driver are affected when the associated interface is brought down while transmit frames are still in flight. Systems that do not use this driver are not implicated by the provided information.

2

What is the impact of triggering the issue?

Outstanding transmit descriptors can retain both socket buffers and streaming DMA mappings after the descriptor ring is released. Each interface shutdown under load can leak up to the configured number of TX buffer descriptors, and repeated events can accumulate leaked resources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203