{"id":"CVE-2026-143353","summary":"bpf: Don't let lwt_in progs call into IPv6 when it is disabled","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Don't let lwt_in progs call into IPv6 when it is disabled\n\nWith ipv6.disable=1, inet6_init() returns before it registers any pernet\nsubsystem. Thus net-\u003eipv6.devconf_all and net-\u003eipv6.seg6_data stay NULL.\nIS_ENABLED(CONFIG_IPV6) only says that the code is built in.\nbpf_lwt_input_reroute() and bpf_push_seg6_encap() call into IPv6, but do\nnot test ipv6_mod_enabled(). An lwt_in prog also runs with ipv6.disable=1,\nand skb-\u003eprotocol == htons(ETH_P_IPV6) does not prove that IPv6 is enabled.\nThus the kernel dereferences NULL and crashes.\n\nReturn -EAFNOSUPPORT before these calls if ipv6_mod_enabled() is false.\nBPF_LWT_REROUTE then drops an IPv6 skb. With IPv6 enabled nothing changes.\n\nThe first Fixes tag is for bpf_push_seg6_encap(), which never had this\ntest. The second tag is for bpf_lwt_input_reroute(). Until that commit it\nused ipv6_stub, which returned -EAFNOSUPPORT with ipv6.disable=1.","modified":"2026-12-03T11:02:07.310737650Z","published":"2026-12-03T09:22:09.654Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143353.json"},"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/95f1d5e4abb79fe85a54f7a46b41f297ce533c31"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef5073375e48ae95b00788e7b32edfb92204f66a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143353.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143353"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"fe94cc290f535709d3c5ebd1e472dfd0aec7ee79"},{"fixed":"ef5073375e48ae95b00788e7b32edfb92204f66a"},{"fixed":"95f1d5e4abb79fe85a54f7a46b41f297ce533c31"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143353.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.18.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143353.json"}}],"schema_version":"1.9.2"}