CVE-2026-143353
not scored yetbpf: 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.
- Published
- 3 Dec 2026
- Last modified
- 3 Dec 2026
- Assigned by
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- NVD status
- Received
- Sources
- NVDJSONCVE ListJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Linux | Linux | >= fe94cc290f535709d3c5ebd1e472dfd0aec7ee79, < ef5073375e48ae95b00788e7b32edfb92204f66a; >= fe94cc290f535709d3c5ebd1e472dfd0aec7ee79, < 95f1d5e4abb79fe85a54f7a46b41f297ce533c31 | ef5073375e48ae95b00788e7b32edfb92204f66a, 95f1d5e4abb79fe85a54f7a46b41f297ce533c31 |
| CVE List | Linux | Linux | = 4.18 |
References
- https://git.kernel.org/stable/c/95f1d5e4abb79fe85a54f7a46b41f297ce533c31
- https://git.kernel.org/stable/c/ef5073375e48ae95b00788e7b32edfb92204f66a
History
- 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
- 3 Dec 2026 10:08 UTC · CVE List: first stored (published 3 Dec 2026)