AZL-118670: CVE-2026-143360 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
bpf: Don't let bpfskbadjustroom() raise gsosize to GSOBYFRAGS
When bpfskbadjustroom() shrinks a TCP GSO skb, it adds the number of removed bytes to gsosize. gsosize has 16 bits, and nothing checks the sum. Thus gsosize can wrap to 0 or to a small size, or it can be GSOBYFRAGS. GSOBYFRAGS is not a size. It tells skbsegment() to read the length of each segment from the fraglist. If the TCP GSO skb has no fraglist, skbsegment() dereferences a NULL pointer.
Return -ENOTSUPP and do not change the skb if the sum is GSOBYFRAGS or larger. With BPFFADJROOMFIXEDGSO the helper does not change gsosize, so it shrinks the skb as before.
Affected Software
Event History
Frequently Asked Questions
What must an attacker be able to do to trigger the vulnerable path?
They need to invoke bpf_skb_adjust_room() on a TCP GSO skb in a way that shrinks the packet and causes the resulting gso_size to reach GSO_BY_FRAGS or overflow beyond it. The issue arises when the skb has no frag_list and later reaches skb_segment().
What is the impact when the affected condition is reached?
A gso_size value of GSO_BY_FRAGS causes skb_segment() to treat the value as a request to read segment lengths from frag_list. If the TCP GSO skb has no frag_list, this results in a NULL-pointer dereference.
Is there a safer helper mode that avoids changing gso_size?
Yes. When BPF_F_ADJ_ROOM_FIXED_GSO is used, the helper does not modify gso_size and continues shrinking the skb as before.
What does the resolved behavior do for unsafe gso_size values?
The resolved behavior returns -ENOTSUPP and leaves the skb unchanged when adding the removed-byte count would make gso_size equal to GSO_BY_FRAGS or larger.