CVE-2026-139243

net: axienet: release every RX buffer in axienet_dma_bd_release()

Published Nov 30, 2026 CVSS 3.1 · 4.1 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: axienet: release every RX buffer in axienet_dma_bd_release()

The RX walk in axienet_dma_bd_release() stops at the first descriptor
without an skb, assuming that such a slot and all after it were never
filled. That holds on the axienet_dma_bd_init() error path, but not once
the ring has been running: when axienet_rx_poll() fails to allocate or
map a replacement buffer it leaves the slot it emptied with a NULL skb,
in the middle of a populated ring, until a later poll refills it.
Closing the interface before then leaks the skb and the streaming DMA
mapping of every descriptor after that slot, which can be most of the
ring, and is most likely under memory pressure.

The walk also frees each skb before unmapping it. With swiotlb, the
DMA_FROM_DEVICE unmap copies the bounce buffer back into the skb data
that was just freed, and on non-coherent platforms it invalidates cache
lines that may already belong to a new owner.

Skip empty slots instead of stopping at the first one. An emptied slot
still has a non-zero cntrl but its buffer is already unmapped, so the
skip has to cover the unmap too, which it does by coming before it.
Then unmap before freeing, as axienet_rx_poll() does.

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 after each of ten down/up cycles,
each running axienet_dma_bd_release(), so the unmap-then-free order is
exercised on every buffer. A failed RX refill was not reproduced, so
the skip over an empty slot was not exercised.

Analysis

AI-generated

Technical impact

The bug in the AXI Ethernet mac driver causes the release routine to stop at the first empty descriptor and discard the rest of the ring, leaking the associated socket buffers and their DMA mappings. When the interface is closed before the ring is fully drained, the leaking packets can consume a large portion of kernel memory, especially under memory pressure. Furthermore, the driver frees the skb before unmapping it, so on systems with swiotlb this can copy back to a freed buffer and invalidate cache lines that may have been reused by other code, potentially leading to memory corruption or a use‑after‑free condition. The resulting state can allow an attacker to trigger a denial‑of‑service if they can force the driver to exhibit the erroneous cleanup path by sending malformed traffic or by inducing a buffer allocation failure.

Affected Systems

This vulnerability affects all Linux kernels that include the axienet driver on devices such as the AXI Ethernet MAC found in ADVA TimeCard X2 PCIe cards and other similar platforms. The kernel version or release number is not specified in the advisory, so the flaw may exist in any kernel that has not yet incorporated the commit resolving the issue.

Risk and Exploitability

The CVSS and EPSS scores are not publicly available and the vulnerability is not listed in CISA KEV. Because the flaw is a kernel‑level resource‑management bug that requires the driver to be active and the interface to be closed during a drain, the attack vector is most likely a local or remote attacker with sufficient network access to generate traffic that forces buffer allocation failures. While exploitation is not trivial, the consequences—memory exhaustion or kernel corruption—could lead to a denial‑of‑service. Organizations running systems with the axienet driver should treat the bug with moderate to high risk pending an official update.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a version containing the axienet patch that properly releases all RX buffers, skips empty descriptors, and unmaps before freeing
  • Avoid closing the AXI Ethernet interface during high throughput or under memory pressure; wait for cleanup to complete before shutdown
  • Deploy host‑based monitoring to detect abnormal socket buffer leaks or DMA mapping anomalies, and use network traffic shaping to limit attack surface until a patch is applied

Generated by OpenCVE AI on November 30, 2026 at 20:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: axienet: release every RX buffer in axienet_dma_bd_release() The RX walk in axienet_dma_bd_release() stops at the first descriptor without an skb, assuming that such a slot and all after it were never filled. That holds on the axienet_dma_bd_init() error path, but not once the ring has been running: when axienet_rx_poll() fails to allocate or map a replacement buffer it leaves the slot it emptied with a NULL skb, in the middle of a populated ring, until a later poll refills it. Closing the interface before then leaks the skb and the streaming DMA mapping of every descriptor after that slot, which can be most of the ring, and is most likely under memory pressure. The walk also frees each skb before unmapping it. With swiotlb, the DMA_FROM_DEVICE unmap copies the bounce buffer back into the skb data that was just freed, and on non-coherent platforms it invalidates cache lines that may already belong to a new owner. Skip empty slots instead of stopping at the first one. An emptied slot still has a non-zero cntrl but its buffer is already unmapped, so the skip has to cover the unmap too, which it does by coming before it. Then unmap before freeing, as axienet_rx_poll() does. 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 after each of ten down/up cycles, each running axienet_dma_bd_release(), so the unmap-then-free order is exercised on every buffer. A failed RX refill was not reproduced, so the skip over an empty slot was not exercised.
Title net: axienet: release every RX buffer in axienet_dma_bd_release()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:32 PM