Linux Kernel BPF LWT NULL Deref When IPv6 Disabled
CVE-2026-143353 Published on December 3, 2026
bpf: Don't let lwt_in progs call into IPv6 when it is disabled
In the Linux kernel, the following vulnerability has been resolved:
bpf: Don't let lwt_in progs call into IPv6 when it is disabled
With ipv6.disable=1, inet6_init() returns before it registers any pernet
subsystem. Thus net->ipv6.devconf_all and net->ipv6.seg6_data stay NULL.
IS_ENABLED(CONFIG_IPV6) only says that the code is built in.
bpf_lwt_input_reroute() and bpf_push_seg6_encap() call into IPv6, but do
not test ipv6_mod_enabled(). An lwt_in prog also runs with ipv6.disable=1,
and skb->protocol == htons(ETH_P_IPV6) does not prove that IPv6 is enabled.
Thus the kernel dereferences NULL and crashes.
Return -EAFNOSUPPORT before these calls if ipv6_mod_enabled() is false.
BPF_LWT_REROUTE then drops an IPv6 skb. With IPv6 enabled nothing changes.
The first Fixes tag is for bpf_push_seg6_encap(), which never had this
test. The second tag is for bpf_lwt_input_reroute(). Until that commit it
used ipv6_stub, which returned -EAFNOSUPPORT with ipv6.disable=1.
Products Associated with CVE-2026-143353
Want to know whenever a new CVE is published for Linux Kernel? stack.watch will email you.
Affected Versions
Linux:- Version fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 and below ef5073375e48ae95b00788e7b32edfb92204f66a is affected.
- Version fe94cc290f535709d3c5ebd1e472dfd0aec7ee79 and below 95f1d5e4abb79fe85a54f7a46b41f297ce533c31 is affected.
- Version 4.18 is affected.
- Before 4.18 is unaffected.
- Version 7.3.7, <= 7.3.* is unaffected.
- Version 7.4-rc2, <= * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.