Description
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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
eeb2b5381038201133b52829634d2f95a4a8ac5e to < 0061c4ad01ace9ff4334553780ae3be4a8a8f2b5affectedeeb2b5381038201133b52829634d2f95a4a8ac5e to < d6ab1051176da32103a61a444788bb3c175ee9caaffectedeeb2b5381038201133b52829634d2f95a4a8ac5e to < 5a9b5e315e101dfa02af5d8d3b27d893ba3e5566affected
Linux Linux
Default version status: affected
6.6affected0 to < 6.6unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected