CVE-2026-142955: fou: reserve headroom before pushing the encap header
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 Linux kernel, reserve headroom in fou_build_header() and gue_build_header() before pushing the encapsulation header. After ip_tunnel_encap(), reload inner_iph; read tnl_params before the call when it points into the head, and size and build the header from one copy of the encapsulation fields.
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using FOU or GUE encapsulation are exposed when packets are redirected into a tunnel, including through tc mirred or nftables fwd/dup handling. Redirected packets retain the headroom of their original device, which can be insufficient for the encapsulation header.
What does an attacker need to trigger the vulnerability?
The issue is reachable by an attacker with CAP_NET_ADMIN in a user namespace. The attacker must be able to arrange traffic redirection into the affected tunnel path.
What is the observable impact?
The affected path can trigger a kernel BUG in skb_push through fou_build_udp(), causing a kernel panic. With a mirred mirror configuration, the header push can instead overwrite the original packet.
How can I identify a likely occurrence?
A crash may include a call trace containing skb_push, fou_build_udp, gue_build_header, and ip_tunnel_xmit. The reported failure is a kernel BUG at net/core/skbuff.c:214.