In the Linux kernel, the following vulnerability has been resolved: bpf, cgroup: Keep the skb network offset signed cgroup_skb progs see a packet from its network header. While they run, __cgroup_bpf_run_filter_skb() moves skb->data there. It assumes that the network header is not after skb->data. It negates skb_network_offset(skb) and pushes skb->data by this offset. The offset is an unsigned int. But ip6mr_cache_report() and bpf_lwt_xmit_reroute() can pass an skb that has data before the network header. Then the offset wraps. On a 64-bit kernel skb->data is then far below skb->head. skb->len has 32 bits and wraps to the correct value, thus only skb->data is wrong. A read of packet data faults or gets other memory. Keep the offset in an int. Pull skb->data when the network header is after it. Otherwise push it, as today.
https://git.kernel.org/stable/c/eff346af4d523d5b8ed3a2c173c26f163c754b36
https://git.kernel.org/stable/c/3f9780d62dd1112ca15b5ae73568d29d42ccc950
https://git.kernel.org/stable/c/3b2a42af183a7da44ae7d64bede143f31130c9e9
https://git.kernel.org/stable/c/08432133abe0db4b0a964114d22afaf69da19748