CVE-2026-143229: libeth: xsk: do not free in-flight frags on XDP_TX completion
In the Linux kernel, the following vulnerability has been resolved:
libeth: xsk: do not free in-flight frags on XDPTX completion
libethxsktxqueuebulk() takes the frags of a multi-buffer frame off pool->xskblist but leaves XDPFLAGSHASFRAGS set on the head. When the head completes, libethxskbufffreeslow() frees whatever is on the list at that point.
The XDPSQ can be completed by a bulk flush while the frags of a frame are being queued, or by its cleanup timer while a partial Rx frame is stashed. Those frags are then freed while in use, and the frame being queued is sent truncated.
Clear the flag on the head once all of its frags are queued.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
In libeth_xsk_tx_queue_bulk(), clear XDP_FLAGS_HAS_FRAGS on the frame head once all of its frags are queued.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the Linux kernel's libeth XSK transmit path with multi-buffer frames are exposed. The failure involves frames marked with XDP_FLAGS_HAS_FRAGS during XDP_TX completion.
What conditions can trigger the vulnerability?
The issue can occur when XDP_TX completion happens while a frame's fragments are still being queued. The description identifies a bulk flush of the XDPSQ or its cleanup timer acting while a partial receive frame is stashed as triggering conditions.
What is the observable impact?
Fragments can be freed while still in use, causing the frame being queued to be transmitted in truncated form.
How can the issue be remediated?
Apply a kernel update containing the fix that clears XDP_FLAGS_HAS_FRAGS on the frame head after all of its fragments have been queued. The provided stable-kernel references identify commits carrying the fix.