AZL-118643: CVE-2026-143351 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
bpf: Check the offset in bpfskbgeneric{push,pop}()
To make room for len bytes at offset off, bpfskbgenericpush() moves the first off bytes and clears len bytes after them. It assumes that the first off bytes are in the linear part. But in bpfskbadjustroom() off can be the end of the IP header, and this header can be in a frag. Then the function reads and writes after skb->tail, and can damage skbsharedinfo.
bpfskbgenericpop() checks off + len, but this u32 sum can wrap to a small value. bpfskbadjustroom() and bpfskbchangeproto() calculate off from skbmacheaderlen(). This length is a very large u32 when networkheader < macheader. Then the check can pass, and memmove() reads and writes far outside the skb.
Return -ENOMEM from both functions, like the present check, when off > skb->len. Thus the sum cannot wrap. In bpfskbgenericpush() also pull the first off bytes into the linear part. Now bpfskbadjustroom() fails when a prog grows an skb that ends before off. networkheader stays wrong.
Affected Software
Event History
Frequently Asked Questions
What conditions are required for exploitation?
An attacker needs a BPF program that invokes skb adjustment or protocol-change paths leading to bpf_skb_generic_push() or bpf_skb_generic_pop(). The vulnerable conditions involve packet header offsets that are outside the linear skb area, invalid header ordering, or an offset-plus-length value that wraps.
What could the vulnerability affect?
The affected code can read from and write beyond skb bounds. This can damage skb_shared_info or cause memmove() to access memory far outside the skb.
How can I tell whether my kernel contains the fix?
The resolved behavior rejects operations when the calculated offset is greater than skb->len, preventing offset-plus-length wraparound. It also pulls the first offset bytes into the linear skb area before growing the skb in bpf_skb_generic_push().
What is the documented mitigation if the kernel cannot be updated immediately?
No temporary mitigation is provided in the available data. The described resolution is to use a kernel containing the bounds checks and linearization changes.