CVE-2026-143230: ice: xsk: do not free in-flight frags on XDP_TX completion
In the Linux kernel, the following vulnerability has been resolved:
ice: xsk: do not free in-flight frags on XDPTX completion
icexmitxdptxzc() takes the frags of a multi-buffer frame off pool->xskblist but leaves XDPFLAGSHASFRAGS set on the head. When the head completes, xskbufffree() frees whatever is on the list at that point, which are the frags of a frame still being received.
If icexmitxdptxzc() completes such a head while cleaning the ring before sending another frame, xskbuffgetfrag() returns NULL and xskbuffxdpgetdma() dereferences it.
Clear the flag on the head once its frags are on the ring. As xdpgetbufflen() then covers only the head, count Rx bytes before running the XDP program, like libeth does.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In ice XSK XDP_TX completion handling, clear XDP_FLAGS_HAS_FRAGS on the head once its frags are on the ring, so in-flight frags are not freed.
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
The issue affects Linux systems using the ice driver with XSK/AF_XDP zero-copy transmission of multi-buffer frames. The described failure path involves XDP_TX completion handling and concurrent receipt of another fragmented frame.
What conditions trigger the failure?
A multi-buffer frame's fragments must have been moved from the XSK buffer list to the transmit ring while the head retains XDP_FLAGS_HAS_FRAGS. If that head completes while the ring is cleaned before another frame is sent, fragments belonging to a frame still being received can be freed, leading to a NULL fragment lookup and dereference.
What does the fix change?
The fix clears the fragment flag on the frame head after its fragments are placed on the transmit ring, preventing completion from freeing unrelated in-flight fragments. It also counts received bytes before the XDP program runs because the post-change buffer-length calculation covers only the head.