CVE-2026-143382
Received Received - Intake

Linux Kernel IPv4 Transport Header Fix for SRv6 Behaviors

Vulnerability report for CVE-2026-143382, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-03

Last updated on: 2026-12-03

Assigner: kernel.org

Description

In the Linux kernel, the following vulnerability has been resolved: seg6: fix transport header for inner IPv4 with IP options The End.DT4, End.DT46 (its IPv4 path only) and End.DX4 behaviors set the transport header of the decapsulated IPv4 packet at a fixed 20 bytes, the size of an IPv4 header without options. They do not validate the header length either. With options, the transport header points at the first option byte. The effects include: - ping -R sends an echo request with a 60-byte IPv4 header to a local address through an End.DT4 or an End.DX4 SID. Since icmp_rcv() computes the ICMP checksum from the first option byte, the request fails the check and is counted in IcmpInCsumErrors. - A UDP datagram can reach a port that an iptables rule drops. The rule checks the UDP header after the full IPv4 header, while the socket lookup reads it at the fixed 20-byte offset. - With an inbound AH state, ah_input() reads the AH header at the fixed 20-byte offset, but copies the IPv4 header over it with the length in the IHL field. A packet shorter than that length can make ah_input() write past the end of the data, into skb_shared_info when the skb has no tailroom. Validate the inner IPv4 header length with the new helper seg6_validate_iphdr_len() and set the transport header at that length. A packet that is not IPv4, whose header length field is below 5, or whose header is truncated, is dropped with a drop reason. The fix is limited to the header length, which the transport header relies on. Other checks done on IPv4 input, such as the header checksum, the total length and the IP options, are not addressed here. Found by code inspection while reviewing commit 44930446dde4 ("ipv6: seg6: clear IPv4 control block on IPIP decapsulation"), as a pre-existing issue that Sashiko also reported on v2 of that patch. Without this patch, a bpftrace probe on ah_input() shows the reporter's reproducer packet written into skb_shared_info. With it, that packet is dropped before ah_input(), ping -R no longer fails the ICMP checksum, the UDP datagram reaches its real port, and the SRv6 selftests still pass. These effects reproduce on an unmodified kernel, without error injection.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-03
Last Modified
2026-12-03
Generated
2026-12-03
AI Q&A
2026-12-03
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability in the Linux kernel involves incorrect handling of the transport header for decapsulated IPv4 packets with IP options. The End.DT4, End.DT46, and End.DX4 behaviors set the transport header at a fixed 20-byte offset, which is the size of an IPv4 header without options. This causes issues when IPv4 options are present, as the transport header points to the first option byte instead of the actual transport layer data.

Detection Guidance

This vulnerability requires kernel-level inspection to detect. Use bpftrace to probe ah_input() and check for packets written past skb_shared_info. Example command: bpftrace -e 'kprobe:ah_input { @ = count(); }'. Monitor IcmpInCsumErrors for ICMP checksum failures with netstat -s | grep IcmpInCsumErrors.

Impact Analysis

This vulnerability can lead to several issues such as failed ICMP checksums when using ping -R, incorrect port handling in UDP datagrams due to misaligned iptables rules, and potential memory corruption when processing packets with IP options and AH headers. These issues can cause network errors, security bypasses, or system instability.

Mitigation Strategies

Apply the kernel patch that validates inner IPv4 header length and sets the transport header correctly. Update to a fixed Linux kernel version. Monitor network traffic for unusual ICMP checksum errors or port mismatches.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-143382. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...