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

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

CVE-2024-50033 is a use-after-free flaw in the Linux Kernel SLIP driver affecting packet validation in slhc_remember(). This article covers technical details, affected versions, security impact, 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-50033 Overview

CVE-2024-50033 is a kernel vulnerability in the Linux SLIP (Serial Line Internet Protocol) compression handler. The function slhc_remember() in drivers/net/slip/slhc.c only verified that incoming packets were at least 20 bytes long. That check is insufficient because the function dereferences IPv4 and TCP headers nested within the packet. Malicious or malformed packets delivered through the PPP receive path trigger a read of uninitialized kernel memory, flagged by the KMSAN sanitizer in syzbot testing. The flaw is tracked under [CWE-908: Use of Uninitialized Resource].

Critical Impact

A local attacker with the ability to send crafted PPP frames can trigger uninitialized memory reads in the kernel, leading to information disclosure or kernel crashes affecting system availability.

Affected Products

  • Linux kernel versions prior to the patched stable releases listed by kernel.org
  • Linux kernel 6.12-rc1 and 6.12-rc2 development builds
  • Downstream distributions including Debian LTS and Siemens industrial products referencing SSA-265688 and SSA-355557

Discovery Timeline

  • 2024-10-21 - CVE-2024-50033 published to NVD
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2024-50033

Vulnerability Analysis

The vulnerability resides in slhc_remember(), which reconstructs TCP/IP headers for SLIP Van Jacobson compression. The function assumed any packet of 20 bytes or more contained both a valid IPv4 header and a TCP header. In practice, the IPv4 header can declare an Internet Header Length (IHL) that pushes the TCP header past the end of the actual skb data. The function then reads header fields such as source address, destination address, and TCP ports from memory that was never initialized by the caller.

The syzbot reproducer reaches the code through pppoe_sendmsg() -> sk_backlog_rcv() -> ppp_input() -> ppp_receive_nonmp_frame() -> slhc_remember(). The sanitizer report confirms the uninitialized read originates from an skb allocated in sock_wmalloc() whose payload was never fully populated.

Root Cause

The root cause is insufficient length validation. The pre-patch code checked only isize < 20 before casting the packet buffer to IP and TCP header structures. The fix adds explicit iph and th pointers and validates that the packet is large enough to contain both the IPv4 header (based on the declared IHL) and the full TCP header before any field is dereferenced.

Attack Vector

Exploitation requires local access and the ability to send frames through a PPP or PPPoE socket. The CVSS vector AV:L/AC:L/PR:L reflects that an authenticated local user can trigger the condition through standard socket system calls such as sendmmsg(). Successful triggering yields high confidentiality impact through kernel memory disclosure and high availability impact through potential kernel panics, with no integrity impact.

No public proof-of-concept exploit code is available beyond the syzbot KMSAN report that led to the fix. See the upstream kernel commit for the authoritative patch and reproducer details.

Detection Methods for CVE-2024-50033

Indicators of Compromise

  • Kernel log entries referencing KMSAN: uninit-value in slhc_remember or crashes in ppp_receive_nonmp_frame
  • Unexpected kernel oops or panic traces originating from drivers/net/slip/slhc.c or drivers/net/ppp/ppp_generic.c
  • Unusual process activity invoking sendmmsg() against PPPoE sockets by non-administrative users

Detection Strategies

  • Inventory running kernels using uname -r and compare against the fixed stable branches published on kernel.org
  • Monitor for loading of the slhc, ppp_generic, and pppoe modules on hosts where PPP is not an operational requirement
  • Review audit logs for socket creation with AF_PPPOX by unexpected user accounts

Monitoring Recommendations

  • Forward kernel ring buffer (dmesg) and /var/log/kern.log to a centralized logging platform for anomaly review
  • Alert on repeated PPP driver errors or kernel sanitizer warnings on production hosts
  • Track package versions of linux-image-* across the fleet to confirm patch deployment status

How to Mitigate CVE-2024-50033

Immediate Actions Required

  • Apply the kernel updates referenced in the vendor advisories from kernel.org, Debian LTS, and Siemens ProductCERT
  • Where immediate patching is not feasible, unload and blacklist the slhc, ppp_generic, and pppoe modules on systems that do not require PPP connectivity
  • Restrict unprivileged user access to raw socket and PPPoE socket creation capabilities

Patch Information

Upstream fixes are available in the stable tree commits 29e8d96, 36b0543, 5e33638, 7d3fce8, 8bb79eb, and ff5e0f8. Distribution packages are tracked in the Debian LTS January 2025 announcement and the March 2025 follow-up. Industrial users should consult Siemens SSA-265688 and Siemens SSA-355557.

Workarounds

  • Blacklist the SLIP and PPP modules via /etc/modprobe.d/ on systems that do not need dial-up or PPPoE support
  • Enforce least-privilege user policies to prevent untrusted accounts from opening PPPoE sockets
  • Use kernel lockdown or seccomp policies to constrain the system call surface available to unprivileged workloads
bash
# Configuration example: disable vulnerable SLIP/PPP modules
echo 'blacklist slhc'        | sudo tee /etc/modprobe.d/disable-slip.conf
echo 'blacklist ppp_generic' | sudo tee -a /etc/modprobe.d/disable-slip.conf
echo 'blacklist pppoe'       | sudo tee -a /etc/modprobe.d/disable-slip.conf
sudo rmmod pppoe ppp_generic slhc 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.