CVE-2026-143231: ice: xsk: fix leaking Rx buffers in multi-buffer path
In the Linux kernel, the following vulnerability has been resolved:
ice: xsk: fix leaking Rx buffers in multi-buffer path
icecleanrxirqzc() consumes a descriptor without freeing its buffer when a frag has zero length or when xskbuffaddfrag() fails, which happens if the frags array is full or the fill ring has duplicates. Such buffers are lost to user space until the socket is closed.
Free the buffer in both cases. xpfree() skips a duplicate already freed with the frame.
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 ice_clean_rx_irq_zc(), free the Rx buffer when a fragment has zero length and when xsk_buff_add_frag() fails.
Event History
Frequently Asked Questions
What conditions can trigger the buffer leak?
The leak occurs in the ice driver's AF_XDP zero-copy receive path when a received fragment has zero length or when xsk_buff_add_frag() fails. The latter can occur when the fragments array is full or the fill ring contains duplicate entries.
What is the operational impact while an affected socket remains open?
Receive buffers consumed under these conditions can be lost to user space, reducing the buffers available to that socket. They remain unavailable until the socket is closed.
What can be done if the fix cannot be deployed immediately?
Closing the affected socket releases buffers that were lost to user space. The resolved code also handles duplicate frames safely because xp_free() skips a duplicate that was already freed with the frame.