AZL-118664: CVE-2026-143358 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
bpf: Set a dst for test runs of lwtin progs
When an lwt prog runs on a route, the skb always has a dst. To push an SRH, bpflwtpushencap() reads the device from this dst. But bpfprogtestrunskb() sets a dst for lwtxmit progs only. Thus the helper dereferences a NULL dst in a test run of an lwtin prog.
Set the same dst, ip6nullentry, for lwtin progs. When IPv6 is disabled or not built, their test run now fails with -EOPNOTSUPP too. An lwtout prog cannot call this helper.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger the issue?
An attacker or tester needs to run an lwt_in BPF program through bpf_prog_test_run_skb() and have that program call bpf_lwt_push_encap(). The failure occurs because the test-run skb lacks a destination entry that the helper dereferences.
Does this affect normal lwt program execution on routes?
The described NULL dereference is specific to test runs. When an lwt program runs on a route, the skb already has a destination entry.
What happens when IPv6 is disabled or not built?
After the fix, test runs of affected lwt_in programs fail with -EOPNOTSUPP when IPv6 is disabled or unavailable. An lwt_out program cannot call the affected helper.