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

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

CVE-2024-44934 is a use-after-free vulnerability in the Linux Kernel bridge multicast functionality that can cause memory corruption during port removal. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

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-44934 Overview

CVE-2024-44934 is a use-after-free vulnerability [CWE-416] in the Linux kernel's network bridge multicast code. The flaw resides in net/bridge/br_multicast.c and affects the port removal logic. When a bridge port is removed, the kernel fails to wait for previous garbage collection (GC) cycles to complete before freeing port memory. Group timers can continue to reference freed port structures, triggering memory corruption. The syzbot fuzzer discovered the issue through KASAN instrumentation in function br_multicast_port_group_expired(). A local attacker with the ability to manipulate bridge configuration can trigger kernel memory corruption, leading to privilege escalation or denial of service.

Critical Impact

Local attackers with CAP_NET_ADMIN capability can trigger a kernel use-after-free in bridge multicast handling, potentially leading to privilege escalation, information disclosure, or system crash.

Affected Products

  • Linux Kernel versions prior to the fix in stable branches
  • Linux Kernel 6.11-rc1 and 6.11-rc2 release candidates
  • Debian LTS distributions shipping affected kernels

Discovery Timeline

  • 2024-08-26 - CVE-2024-44934 published to NVD
  • 2026-08-04 - Last updated in NVD database

Technical Details for CVE-2024-44934

Vulnerability Analysis

The vulnerability is a race condition between bridge port removal and multicast garbage collection cycles. The Linux bridge subsystem uses a garbage collection mechanism to clean up expired multicast group entries. When a port is removed from a bridge, the removal path acquires the GC lock and invokes br_multicasg_gc() directly to clean up related state.

The problem arises when a GC cycle is already in progress on another CPU. CPU 1 starts a GC cycle and waits to acquire the lock. CPU 2, executing the port removal path, acquires the lock first, calls the direct GC function, and proceeds to free the port. CPU 1 then acquires the lock and operates on a freed port while group timers continue running against the released memory.

The KASAN report identifies the dereference in br_multicast_port_group_expired() at net/bridge/br_multicast.c:861, triggered through the timer expiration path __run_timers() → call_timer_fn().

Root Cause

The root cause is the absence of synchronization with pending work items before freeing the bridge port. The removal code did not call flush_work() on outstanding GC work before releasing port memory. Timers scheduled against the port could fire after the port structure was freed, dereferencing invalid pointers.

Attack Vector

Exploitation requires local access and privileges sufficient to configure network bridges, typically CAP_NET_ADMIN. An attacker races bridge port removal operations against multicast group timer expirations to trigger the use-after-free. Successful exploitation can corrupt kernel memory, enabling privilege escalation to root or causing a kernel panic. The vulnerability does not require user interaction and can be triggered through the standard netlink or ioctl bridge configuration interfaces.

The patch addresses the issue by invoking flush_work() to ensure all previous GC cycles have finished before the port structure is freed. See the upstream fix in Kernel Commit 92c4ee25.

Detection Methods for CVE-2024-44934

Indicators of Compromise

  • Kernel panic or oops messages referencing br_multicast_port_group_expired or br_multicasg_gc
  • KASAN slab-use-after-free reports in net/bridge/br_multicast.c when KASAN is enabled
  • Unexpected process privilege changes following bridge configuration activity
  • System crashes correlated with rapid bridge port add/remove operations

Detection Strategies

  • Monitor kernel logs via dmesg and journalctl for bridge subsystem errors and timer-related oops traces
  • Audit netlink traffic for abnormal patterns of bridge port removal operations from unprivileged contexts
  • Deploy kernel versions built with KASAN in test environments to surface memory corruption during fuzzing
  • Track usage of CAP_NET_ADMIN capability by non-administrative processes

Monitoring Recommendations

  • Enable kernel audit rules for brctl, ip link, and bridge-related netlink syscalls
  • Correlate kernel crash telemetry with user session activity to identify suspicious patterns
  • Alert on repeated kernel soft lockups or panics on systems using bridge networking
  • Review container runtime logs where privileged containers manage virtual bridges

How to Mitigate CVE-2024-44934

Immediate Actions Required

  • Apply the Linux kernel updates referenced in the stable tree commits as soon as vendor packages are available
  • Update to patched kernel packages from your distribution, including the Debian LTS Announcement
  • Restrict CAP_NET_ADMIN capability to trusted administrative accounts and workloads
  • Audit container configurations to remove unnecessary NET_ADMIN grants in untrusted workloads

Patch Information

The fix is distributed across multiple stable kernel branches. Relevant commits include Kernel Commit 0d8b26e, Kernel Commit 1e168280, Kernel Commit 92c4ee25, Kernel Commit b2f794b1, and Kernel Commit e3145ca9. The patch introduces flush_work() before freeing the port to ensure outstanding garbage collection work completes safely.

Workarounds

  • Disable bridge multicast snooping where functionally acceptable using sysfs or ip link configuration
  • Avoid dynamic bridge port add/remove operations on production hosts until patches are applied
  • Restrict user namespace creation for untrusted users to prevent unprivileged bridge manipulation
  • Isolate workloads requiring bridge networking in dedicated, fully patched hosts
bash
# Verify running kernel version and check for bridge multicast snooping state
uname -r
cat /sys/class/net/<bridge-name>/bridge/multicast_snooping

# Temporarily disable multicast snooping on an existing bridge
ip link set dev <bridge-name> type bridge mcast_snooping 0

# Restrict CAP_NET_ADMIN inside containers (Docker example)
docker run --cap-drop=NET_ADMIN <image>

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.