bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6

Summary

CVECVE-2026-143359
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 10:18:25 UTC
Updated2026-12-03 10:18:25 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: bpf: Reject non-IPv6 packets in BPF_LWT_ENCAP_SEG6 The mode BPF_LWT_ENCAP_SEG6 of bpf_lwt_push_encap() pushes an IPv6 header and an SRH, and it replaces the dst. The SRH says that IPv6 follows, and skb->protocol does not change. Thus the mode assumes an IPv6 packet, but an lwt_in prog also runs for IPv4 packets. After the prog, bpf_input() calls orig_input() of the old dst. This IPv4 handler reads the pushed headers as IPv4. It can write after the packet data, and the kernel crashes. after the push orig_input() expects --------------------- -------------------- skb->protocol ETH_P_IP ETH_P_IP dst rt6_info rtable packet | IPv6 | SRH | IPv4 | | IPv4 | The mode BPF_LWT_ENCAP_SEG6_INLINE returns -EBADMSG for non-IPv6 packets. Apply this check to both modes. End.BPF does not change, because seg6_local_input() drops non-IPv6 packets.

Risk And Classification

EPSS: 0.003790000 probability, percentile 0.340060000 (date 2026-12-03)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 4a612ff71a094f2d77a4b07787ef45cfc2eb04a3 git Not specified
CNA Linux Linux affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 32f8d033044693f77f98da40ab206e38108cde6f git Not specified
CNA Linux Linux affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 ad3d6fe9772e06b50082d91e5906aa21ed2cb4ac git Not specified
CNA Linux Linux affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 d29c91e8c031bc9b5a78dc199235893c040877db git Not specified
CNA Linux Linux affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 d7106132b69e6916762bbbfd95fbcb60be4b8d9b git Not specified
CNA Linux Linux affected fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 58e39f8d58b141b96c030008a20dde9d625ec997 git Not specified
CNA Linux Linux affected 4.18 Not specified
CNA Linux Linux unaffected 4.18 semver Not specified
CNA Linux Linux unaffected 5.10.276 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.227 5.15.* semver Not specified
CNA Linux Linux unaffected 6.12.120 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.66 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.7 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/4a612ff71a094f2d77a4b07787ef45cfc2eb04a3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/58e39f8d58b141b96c030008a20dde9d625ec997 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d7106132b69e6916762bbbfd95fbcb60be4b8d9b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d29c91e8c031bc9b5a78dc199235893c040877db 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ad3d6fe9772e06b50082d91e5906aa21ed2cb4ac 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/32f8d033044693f77f98da40ab206e38108cde6f 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report