In the Linux kernel, the following vulnerability has been resolved: ice: xsk: do not free in-flight frags on XDP_TX completion ice_xmit_xdp_tx_zc() takes the frags of a multi-buffer frame off pool->xskb_list but leaves XDP_FLAGS_HAS_FRAGS set on the head. When the head completes, xsk_buff_free() frees whatever is on the list at that point, which are the frags of a frame still being received. If ice_xmit_xdp_tx_zc() completes such a head while cleaning the ring before sending another frame, xsk_buff_get_frag() returns NULL and xsk_buff_xdp_get_dma() dereferences it. Clear the flag on the head once its frags are on the ring. As xdp_get_buff_len() then covers only the head, count Rx bytes before running the XDP program, like libeth does.
https://git.kernel.org/stable/c/d6ab1051176da32103a61a444788bb3c175ee9ca
https://git.kernel.org/stable/c/5a9b5e315e101dfa02af5d8d3b27d893ba3e5566
https://git.kernel.org/stable/c/0061c4ad01ace9ff4334553780ae3be4a8a8f2b5