In the Linux kernel, the following vulnerability has been resolved: xfrm: interface: validate the IP header on xmit Packets injected into an xfrm interface (e.g. AF_PACKET on an xfrmi device) reach the xfrm output path without IP header validation, but xfrm4_transport_output() uses iph->ihl for __skb_pull() and memmove() and expects the header to be valid. vti_tunnel_xmit() already calls pskb_inet_may_pull() before handing packets to the xfrm output path. Do the same in xfrmi_xmit() and perform the header checks ip_rcv_core()/ip6_rcv_core() do on entry to the IP stack: reject wrong IP versions and malformed IPv4 header lengths.
https://git.kernel.org/stable/c/86de3a1118a16dbbbe5fabe9aa20ffb93c072ed5
https://git.kernel.org/stable/c/56f9254cb83d93033e449f70cd9b896bbc3c191f
https://git.kernel.org/stable/c/2b1e92bd69d0fbb2e1d974e7b57d07429ee902bb
https://git.kernel.org/stable/c/289423502470ec7377efeae20fa802523f336356