Skip to main content
Mallory
← Back to News
privilege-escalation-methodwidely-deployed-product-advisoryendpoint-software-vulnerability

Linux Kernel IP Tunnel Use-After-Free Enables Local Denial of Service

Attack Tradecraft · 2 sources · Updated 3mo ago · First seen Jul 8, 2024

Linux Kernel IP Tunnel Use-After-Free Enables Local Denial of Service

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)
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

8 events · May 23, 2024 – Jul 8, 2024
  1. Reported Jul 8, 20242y ago

    Red Hat releases RHEL 8.8 Extended Update Support fix

    Red Hat issued RHSA-2024:4740 to fix CVE-2024-26804 in the RHEL 8.8 Extended Update Support stream.

    CVE-2024-26804 - Red Hat Customer Portal
  2. Reported Jul 8, 20242y ago

    Red Hat updates RHEL 8.6 specialized support streams

    RHSA-2024:4447 delivered fixes for RHEL 8.6 Advanced Mission Critical Update Support, Telecommunications Update Service, and Update Services for SAP Solutions.

    CVE-2024-26804 - Red Hat Customer Portal
  3. Jul 8, 20242y ago

    Red Hat releases RHEL 8 kernel-rt fix

    Red Hat issued RHSA-2024:4352, providing RHEL 8 kernel-rt updates that fix CVE-2024-26804.

    CVE-2024-26804 - Red Hat Customer Portal
  4. Jul 2, 20242y ago

    Red Hat releases RHEL 8 kernel fix

    Red Hat issued RHSA-2024:4211 with RHEL 8 kernel updates that remediate CVE-2024-26804.

    CVE-2024-26804 - Red Hat Customer Portal
  5. May 29, 20243y ago

    Red Hat fixes RHEL 9.2 Extended Update Support streams

    RHSA-2024:3461 and RHSA-2024:3460 provided kernel and kernel-rt fixes, respectively, for Red Hat Enterprise Linux 9.2 Extended Update Support.

    CVE-2024-26804 - Red Hat Customer Portal
  6. May 23, 20243y ago

    Red Hat ships RHEL 9 kernel fix

    Red Hat released RHSA-2024:3306, providing RHEL 9 kernel updates that fix CVE-2024-26804.

    CVE-2024-26804 - Red Hat Customer Portal
  7. Reported Apr 4, 20243y ago

    Linux kernel CVE team assigns CVE-2024-26804 and releases fixes

    The Linux kernel CVE team assigned CVE-2024-26804 to the IPv4 IP-tunnel issue. Fixes that cap needed_headroom growth were included in stable kernel releases 5.4.271, 5.10.212, 5.15.151, 6.1.81, 6.6.21, 6.7.9, and 6.8.

    CVE-2024-26804: net: ip_tunnel: prevent perpetual headroom growth
  8. Reported Apr 4, 20243y ago

    Linux kernel flaw introduced in version 2.6.34

    The perpetual IP-tunnel headroom-growth flaw was introduced in Linux kernel 2.6.34 by commit 243aad830e8a. Recursive GRE and IPIP routing could ultimately trigger an out-of-bounds skb adjustment and use-after-free.

    CVE-2024-26804: net: ip_tunnel: prevent perpetual headroom growth
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.