A vulnerability in the Linux kernel's BPF_LWT_ENCAP_SEG6 mode allowed non-IPv6 packets to be processed incorrectly, leading to potential kernel crashes. The issue arises because the mode assumes packets are IPv6 but does not reject IPv4 packets, causing the IPv4 handler to misinterpret pushed headers and write beyond packet data. The vulnerability has been resolved by applying a check to reject non-IPv6 packets in both BPF_LWT_ENCAP_SEG6 modes.