AZL-118649: CVE-2026-143353 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
bpf: Don't let lwtin progs call into IPv6 when it is disabled
With ipv6.disable=1, inet6init() returns before it registers any pernet subsystem. Thus net->ipv6.devconfall and net->ipv6.seg6data stay NULL. ISENABLED(CONFIGIPV6) only says that the code is built in. bpflwtinputreroute() and bpfpushseg6encap() call into IPv6, but do not test ipv6modenabled(). An lwtin prog also runs with ipv6.disable=1, and skb->protocol == htons(ETHPIPV6) does not prove that IPv6 is enabled. Thus the kernel dereferences NULL and crashes.
Return -EAFNOSUPPORT before these calls if ipv6modenabled() is false. BPFLWTREROUTE then drops an IPv6 skb. With IPv6 enabled nothing changes.
The first Fixes tag is for bpfpushseg6encap(), which never had this test. The second tag is for bpflwtinputreroute(). Until that commit it used ipv6stub, which returned -EAFNOSUPPORT with ipv6.disable=1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In bpf_lwt_input_reroute() and bpf_push_seg6_encap(), return -EAFNOSUPPORT before calling into IPv6 when ipv6_mod_enabled() is false.
Event History
Frequently Asked Questions
Which systems are exposed to the crash condition?
Systems that have IPv6 disabled with ipv6.disable=1 and run BPF lwt_in programs that invoke the affected IPv6 paths are exposed. Systems with IPv6 enabled are not affected by the described behavior.
What must an attacker or workload be able to do to trigger the issue?
The triggering condition requires an lwt_in BPF program to call bpf_lwt_input_reroute() or bpf_push_seg6_encap() while IPv6 is disabled, with an IPv6 skb reaching the program. The result described is a NULL-pointer dereference and kernel crash.
What is the operational impact if the vulnerable path is reached?
The kernel can dereference NULL IPv6 per-network state and crash, creating a denial-of-service condition. For BPF_LWT_REROUTE, the corrected behavior when IPv6 is disabled is to drop the IPv6 skb and return -EAFNOSUPPORT.
What mitigation is available if the fix cannot be applied immediately?
Avoid running lwt_in BPF programs that call bpf_lwt_input_reroute() or bpf_push_seg6_encap() while ipv6.disable=1 is in effect. Enabling IPv6 also avoids the described NULL-state condition, though its suitability depends on the environment.