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-2026-97939 Overview
CVE-2026-97939 is a Linux kernel resource management vulnerability in the IPv4 and IPv6 multicast routing subsystem (ipmr). A network administrator inside a user and network namespace can create many multicast routing tables via the MRT_TABLE and MRT6_TABLE socket options. Each unseen identifier allocates a new mr_table through mr_table_alloc() and leaves it in the per-net list until namespace teardown. Because these allocations were not charged to the memory control group (memcg), unreclaimable slab memory on the host grew with the table count, enabling unprivileged users to exhaust kernel memory.
Critical Impact
Unprivileged users holding CAP_NET_ADMIN inside a user namespace can grow host-side unreclaimable slab memory without memcg accounting, enabling local denial-of-service conditions.
Affected Products
- Linux kernel versions containing the unaccounted mr_table_alloc() path
- IPv4 multicast routing (ipmr) subsystem
- IPv6 multicast routing (ip6mr) subsystem
Discovery Timeline
- 2026-09-25 - CVE CVE-2026-97939 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-97939
Vulnerability Analysis
The ipmr and ip6mr subsystems maintain multicast forwarding state in mr_table structures. User space creates and selects these tables by setting a numeric identifier through setsockopt(MRT_TABLE) or setsockopt(MRT6_TABLE) on a raw socket. When the kernel sees an identifier it has not previously allocated, it calls the shared mr_table_alloc() helper, links the new table into the per-network-namespace list, and keeps it live until the namespace is destroyed.
The mr_table allocations, together with their Multicast Forwarding Cache (MFC) entries, were allocated without GFP_KERNEL_ACCOUNT and without the SLAB_ACCOUNT slab flag. As a result, memory consumed by these objects was not attributed to the invoking container's memcg. A privileged user inside a user and network namespace could iterate across identifiers and allocate a large number of tables, growing host unreclaimable slab without triggering memcg limits.
Root Cause
The root cause is missing memory cgroup accounting on long-lived kernel objects reachable from an unprivileged namespace. The fix charges mr_table allocations with GFP_KERNEL_ACCOUNT and marks the IPv4 and IPv6 MFC caches with SLAB_ACCOUNT, bringing their handling in line with IP addresses, routes, and alternate interface names.
Attack Vector
A local user with CAP_NET_ADMIN inside a user and network namespace opens a raw socket and repeatedly calls setsockopt with distinct MRT_TABLE or MRT6_TABLE values. Each new identifier forces allocation of a fresh mr_table, which persists until namespace teardown. Repeated allocations across many namespaces inflate host slab usage without being bounded by memcg policy. Unresolved MFC entries remain exempt because they are allocated from softIRQ with GFP_ATOMIC and expire within 10 seconds, bounded by the socket receive queue per commit 0079ad8e8dc3.
See the upstream commits for implementation detail: Kernel Git Commit 0264b3e, Kernel Git Commit b7ee187, and Kernel Git Commit d0a2e2a.
Detection Methods for CVE-2026-97939
Indicators of Compromise
- Sustained growth in host-level unreclaimable slab (SUnreclaim in /proc/meminfo) that does not correlate with any container's reported memcg usage.
- Elevated allocation counts for ip_mrt_cache and ip6_mrt_cache entries visible in /proc/slabinfo.
- Unprivileged processes inside user namespaces performing repeated setsockopt calls with MRT_TABLE or MRT6_TABLE option names.
Detection Strategies
- Trace multicast routing table creation with eBPF or ftrace probes on ipmr_new_table and ip6mr_new_table to flag unusual volumes per namespace.
- Audit setsockopt syscalls with IPPROTO_IP/IPPROTO_IPV6 protocol and MRT_TABLE/MRT6_TABLE option values using auditd or seccomp notification.
- Correlate per-container memcg accounting against host slab totals to identify unaccounted kernel memory growth.
Monitoring Recommendations
- Alert on sudden expansion of SUnreclaim on hosts running untrusted container workloads.
- Baseline the number of multicast routing tables per network namespace and alert on deviations.
- Monitor kernel log messages related to memory pressure or OOM kills on host workloads not tied to any container memcg.
How to Mitigate CVE-2026-97939
Immediate Actions Required
- Apply the stable kernel updates referenced by commits 0264b3e, b7ee187, and d0a2e2a as they become available in your distribution.
- Restrict creation of user namespaces by untrusted users where feasible by setting kernel.unprivileged_userns_clone=0 or equivalent distribution controls.
- Review container runtime configurations to drop CAP_NET_ADMIN for workloads that do not require multicast routing.
Patch Information
The upstream fix charges mr_table_alloc() allocations with GFP_KERNEL_ACCOUNT and marks the IPv4 and IPv6 MFC caches SLAB_ACCOUNT, so multicast routing table memory is attributed to the invoking memcg. Review the commits 0264b3e, b7ee187, and d0a2e2a and consult your distribution's security tracker for backport status.
Workarounds
- Disable or blocklist IPv4 and IPv6 multicast routing modules (ip_mr, ip6_mr) on hosts that do not require this functionality.
- Apply strict memory limits at the cgroup v1/v2 level and enforce per-namespace quotas via orchestrator policy to limit blast radius.
- Use seccomp profiles to deny setsockopt combinations targeting MRT_TABLE and MRT6_TABLE for untrusted workloads.
# Configuration example: restrict unprivileged user namespaces and block ipmr modules
sysctl -w kernel.unprivileged_userns_clone=0
echo 'install ip_mr /bin/true' | tee /etc/modprobe.d/disable-ipmr.conf
echo 'install ip6_mr /bin/true' | tee -a /etc/modprobe.d/disable-ipmr.conf
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

