Description
In the Linux kernel, the following vulnerability has been resolved: i40e: xsk: fix multi-buffer XDP_PASS skb construction When AF_XDP ZC receives a multi-buffer frame and the XDP program returns XDP_PASS, i40e_construct_skb_zc() copies frags into a new skb. The copy used skb_frag_page() as the memcpy source (page metadata instead of packet data) and passed a virtual address to __skb_fill_page_desc_noacc(), which expects a struct page *. Use skb_frag_address() for the copy, attach frags with skb_add_rx_frag() so len/data_len/truesize are updated, and on dev_alloc_page() failure free the skb via the shared out path so xsk_buff_free() still runs and previously attached pages are released by kfree_skb.
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
1c9ba9c146589ff3d679b21e5e56b2d25ef43edd to < 20c33b7e9f605e56e1e313c4f50ac4ee3df25626affected1c9ba9c146589ff3d679b21e5e56b2d25ef43edd to < 0494c2cc34bc0f4415090c937690b0278952afe8affected1c9ba9c146589ff3d679b21e5e56b2d25ef43edd to < d954e0713731d71bdec8fec416bcf2e27ef98038affected1c9ba9c146589ff3d679b21e5e56b2d25ef43edd to < 76b41e83e69ae4ab23cc3535e36b780ea17e76c2affected
Linux Linux
Default version status: affected
6.6affected0 to < 6.6unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected