PT-2026-167202

CVE-2026-143344

·

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 multi-buffer frames in XDP mode
stmmac rx() runs the XDP program once per descriptor buffer and uses skb == NULL as the only marker for the start of a frame. A frame larger than one buffer is split by the hardware across several descriptors; GMAC4 enables jumbo frames unconditionally (GMAC CONFIG JE in GMAC CORE INIT), so an on-link peer can deliver such a frame even when the interface MTU is left at 1500.
When an XDP verdict ends a non-last descriptor, skb is cleared and the next descriptor of the same hardware frame is parsed as a new frame. For XDP CONSUMED this happens via read again with len preserved, so stmmac rx buf1 len() then returns min(dma buf sz, plen - len) for the last descriptor, which can be as small as 0-3 bytes. buf1 len -= ETH FCS LEN underflows and xdp prepare buff() puts data end far past data; on XDP PASS this produces an skb whose length is close to 4G that reaches the network stack (skb->tail and skb->len are 32-bit and wrap below skb->end, so skb over panic() does not fire). A 4+ byte tail is instead offered to the XDP program and delivered as a standalone mid-payload Ethernet frame on XDP PASS. XDP TX/XDP REDIRECT instead falls through to the next iteration, resetting the running length, so the tail is re-parsed as a full-size new frame.
The same fault exists when a single descriptor uses its second buffer: buffer2 is now handed to the hardware for non-SPH frames on GMAC4/XGMAC, so a frame up to 2 * dma buf sz can land on a single descriptor while the XDP program still only sees the first buffer. XDP TX then transmits a truncated frame, and XDP PASS appends the second buffer only after the program has already run over the first one.
XDP does not support scatter-gather frames until the multi-buffer rework, so drop the whole frame instead. When a non-last descriptor is seen while an XDP program is attached, mark the frame as errored and drain the remaining descriptors, including the last. A descriptor that uses its second buffer is dropped directly before the program runs as well; in XDP mode it is necessarily the last descriptor of the frame, so it does not need the error marker. Removing the re-parse lets both XDP verdict branches simply complete the packet via next.
The buffers consumed by the discard path are no longer returned to the page pool, and the new SG and second-buffer drops do not return them either. They stay in rx q->buf pool[] and stmmac rx refill() reuses them in place, allocating only when a slot is empty. This is safe because the drop checks run before the buffer is synced for CPU access or prefetched. The discard-path change and the in-place reuse apply with or without an XDP program attached.
The !error guard on the discard check also changes the accounting for errored multi-descriptor frames on dwmac100/dwmac1000: rx errors is incremented once per frame instead of once per descriptor. This too is independent of XDP mode.
Note: the subsequent "net: stmmac: rework stmmac rx to support XDP rx multi-buff" accumulates the whole frame into a single xdp buff and supersedes this patch; the fix is kept so the net portion of the series stands on its own.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾