Linux Kernel IP Tunnel Use-After-Free Enables Local Denial of Service
Attack Tradecraft · 2 sources · Updated 3mo ago · First seen Jul 8, 2024

CVE-2024-26804 is a use-after-free flaw in the Linux kernel's IPv4 ip_tunnel infrastructure that allows a low-privileged local user to crash an affected system. Recursive GRE or IPIP tunnel routing can cause a tunnel device's needed_headroom to increase indefinitely; after the packet buffer headroom exceeds 64 KiB, the 16-bit skb->network_header field can wrap, resulting in an out-of-bounds packet-buffer adjustment and use-after-free condition.
The issue has existed since kernel version 2.6.34 and is fixed in stable releases 5.4.271, 5.10.212, 5.15.151, 6.1.81, 6.6.21, 6.7.9, and 6.8 or later. Red Hat rates the issue as moderate severity with CVSS 5.5 and has issued updates for affected RHEL 8 and 9 streams; RHEL 6 is unsupported and should be considered affected. Organizations should deploy vendor kernel updates or move to a current stable kernel release rather than cherry-picking the individual patch.
Why it matters
Impact assessment
CVE-2024-26804 enables a low-privileged local user to crash vulnerable Linux hosts, causing system-level denial of service. Exposure is broad across Linux kernel versions derived from 2.6.34 through the fixed releases, but exploitation requires local access and a recursive GRE/IPIP tunnel routing configuration; no in-the-wild exploitation is reported in the supplied references.
- Affected populations: Linux servers, virtualized hosts, network appliances, and container hosts running vulnerable kernels with IPv4 tunnel functionality and attacker-controlled or attacker-influenced tunnel/routing configuration.
- Primary consequence: kernel use-after-free leading to host crash and operational disruption. This can interrupt workloads, networking, and services hosted on the affected node.
- Severity: Red Hat rates the issue Moderate, CVSS 3.1 5.5 (
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H). The CVE record also lists 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H); the supplied technical description establishes denial of service as the demonstrated outcome. - Scope: not remotely reachable by default. Risk increases on multi-user systems, shared compute platforms, and environments where untrusted users can create or influence GRE/IPIP tunnels and routes.
- RHEL 6 is unsupported and should be treated as affected. Layered Red Hat products consuming vulnerable kernels may also be affected.
Structured facts
- CVE:
CVE-2024-26804 - Weakness: use-after-free; associated CWE:
CWE-770(Allocation of Resources Without Limits or Throttling) - Component: Linux IPv4 IP tunnel infrastructure,
net/ipv4/ip_tunnel.c - Vendor tracking: Red Hat Bugzilla
2273423(kernel: net: ip_tunnel: prevent perpetual headroom growth)


