⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

CVE-2026-142955: Linux Kernel FOU/GUE Tunnel Headroom Flaw | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-142955: Linux Kernel FOU/GUE Tunnel Headroom Flaw

Executive summary

CVE-2026-142955 affects the Linux kernel's Foo-over-UDP (FOU) and Generic UDP Encapsulation (GUE) tunnel code. The defect appears when an existing packet is redirected into a tunnel rather than created through a path that allocates suitable socket-buffer headroom.

The tunnel transmit routines ip_tunnel_xmit() and ip_md_tunnel_xmit() can push an encapsulation header before the necessary headroom has been reserved. A packet redirected through tc mirred, nft fwd, or nft dup may retain the headroom layout of its original device. In the FOU path, this can trigger a kernel BUG at net/core/skbuff.c:214; under a tc mirred mirror, it can instead overwrite the original packet data.

The issue is locally reachable with CAP_NET_ADMIN in a user namespace. That makes it most relevant to multi-tenant and containerized systems where tenants can create network namespaces and configure tunnel-related networking. The supplied records contain no evidence of exploitation in the wild, no CVSS vector, no CISA Known Exploited Vulnerabilities listing, and no fixed-version boundary.

Technical overview

The Linux kernel represents packets with sk_buff structures that include a data pointer and a reserved region known as headroom. Tunnel encapsulation requires space ahead of the packet data so that the kernel can prepend an outer header without writing outside the allocated buffer.

The affected implementation used the wrong order of operations: it pushed the encapsulation header and only afterward attempted to reserve the required headroom. This works safely for some tunnel-created packets because their buffers may already have adequate space. It becomes unsafe for redirected packets that preserve the headroom inherited from another network device.

The documented failure trace is:

skb_push+0xcc/0xf0

fou_build_udp+0x2f/0x380

gue_build_header+0xfa+0x150

ip_tunnel_xmit+0x87f/0x21c0

Two outcomes are identified in the advisory record:

  • Kernel panic: fou_build_udp() encounters the kernel BUG at net/core/skbuff.c:214 while calling skb_push().

  • Packet corruption: during a tc mirred mirror operation, the push can overwrite the original packet instead of failing visibly.

The resolution also addresses pointer invalidation caused by reserving headroom. Because the packet head may move, the kernel must reload inner_iph after ip_tunnel_encap() and read tnl_params before that call. For GRE with header_ops, tnl_params points into the packet head. The sit implementation's ipip6_tunnel_xmit() does not retain a head pointer across the relevant operation.

Affected systems

  • Product: Linux kernel

  • Affected components: FOU and GUE tunnel encapsulation code under net/ipv4/, including fou_build_header(), gue_build_header(), and the tunnel transmit paths that interact with them

  • Affected versions: The supplied context does not identify a precise kernel version range, fixed release, or vulnerable commit.

  • Required configuration: A FOU or GUE tunnel interface must exist, and traffic must be steered into it through a path such as tc mirred, nft fwd, or nft dup.

  • Required privilege: CAP_NET_ADMIN in a user namespace

  • Patch status: The upstream correction is described, but the supplied records do not map it to specific released kernels or vendor builds.

Although MSRC lists CVE-2026-142955 in its update guide, the provided material contains no Microsoft product, Windows build, Azure configuration, or other platform mapping. Exposure therefore needs to be evaluated against the actual Linux kernel source and vendor package used by each deployment.

Attack path and prerequisites

The vulnerability is not presented as a general-purpose remote exploit against an unmodified host. Its practical reach depends on several environmental conditions:

  1. FOU or GUE functionality is enabled through a configured tunnel interface.

  1. Traffic is mirrored or redirected into that interface through tc mirred, nft fwd, or nft dup.

  1. The actor can obtain CAP_NET_ADMIN inside a user namespace.

  1. The running kernel contains the vulnerable ordering of headroom reservation and encapsulation-header construction.

These conditions can plausibly exist in shared container hosts, cloud infrastructure, and environments using tunnels for overlay or service-mesh networking. A user with namespace-scoped administrative capability may be able to arrange the trigger without holding host-root privileges.

Impact assessment

The most direct impact is local denial of service through a kernel panic. The mirrored-packet variant may corrupt data without producing an equally obvious crash, potentially affecting the integrity of captured or duplicated traffic.

The supplied intelligence does not indicate active exploitation, public proof-of-concept use, campaign involvement, or ransomware use. It also provides no CVSS score or vector from which to reproduce an official severity rating. There is no evidence in the context of remote code execution, privilege escalation, or kernel memory disclosure.

The practical severity is therefore assessed as low. Triggerability is constrained by configuration and capability requirements, while the most severe plausible consequence is a host-kernel crash. The risk can increase in systems that routinely grant CAP_NET_ADMIN to tenant workloads and expose tunnel and traffic-steering functionality.

Mitigation

Kernel remediation

The upstream fix reserves headroom in fou_build_header() and gue_build_header() before pushing an encapsulation header. It also builds the GUE header from one copy of the encapsulation fields and handles packet-head movement by reloading inner_iph after ip_tunnel_encap() and reading tnl_params before the call.

Deploy a kernel containing that correction and verify the running kernel after reboot, rather than relying only on an installed package version. The exact fixed package or kernel release cannot be identified from the supplied context.

Interim hardening

Where an update is not yet available:

  • Restrict CAP_NET_ADMIN and user-namespace creation for untrusted workloads.

  • Prevent tenant workloads from creating FOU or GUE interfaces through container capability profiles, seccomp rules, or an LSM policy.

  • Avoid using tc mirred or nft fwd/dup to steer traffic into FOU or GUE tunnels.

  • Where practical, use a tunnel path that constructs the packet with suitable headroom instead of redirecting an existing packet.

  • Audit active fou and gue interfaces, mirroring rules, and nftables forwarding or duplication actions.

Detection

Monitor kernel logs and node telemetry for:

  • kernel BUG at net/core/skbuff.c:214

  • Call traces containing skb_push, fou_build_udp, gue_build_header, and ip_tunnel_xmit

  • Unexpected container or namespace creation of fou or gue interfaces

  • Integrity failures in mirrored or duplicated traffic

A matching crash trace is a strong indicator that the vulnerable path was reached.

Expert insight

This is primarily a packet-buffer invariant failure rather than a parsing flaw. The critical distinction is between packets newly created for a tunnel and packets redirected from another device. Reuse of an existing sk_buff carries assumptions about its current headroom that the tunnel path did not satisfy.

The pointer-handling details in the resolution are equally important. Reserving headroom may relocate the packet head, so cached pointers into that head can become stale. A narrowly applied fix that only moves the reservation call could leave secondary use-after-move or invalid-reference behavior. Validation should therefore cover both the immediate crash and the revised pointer lifetimes.

User-namespace reachability also changes how the vulnerability should be understood. It is not equivalent to unauthenticated network access, but it can materially lower the barrier on shared Linux hosts. The combination of namespace-scoped network administration, tunnel creation, and traffic mirroring is the area where this otherwise low-severity defect is most likely to matter.

Actionable recommendations

  1. Inventory Linux hosts that run FOU or GUE interfaces, especially shared container and cloud nodes.

  1. Compare the running kernel with vendor advisories and upstream fixes to determine whether the headroom-reservation correction is present.

  1. Apply the relevant vendor kernel update and confirm the active kernel version after reboot.

  1. Review container and workload capability policies for namespace-scoped CAP_NET_ADMIN.

  1. Audit tc and nftables rules that mirror, forward, or duplicate packets into FOU or GUE tunnels.

  1. Alert on the documented net/core/skbuff.c:214 signature and related tunnel-header call traces.

  1. Validate mirrored traffic integrity where packet duplication is operationally important.

منابع

·
← اخبار