Skip to main content
Vulnerability Database/CVE-2024-44999

CVE-2024-44999: Linux Kernel Use-After-Free Vulnerability

CVE-2024-44999 is a use-after-free flaw in the Linux Kernel GTP module affecting network header handling in gtp_dev_xmit(). This post explains the technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2024-44999 Overview

CVE-2024-44999 is a use of uninitialized memory vulnerability [CWE-908] in the Linux kernel's GPRS Tunneling Protocol (GTP) driver. The flaw resides in the gtp_dev_xmit() function in drivers/net/gtp.c, where the driver accessed IPv4 or IPv6 header fields without first ensuring the network header was pulled into skb->head. The condition was identified by syzbot using the Kernel Memory Sanitizer (KMSAN) and affects Linux kernel 6.11 release candidates along with earlier stable branches that received the GTP driver changes.

Critical Impact

A local user with the ability to send crafted packets through a GTP device can trigger reads of uninitialized kernel memory, leading to information disclosure and a kernel-level denial of service.

Affected Products

  • Linux Kernel (multiple stable branches prior to the fix)
  • Linux Kernel 6.11-rc1, 6.11-rc2, 6.11-rc3
  • Debian LTS distributions shipping affected kernel versions

Discovery Timeline

  • 2024-09-04 - CVE-2024-44999 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-44999

Vulnerability Analysis

The Linux kernel GTP driver tunnels user-plane IP traffic over UDP for mobile network functions. In gtp_dev_xmit(), the driver dispatches outbound packets to either gtp_build_skb_ip4() or gtp_build_skb_ip6() based on the inner protocol. Both paths dereference fields in the IPv4 or IPv6 header, including the destination address used by ipv6_pdp_find() to look up the Packet Data Protocol (PDP) context.

The driver assumed the network header was already linearized into skb->head. When a user sends a packet through AF_PACKET (for example, via packet_sendmsg()), the IP header may still reside in a paged fragment. Reading header fields in that state produces undefined behavior because the memory covered by the header pointer has not been initialized relative to the socket buffer's head region.

KMSAN reported the uninitialized read along the call path packet_sendmsg → dev_queue_xmit → gtp_dev_xmit → gtp_build_skb_ip6 → ipv6_pdp_find. The fix calls pskb_inet_may_pull() to pull and validate the inner IP header before the driver reads from it.

Root Cause

The root cause is a missing header-pull operation on the socket buffer. The GTP transmit path accessed struct iphdr or struct ipv6hdr fields through pointers into skb->data without guaranteeing those bytes were present in the linear portion of the sk_buff. This violates the kernel's socket buffer contract and allows observation of uninitialized slab memory allocated during __alloc_skb().

Attack Vector

Exploitation requires local access and the ability to open a raw socket, which typically needs CAP_NET_RAW or an equivalent capability. An attacker crafts a packet destined for a GTP interface so the inner IP header is not resident in the skb head. When the driver transmits the packet, it reads uninitialized bytes, which can leak kernel memory into subsequent processing paths or crash the kernel through downstream validation failures.

The vulnerability is not remotely exploitable over the network. It requires local packet injection capability on a host that has a GTP device configured.

No verified public exploit code is available for this condition. The reproducer originated from the syzbot fuzzing infrastructure and is referenced in the KMSAN report.

Detection Methods for CVE-2024-44999

Indicators of Compromise

  • KMSAN or KASAN splats referencing gtp_dev_xmit, gtp_build_skb_ip6, or ipv6_pdp_find in kernel logs on debug builds.
  • Unexpected kernel oops or panic entries in dmesg originating from the drivers/net/gtp.c call path.
  • Unexplained GTP tunnel interface resets or dropped PDP contexts on affected hosts.

Detection Strategies

  • Inventory running kernel versions against the fixed commits listed in the kernel.org stable tree advisories to identify unpatched hosts.
  • Audit which hosts have the gtp module loaded using lsmod | grep gtp; systems without the module are not exposed.
  • Monitor process creation and capability use for non-privileged workloads obtaining CAP_NET_RAW or opening AF_PACKET sockets against GTP interfaces.

Monitoring Recommendations

  • Forward kernel ring buffer events and auditd syscall records for socket() and sendto() to a centralized logging platform for correlation.
  • Alert on repeated short-lived processes that create raw sockets and target GTP tunnel devices.
  • Track module load and unload events for the gtp kernel module to detect unauthorized configuration changes on telecom-adjacent systems.

How to Mitigate CVE-2024-44999

Immediate Actions Required

  • Apply the vendor-supplied kernel update that includes the upstream patch to call pskb_inet_may_pull() in gtp_dev_xmit().
  • On Debian LTS systems, install the kernel package updates referenced in the October 2024 and January 2025 Debian LTS announcements.
  • Restrict CAP_NET_RAW and AF_PACKET socket creation to trusted service accounts using Linux capabilities and seccomp policies.

Patch Information

The upstream fix is applied across multiple stable branches via commits 137d565a, 1f6b6239, 34ba4f29, 3939d787, 3a3be7ff, 3d89d0c4, cbb9a969, and f5dda8db. See the kernel.org stable tree entries, for example kernel.org commit cbb9a969, and the Debian LTS Announcement (October 2024) and Debian LTS Announcement (January 2025).

Workarounds

  • Unload the gtp kernel module on systems that do not require GTP tunneling using modprobe -r gtp.
  • Blacklist the module by adding blacklist gtp to a file under /etc/modprobe.d/ to prevent automatic loading at boot.
  • Remove or deny CAP_NET_RAW from container workloads and unprivileged users that do not require raw packet injection.
bash
# Configuration example
# Prevent the vulnerable gtp module from loading until the kernel is patched
echo 'blacklist gtp' | sudo tee /etc/modprobe.d/disable-gtp.conf
echo 'install gtp /bin/false' | sudo tee -a /etc/modprobe.d/disable-gtp.conf
sudo rmmod gtp 2>/dev/null || true
sudo update-initramfs -u

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.