PT-2026-167203

CVE-2026-143345

·

Published

2026-12-03

·

Updated

2026-12-03

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: stmmac: drop split frames on AF XDP zero-copy RX
stmmac rx zc() 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 & rx not ls)) {
    xsk buff free(buf->xdp);
    buf->xdp = NULL;
    dirty++;
    count++;
    goto read again;
}
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 XDP PASS, or converted for XDP TX. The tail starts in the middle of the original payload at a predictable offset and, parsed as a fresh frame (len == 0), stmmac rx buf1 len() reports the full dma buf sz 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 (GMAC CONFIG JE in GMAC CORE INIT), 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 xsk buff free() instead of being processed as a new frame. Account every freed buffer with dirty and count the dropped frame once in the poll budget / rx pkt n. The direct 1:1 mapping drop also increments rx dropped.
Use a bit test instead of an equality test for discard frame. Commit 644b8437ccef9e ("net: stmmac: dwmac4: report Rx checksum errors in status") made dwmac4 wrback get rx status() set discard frame on RDES3 ERROR SUMMARY and OR in csum none on RDES1 IP HDR ERROR or RDES1 IP PAYLOAD ERROR, so it can return discard frame | csum none. The old "status == discard frame" test missed that value and delivered frames with CRC, overflow, watchdog or giant errors to the stack in stmmac rx() - or to XDP/XSK in stmmac rx zc() - 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 discard frame | rx not ls value returned for non-last legacy descriptors below.
Normalize the legacy normal and enhanced descriptor callbacks to report rx not ls together with discard frame for non-last descriptors. This allows both stmmac rx zc() and stmmac rx() to drain split frames on dwmac100 and dwmac1000 instead of reparsing the final fragment as a new packet.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾