AZL-117788: CVE-2026-142955 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
fou: reserve headroom before pushing the encap header
iptunnelxmit() and ipmdtunnelxmit() push the encap header before reserving headroom. A packet redirected into the tunnel (tc mirred, nft fwd/dup) keeps the headroom of its original device, so foubuildudp() panics:
kernel BUG at net/core/skbuff.c:214! Call Trace: skbpush+0xcc/0xf0 foubuildudp+0x2f/0x380 guebuildheader+0xfa/0x150 iptunnelxmit+0x87f/0x21c0
With a mirred mirror, the push overwrites the original packet instead. Reachable with CAPNETADMIN in a user namespace.
Reserve the headroom in foubuildheader() and guebuildheader(); GUE sizes and builds the header from one copy of the encap fields. The skb head may move, so reload inneriph after iptunnelencap() and read tnlparams, which points into the head for GRE with headerops, before the call. sit's ipip6tunnelxmit() holds no head pointer across it.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the kernel tunnel code, reserve headroom in fou_build_header() and gue_build_header() before pushing the encapsulation header; reload inner_iph after ip_tunnel_encap() and read tnl_params before the call.
Event History
Frequently Asked Questions
Who can trigger this issue?
The issue is reachable by an attacker with CAP_NET_ADMIN in a user namespace. It involves packets redirected into a tunnel, including through tc mirred or nft fwd/dup.
What is the impact of exploitation?
Malformed headroom handling can cause fou_build_udp() to panic with a kernel BUG, creating a denial-of-service condition. When using a mirred mirror, the header push can instead overwrite the original packet.
What configurations are implicated?
Affected traffic uses FOU or GUE encapsulation and is redirected into a tunnel while retaining the original device's packet headroom. The provided information does not establish whether this is enabled or reachable in a default configuration.