{"id":"CVE-2026-143149","state":"PUBLISHED","title":"seg6: validate state in netfilter continuations","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nseg6: validate state in netfilter continuations\n\nWhen nf_hooks_lwtunnel is enabled, End.DX4 sends decapsulated packets\nthrough NF_INET_PRE_ROUTING. If DNAT changes the inner destination,\nnf_nat_ipv4_pre_routing() drops skb_dst(), and the continuation then\ndereferences the missing dst's lwtstate. This causes a KASAN NULL\npointer dereference and fatal exception panic.\n\nEnd.DX6 has the same issue with IPv6 DNAT. In seg6_iptunnel,\nPOST_ROUTING SNAT with an outbound XFRM policy can replace the dst before\nthe continuation resumes.\n\nValidate the current dst and expected lwtstate type in each NF_HOOK()\ncontinuation before calling the existing handler. Drop packets with\nmissing or incompatible state while preserving direct no-hook paths.\nThe helpers return bool because callers only need a validity check.\n\nTesting shows that the End.DX4 DNAT reproducer triggers a KASAN NULL\npointer dereference without this change and no longer does so with the\nfix. The SNAT+ESP/XFRM reproducer also completes without the reported\nfault. The in-tree End.DX4 netfilter forwarding selftest passes all four\nbidirectional checks with nf_hooks_lwtunnel disabled and enabled.","publishedAt":"2026-12-03T09:19:52.596Z","updatedAt":"2026-12-03T09:19:52.596Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7a3f5b0de3647c854e34269c3332d7a1e902901a","status":"affected","lessThan":"7ebc44e15f7edd5fc9281811beee56dd7aca8fd3","versionType":"git"},{"version":"7a3f5b0de3647c854e34269c3332d7a1e902901a","status":"affected","lessThan":"83c2bd5a40aa3770d06ef61070e1b6d9cf5669e1","versionType":"git"},{"version":"7a3f5b0de3647c854e34269c3332d7a1e902901a","status":"affected","lessThan":"509fce20f6a5e880fe576eaf23f4a49075d72dc9","versionType":"git"},{"version":"7a3f5b0de3647c854e34269c3332d7a1e902901a","status":"affected","lessThan":"8a85a717144087ecac0407b8459a78967e7ed4ea","versionType":"git"},{"version":"7a3f5b0de3647c854e34269c3332d7a1e902901a","status":"affected","lessThan":"549484dd3e80a721d51bd695f22a800d2e05bea1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/seg6_iptunnel.c","net/ipv6/seg6_local.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/seg6_iptunnel.c","net/ipv6/seg6_local.c"]}],"references":["https://git.kernel.org/stable/c/7ebc44e15f7edd5fc9281811beee56dd7aca8fd3","https://git.kernel.org/stable/c/83c2bd5a40aa3770d06ef61070e1b6d9cf5669e1","https://git.kernel.org/stable/c/509fce20f6a5e880fe576eaf23f4a49075d72dc9","https://git.kernel.org/stable/c/8a85a717144087ecac0407b8459a78967e7ed4ea","https://git.kernel.org/stable/c/549484dd3e80a721d51bd695f22a800d2e05bea1"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143149.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143149","state":"PUBLISHED","datePublished":"2026-12-03T09:19:52.596Z","dateUpdated":"2026-12-03T09:19:52.596Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.354Z"},"containers":{"cna":{"title":"seg6: validate state in netfilter continuations","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nseg6: validate state in netfilter continuations\n\nWhen nf_hooks_lwtunnel is enabled, End.DX4 sends decapsulated packets\nthrough NF_INET_PRE_ROUTING. If DNAT changes the inner destination,\nnf_nat_ipv4_pre_routing() drops skb_dst(), and the continuation then\ndereferences the missing dst's lwtstate. This causes a KASAN NULL\npointer dereference and fatal exception panic.\n\nEnd.DX6 has the same issue with IPv6 DNAT. In seg6_iptunnel,\nPOST_ROUTING SNAT with an outbound XFRM policy can replace the dst before\nthe continuation resumes.\n\nValidate the current dst and expected lwtstate type in each NF_HOOK()\ncontinuation before calling the existing handler. Drop packets with\nmissing or incompatible state while preserving direct no-hook paths.\nThe helpers return bool because callers only need a validity check.\n\nTesting shows that the End.DX4 DNAT reproducer triggers a KASAN NULL\npointer dereference without this change and no longer does so with the\nfix. The SNAT+ESP/XFRM reproducer also completes without the reported\nfault. The in-tree End.DX4 netfilter forwarding selftest passes all four\nbidirectional checks with nf_hooks_lwtunnel disabled and enabled."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7a3f5b0de3647c854e34269c3332d7a1e902901a","status":"affected","lessThan":"7ebc44e15f7edd5fc9281811beee56dd7aca8fd3","versionType":"git"},{"version":"7a3f5b0de3647c854e34269c3332d7a1e902901a","status":"affected","lessThan":"83c2bd5a40aa3770d06ef61070e1b6d9cf5669e1","versionType":"git"},{"version":"7a3f5b0de3647c854e34269c3332d7a1e902901a","status":"affected","lessThan":"509fce20f6a5e880fe576eaf23f4a49075d72dc9","versionType":"git"},{"version":"7a3f5b0de3647c854e34269c3332d7a1e902901a","status":"affected","lessThan":"8a85a717144087ecac0407b8459a78967e7ed4ea","versionType":"git"},{"version":"7a3f5b0de3647c854e34269c3332d7a1e902901a","status":"affected","lessThan":"549484dd3e80a721d51bd695f22a800d2e05bea1","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/seg6_iptunnel.c","net/ipv6/seg6_local.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.15","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ipv6/seg6_iptunnel.c","net/ipv6/seg6_local.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7ebc44e15f7edd5fc9281811beee56dd7aca8fd3"},{"url":"https://git.kernel.org/stable/c/83c2bd5a40aa3770d06ef61070e1b6d9cf5669e1"},{"url":"https://git.kernel.org/stable/c/509fce20f6a5e880fe576eaf23f4a49075d72dc9"},{"url":"https://git.kernel.org/stable/c/8a85a717144087ecac0407b8459a78967e7ed4ea"},{"url":"https://git.kernel.org/stable/c/549484dd3e80a721d51bd695f22a800d2e05bea1"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:19:52.596Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}