In the Linux kernel, the following vulnerability has been resolved:
ipvlan: ensure network headers are in skb linear part
syzbot found that ipvlan_process_v6_outbound() was assuming
the IPv6 network header isis present in skb->head [1]
Add the needed pskb_network_may_pull() calls for both
IPv4 and IPv6 handlers.
[1]
BUG: KMSAN: uninit-value in __ipv6_addr_type+0xa2/0x490net/ipv6/addrconf_core.c:47__ipv6_addr_type+0xa2/0x490net/ipv6/addrconf_core.c:47ipv6_addr_typeinclude/net/ipv6.h:555[inline]ip6_route_output_flags_norefnet/ipv6/route.c:2616[inline]ip6_route_output_flags+0x51/0x720net/ipv6/route.c:2651ip6_route_outputinclude/net/ip6_route.h:93[inline]ipvlan_route_v6_outbound+0x24e/0x520drivers/net/ipvlan/ipvlan_core.c:476ipvlan_process_v6_outbounddrivers/net/ipvlan/ipvlan_core.c:491[inline]ipvlan_process_outbounddrivers/net/ipvlan/ipvlan_core.c:541[inline]ipvlan_xmit_mode_l3drivers/net/ipvlan/ipvlan_core.c:605[inline]ipvlan_queue_xmit+0xd72/0x1780drivers/net/ipvlan/ipvlan_core.c:671ipvlan_start_xmit+0x5b/0x210drivers/net/ipvlan/ipvlan_main.c:223__netdev_start_xmitinclude/linux/netdevice.h:5150[inline]netdev_start_xmitinclude/linux/netdevice.h:5159[inline]xmit_onenet/core/dev.c:3735[inline]dev_hard_start_xmit+0x247/0xa20net/core/dev.c:3751sch_direct_xmit+0x399/0xd40net/sched/sch_generic.c:343qdisc_restartnet/sched/sch_generic.c:408[inline]__qdisc_run+0x14da/0x35d0net/sched/sch_generic.c:416qdisc_run+0x141/0x4d0include/net/pkt_sched.h:127net_tx_action+0x78b/0x940net/core/dev.c:5484handle_softirqs+0x1a0/0x7c0kernel/softirq.c:561__do_softirq+0x14/0x1akernel/softirq.c:595do_softirq+0x9a/0x100kernel/softirq.c:462__local_bh_enable_ip+0x9f/0xb0kernel/softirq.c:389local_bh_enableinclude/linux/bottom_half.h:33[inline]rcu_read_unlock_bhinclude/linux/rcupdate.h:919[inline]__dev_queue_xmit+0x2758/0x57d0net/core/dev.c:4611dev_queue_xmitinclude/linux/netdevice.h:3311[inline]packet_xmit+0x9c/0x6c0net/packet/af_packet.c:276packet_sndnet/packet/af_packet.c:3132[inline]packet_sendmsg+0x93e0/0xa7e0net/packet/af_packet.c:3164sock_sendmsg_nosecnet/socket.c:718[inline]