CVE-2026-143345: net: stmmac: drop split frames on AF_XDP zero-copy RX

Published Dec 3, 2026
·
Updated

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

net: stmmac: drop split frames on AFXDP zero-copy RX

stmmacrxzc() assumes a 1:1 mapping between a received frame and an XSK pool buffer and drops any frame that spans more than one RX descriptor:

/ XSK pool expects RX frame 1:1 mapped to XSK buffer / if (likely(status & rxnotls)) { xskbufffree(buf->xdp); buf->xdp = NULL; dirty++; count++; goto readagain; }

The non-last descriptors are freed and dropped, but the frame is not marked as errored. When the poll reaches the last descriptor of the same frame, error is still 0, so the fragment is handled as a complete frame: it is passed to the XDP program, copied into an skb on XDPPASS, or converted for XDPTX. The tail starts in the middle of the original payload at a predictable offset and, parsed as a fresh frame (len == 0), stmmacrxbuf1len() reports the full dmabufsz length for it even though the DMA engine only wrote the tail remainder into that buffer, so the reads extend past the received bytes and can reach beyond the end of the XSK pool buffer. GMAC4 always enables jumbo frames (GMACCONFIGJE in GMACCOREINIT), so an on-link peer can trigger such a split even when the interface MTU is left at 1500.

Set error when the 1:1 mapping check drops a descriptor, so the remaining descriptors of the frame - including the last one - are drained and released with xskbufffree() instead of being processed as a new frame. Account every freed buffer with dirty and count the dropped frame once in the poll budget / rxpktn. The direct 1:1 mapping drop also increments rxdropped.

Use a bit test instead of an equality test for discardframe. Commit 644b8437ccef9e ("net: stmmac: dwmac4: report Rx checksum errors in status") made dwmac4wrbackgetrxstatus() set discardframe on RDES3ERRORSUMMARY and OR in csumnone on RDES1IPHDRERROR or RDES1IPPAYLOADERROR, so it can return discardframe | csumnone. The old "status == discardframe" test missed that value and delivered frames with CRC, overflow, watchdog or giant errors to the stack in stmmacrx() - or to XDP/XSK in stmmacrxzc() - when they also failed the IP checksum. The change therefore affects the regular RX path, not only zero-copy. The bit test is also required for the discardframe | rxnotls value returned for non-last legacy descriptors below.

Normalize the legacy normal and enhanced descriptor callbacks to report rxnotls together with discardframe for non-last descriptors. This allows both stmmacrxzc() and stmmacrx() to drain split frames on dwmac100 and dwmac1000 instead of reparsing the final fragment as a new packet.

Affected Software

4 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.13.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description
Data Sourced
via OSV·09:22 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using the stmmac driver with AF_XDP zero-copy receive are exposed when a received frame spans multiple RX descriptors. GMAC4 hardware is particularly relevant because jumbo frames are always enabled during its initialization.

2

What does an attacker need to exploit it?

An attacker needs to be an on-link peer able to send a frame that is split across RX descriptors. The issue occurs when the driver drops the non-final descriptors but later processes the final fragment as though it were a complete frame.

3

What is the impact of processing the final fragment?

The final fragment can be passed to an XDP program, copied into an skb after XDP_PASS, or converted for XDP_TX. Its length can be treated as the full DMA buffer size despite containing only the tail of the original payload, causing reads beyond the received bytes and potentially beyond the XSK pool buffer.

4

What can be done if the available fixes cannot be applied immediately?

Avoid using AF_XDP zero-copy RX on affected stmmac interfaces. This prevents traffic from reaching the vulnerable stmmac_rx_zc() receive path described in the advisory.

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