{"id":"CVE-2026-143382","summary":"seg6: fix transport header for inner IPv4 with IP options","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nseg6: fix transport header for inner IPv4 with IP options\n\nThe End.DT4, End.DT46 (its IPv4 path only) and End.DX4 behaviors set the\ntransport header of the decapsulated IPv4 packet at a fixed 20 bytes, the\nsize of an IPv4 header without options. They do not validate the header\nlength either. With options, the transport header points at the first\noption byte. The effects include:\n- ping -R sends an echo request with a 60-byte IPv4 header to a local\n  address through an End.DT4 or an End.DX4 SID. Since icmp_rcv()\n  computes the ICMP checksum from the first option byte, the request\n  fails the check and is counted in IcmpInCsumErrors.\n- A UDP datagram can reach a port that an iptables rule drops. The rule\n  checks the UDP header after the full IPv4 header, while the socket\n  lookup reads it at the fixed 20-byte offset.\n- With an inbound AH state, ah_input() reads the AH header at the fixed\n  20-byte offset, but copies the IPv4 header over it with the length in\n  the IHL field. A packet shorter than that length can make ah_input()\n  write past the end of the data, into skb_shared_info when the skb has\n  no tailroom.\n\nValidate the inner IPv4 header length with the new helper\nseg6_validate_iphdr_len() and set the transport header at that length. A\npacket that is not IPv4, whose header length field is below 5, or whose\nheader is truncated, is dropped with a drop reason. The fix is limited to\nthe header length, which the transport header relies on. Other checks done\non IPv4 input, such as the header checksum, the total length and the IP\noptions, are not addressed here.\n\nFound by code inspection while reviewing commit 44930446dde4 (\"ipv6: seg6:\nclear IPv4 control block on IPIP decapsulation\"), as a pre-existing issue\nthat Sashiko also reported on v2 of that patch. Without this patch, a\nbpftrace probe on ah_input() shows the reporter's reproducer packet\nwritten into skb_shared_info. With it, that packet is dropped before\nah_input(), ping -R no longer fails the ICMP checksum, the UDP datagram\nreaches its real port, and the SRv6 selftests still pass. These effects\nreproduce on an unmodified kernel, without error injection.","modified":"2026-12-03T11:02:15.736540461Z","published":"2026-12-03T09:22:28.371Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143382.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/496e64f7f5209cf9275ac376501d030d1931cb33"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5838f10563d58afca6711edb5e4eda968ca181d9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/60a2c4e10cad6625627a05dd4ce8901d41d541b9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b3517d64bf2d8468758afffb6d0417565f9602f5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143382.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143382"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"891ef8dd2a8d14e4e73a81dcdb135b574c57f556"},{"fixed":"496e64f7f5209cf9275ac376501d030d1931cb33"},{"fixed":"60a2c4e10cad6625627a05dd4ce8901d41d541b9"},{"fixed":"b3517d64bf2d8468758afffb6d0417565f9602f5"},{"fixed":"5838f10563d58afca6711edb5e4eda968ca181d9"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143382.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.14.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143382.json"}}],"schema_version":"1.9.2"}