Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-143149

seg6: validate state in netfilter continuations

Description

In the Linux kernel, the following vulnerability has been resolved: seg6: validate state in netfilter continuations When nf_hooks_lwtunnel is enabled, End.DX4 sends decapsulated packets through NF_INET_PRE_ROUTING. If DNAT changes the inner destination, nf_nat_ipv4_pre_routing() drops skb_dst(), and the continuation then dereferences the missing dst's lwtstate. This causes a KASAN NULL pointer dereference and fatal exception panic. End.DX6 has the same issue with IPv6 DNAT. In seg6_iptunnel, POST_ROUTING SNAT with an outbound XFRM policy can replace the dst before the continuation resumes. Validate the current dst and expected lwtstate type in each NF_HOOK() continuation before calling the existing handler. Drop packets with missing or incompatible state while preserving direct no-hook paths. The helpers return bool because callers only need a validity check. Testing shows that the End.DX4 DNAT reproducer triggers a KASAN NULL pointer dereference without this change and no longer does so with the fix. The SNAT+ESP/XFRM reproducer also completes without the reported fault. The in-tree End.DX4 netfilter forwarding selftest passes all four bidirectional checks with nf_hooks_lwtunnel disabled and enabled.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 7a3f5b0de3647c854e34269c3332d7a1e902901a to < 7ebc44e15f7edd5fc9281811beee56dd7aca8fd3affected
  • 7a3f5b0de3647c854e34269c3332d7a1e902901a to < 83c2bd5a40aa3770d06ef61070e1b6d9cf5669e1affected
  • 7a3f5b0de3647c854e34269c3332d7a1e902901a to < 509fce20f6a5e880fe576eaf23f4a49075d72dc9affected
  • 7a3f5b0de3647c854e34269c3332d7a1e902901a to < 8a85a717144087ecac0407b8459a78967e7ed4eaaffected
  • 7a3f5b0de3647c854e34269c3332d7a1e902901a to < 549484dd3e80a721d51bd695f22a800d2e05bea1affected

Linux Linux

Default version status: affected

  • 5.15affected
  • 0 to < 5.15unaffected
  • 5.15.227 to ≤ 5.15.*unaffected
  • 6.12.120 to ≤ 6.12.*unaffected
  • 6.18.66 to ≤ 6.18.*unaffected
  • 7.3.7 to ≤ 7.3.*unaffected
  • 7.4-rc3 to ≤ *unaffected

References