AZL-118655: CVE-2026-143355 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
bpf: Reset skb->cb after an lwt prog pushes an IP header
IPCB(skb)->opt holds the offsets from the network header to the IPv4 options. But bpflwtpushipencap() moves the network header and does not change IPCB(skb). Then ipforwardoptions() and ipoptionsecho() use the old offsets on the pushed header. Thus the kernel corrupts the skb and the stack. If the family changes, the kernel also reads IP6CB(skb) as IPCB(skb), or the reverse. With CONFIGIPV6MIP6, it reads IPSKBFORWARDED as fragmaxsize and adds a needless fragment header.
Reset skb->cb after the prog. bpflwtpushipencap() cannot do it, because bpfprogrunsavecb() can restore skb->cb. For IPv4 in IPv4, clear IPCB(skb)->opt as iptunnelxmit() does. If the family changes, clear the cb of the new family but keep iif, because ip6forward() gets the input device from it. Behind a VRF, skb->skbiif is the VRF device and cannot replace iif. Do nothing for IPv6 in IPv6, as in seg6dosrhencap().
Do the reset in bpfinput() only after a push. Without a push, ipforwardoptions() needs the offsets. Do it in bpfxmit() before each reroute, because an lwtxmit prog can also change the options. Thus after a reroute without a push, ipoptionsfragment() leaves the options in all fragments, and ICMP errors echo none. After BPFOK or BPFREDIRECT the skb goes to a device, thus bpfxmit() does no reset. The inner IPv4 checksum can still be wrong after iprcvoptions() changes an option.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Reset skb->cb after an LWT BPF program pushes an IP header. In bpf_input(), reset it only after a push; clear the control block for the new address family while preserving skb_iif. Do not reset for IPv6-in-IPv6 encapsulation.
Event History
Frequently Asked Questions
What traffic paths are exposed to this issue?
Exposure requires an LWT BPF program to push an IP encapsulation header. The problematic handling occurs after that push when forwarding or rerouting processes packet control-block data, particularly where IPv4 options or an IP-family change are involved.
Are systems using LWT BPF programs affected if those programs do not push an IP header?
The described reset is only needed after a header push. Without a push, forwarding still needs the existing IPv4 option offsets, so this specific corruption condition is not described for that path.
Does IPv6 configuration change the impact?
When the encapsulation changes address family, stale control-block data can be interpreted as belonging to the wrong IP family. With CONFIG_IPV6_MIP6 enabled, the issue can also cause a needless IPv6 fragment header to be added.