Skip to main content
CVE Vulnerability Database
Vulnerability Database/CVE-2026-68161

CVE-2026-68161: Linux Kernel Race Condition Vulnerability

CVE-2026-68161 is a race condition vulnerability in the Linux kernel affecting SCTP UDP tunnel socket handling during namespace teardown. This article covers the technical details, affected versions, and mitigation.

Published:

CVE-2026-68161 Overview

CVE-2026-68161 is a Linux kernel vulnerability in the Stream Control Transmission Protocol (SCTP) subsystem. The flaw resides in the handling of per-net SCTP UDP tunneling sockets during network namespace (netns) teardown. The function proc_sctp_do_udp_port() starts these sockets when net.sctp.udp_port is set and stops or restarts them when the sysctl value changes. The netns exit path does not close these sockets, allowing a namespace to be destroyed while its SCTP UDP tunnel sockets remain installed.

Critical Impact

A network-reachable condition tied to network namespace teardown can leave SCTP UDP tunnel sockets in an inconsistent state, exposing the kernel to memory safety issues affecting confidentiality, integrity, and availability.

Affected Products

  • Linux kernel versions containing the SCTP UDP tunneling implementation prior to the referenced fix commits
  • Distributions shipping vulnerable stable kernel branches
  • Systems using SCTP with net.sctp.udp_port configured in one or more network namespaces

Discovery Timeline

  • 2026-08-10 - CVE-2026-68161 published to the National Vulnerability Database (NVD)
  • 2026-08-13 - Last updated in NVD database

Technical Details for CVE-2026-68161

Vulnerability Analysis

The defect lives in the SCTP UDP encapsulation path of the Linux kernel networking stack. SCTP supports tunneling its traffic over UDP, and the kernel maintains per-namespace UDP sockets to receive that traffic. Administrators enable the feature by writing a value to the sysctl net.sctp.udp_port, which invokes proc_sctp_do_udp_port() to bind or rebind the tunnel sockets.

When a network namespace exits, the teardown path does not close these tunnel sockets. Concurrently, a sysctl write can race with namespace destruction, leaving dangling socket references bound to a namespace that is being released. This mismatch between socket lifetime and namespace lifetime is the core defect.

Root Cause

The root cause is missing cleanup logic in the netns exit sequence for SCTP UDP tunnel sockets. The fix closes these sockets from sctp_ctrlsock_exit() after the per-net sysctl table is unregistered. Unregistering the sysctl first prevents new sysctl writes from racing while the sockets are released, and the sockets are closed before the SCTP control socket itself is destroyed.

Attack Vector

The attack vector is network-adjacent to kernel state changes tied to namespace lifecycle. An attacker able to influence namespace creation and destruction, or to trigger sysctl activity in conjunction with namespace teardown, can drive the kernel into the racy code path. Exploitation depends on triggering the ordering between sysctl writes on net.sctp.udp_port and the netns exit routine.

No public exploit code is available for CVE-2026-68161 at the time of publication, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. See the upstream commits referenced below for the exact fix mechanism, including Kernel Git Commit 37ff9794 and Kernel Git Commit ffb2bd7.

Detection Methods for CVE-2026-68161

Indicators of Compromise

  • Kernel oops or warning messages referencing sctp, udp_tunnel, or sctp_ctrlsock_exit in dmesg or /var/log/kern.log
  • Unexpected kernel panics correlated with container or network namespace teardown events
  • Anomalous writes to /proc/sys/net/sctp/udp_port in short succession, particularly across namespaces

Detection Strategies

  • Monitor kernel logs for SCTP-related warnings, use-after-free indicators, or KASAN reports on systems with SCTP enabled
  • Audit workloads that create and destroy network namespaces frequently, such as container runtimes and CNI plugins, for correlation with kernel instability
  • Inventory hosts where the sctp kernel module is loaded and where net.sctp.udp_port is set to a nonzero value

Monitoring Recommendations

  • Ingest kernel logs and container runtime events into a centralized data lake for correlation and retention
  • Alert on kernel crashes and reboots on hosts running SCTP-enabled workloads
  • Track sysctl configuration drift for net.sctp.udp_port across the fleet

How to Mitigate CVE-2026-68161

Immediate Actions Required

  • Apply the vendor-provided kernel update that includes the upstream SCTP fix commits as soon as it becomes available for your distribution
  • If SCTP UDP tunneling is not required, unload the sctp module or ensure net.sctp.udp_port remains at its default disabled value
  • Restrict the ability to create and manipulate network namespaces to trusted users and workloads

Patch Information

The upstream fix closes SCTP UDP tunnel sockets during sctp_ctrlsock_exit() after the per-net sysctl table is unregistered. Refer to the mainline and stable commits: Kernel Git Commit 37ff9794, Kernel Git Commit 3bf0e34, Kernel Git Commit 8ff7859, Kernel Git Commit c6eb2d6, and Kernel Git Commit ffb2bd7. Track your distribution's security advisories for backported builds.

Workarounds

  • Disable SCTP UDP tunneling by keeping net.sctp.udp_port set to 0 on all namespaces
  • Blocklist the sctp kernel module on hosts that do not require SCTP connectivity
  • Constrain namespace creation privileges by disabling unprivileged user namespaces where operationally feasible
bash
# Verify current SCTP UDP tunnel port setting
sysctl net.sctp.udp_port

# Disable SCTP UDP tunneling in the current namespace
sysctl -w net.sctp.udp_port=0

# Blocklist the sctp module to prevent load on boot
echo 'blacklist sctp' | sudo tee /etc/modprobe.d/blacklist-sctp.conf
echo 'install sctp /bin/true' | sudo tee -a /etc/modprobe.d/blacklist-sctp.conf

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

Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

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.