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

CVE-2026-98299: Linux Kernel TCP Memory DoS Vulnerability

CVE-2026-98299 is a denial of service flaw in the Linux kernel TCP memory handling that causes division by zero crashes. This post explains the technical details, affected versions, 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-2026-98299 Overview

CVE-2026-98299 is a Linux kernel vulnerability in the IPv4 TCP stack. The flaw allows a divide-by-zero exception in tcp_rcvbuf_grow() and tcp_rcv_space_adjust() when the net.ipv4.tcp_rmem sysctl is configured with an excessively small minimum value. The kernel's existing sysctl bounds permitted values as low as 1, which propagated through buffer sizing math and reduced tp->rcvq_space.space to zero. When data later arrives and Dynamic Right Sizing (DRS) runs, the division by zero crashes the kernel.

Critical Impact

A local administrator capable of writing to net.ipv4.tcp_rmem can trigger a kernel panic on TCP receive activity, producing a system-wide denial of service.

Affected Products

  • Linux kernel builds containing the TCP Dynamic Right Sizing logic in net/ipv4/tcp_input.c
  • Stable kernel branches referenced in the upstream fix commits
  • Distributions shipping unpatched upstream TCP stack code

Discovery Timeline

  • 2026-10-06 - CVE-2026-98299 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98299

Vulnerability Analysis

The crash occurs inside tcp_rcvbuf_grow() at net/ipv4/tcp_input.c:939, where the kernel computes:

grow = div_u64(((u64)rcvwin << 1) * (newval - oldval), oldval);

Here oldval is tp->rcvq_space.space. When that field is zero, div_u64 raises a divide error and the kernel panics. The condition is reachable from normal TCP receive processing, so any inbound segment on a socket inheriting the degenerate buffer configuration will trigger the fault.

This is a kernel-level denial-of-service issue affecting system availability. The crash signature reported upstream is divide error: 0000 [#1] PREEMPT SMP with RIP: 0010:tcp_rcvbuf_grow+0x187/0x450.

Root Cause

tp->rcvq_space.space is initialized in tcp_init_buffer_space() using min3(tp->rcv_ssthresh, tp->rcv_wnd, (u32)TCP_INIT_CWND * tp->advmss). If tcp_rmem[1] is set to 1, sk->sk_rcvbuf becomes 1. The call tcp_full_space(sk) computes (sk->sk_rcvbuf * scaling_ratio) >> 8, which truncates to 0. That zero propagates into tp->window_clamp, tp->rcv_ssthresh, and ultimately tp->rcvq_space.space.

Historically, commit b1cb59cf2efe added SOCK_MIN_RCVBUF floors for net.core.rmem_default, net.core.rmem_max, and SO_RCVBUF. The net.ipv4.tcp_rmem sysctl retained .extra1 = SYSCTL_ONE, leaving no effective lower bound.

Attack Vector

Exploitation requires write access to net.ipv4.tcp_rmem, which is restricted to privileged users (root or CAP_NET_ADMIN) in the init network namespace. In environments that grant namespace-level network administration to lower-trust workloads, such as misconfigured containers or multi-tenant hosts, a tenant may be able to set a value that produces a kernel crash on subsequent TCP activity. The impact is availability loss on the affected host.

The upstream fix sets tcp_rmem.extra1 to 4096, a predictable, architecture-independent floor above SOCK_MIN_RCVBUF on all supported configurations, matching the documented 4K default.

Detection Methods for CVE-2026-98299

Indicators of Compromise

  • Kernel oops messages containing divide error: 0000 with RIP pointing to tcp_rcvbuf_grow+ offsets
  • Panics or soft lockups originating in net/ipv4/tcp_input.c on hosts under TCP load
  • sysctl audit records showing net.ipv4.tcp_rmem set to values below 4096 for the minimum field

Detection Strategies

  • Query live and persisted sysctl state for net.ipv4.tcp_rmem and flag any minimum below 4096
  • Scan configuration management repositories, container entrypoints, and sysctl.d fragments for suspicious tcp_rmem assignments
  • Correlate kernel ring buffer entries referencing tcp_rcvbuf_grow with host availability events in centralized logging

Monitoring Recommendations

  • Forward /var/log/kern.log and journalctl -k output to a central analytics platform for divide-error pattern matching
  • Alert on unexpected writes to /proc/sys/net/ipv4/tcp_rmem via auditd rules
  • Track container and namespace creation events that grant CAP_NET_ADMIN to non-trusted workloads

How to Mitigate CVE-2026-98299

Immediate Actions Required

  • Apply the upstream kernel patches referenced in the stable tree commits that raise tcp_rmem.extra1 to 4096
  • Audit all hosts for net.ipv4.tcp_rmem minimum values below 4096 and reset them to the documented default
  • Restrict CAP_NET_ADMIN and root-equivalent access in container and multi-tenant environments

Patch Information

The fix is distributed across multiple stable branches. Reference commits include 1c4bb94, 60df201, 67b83c1, 7898bda, 83a945a, 8799076, 8e32532, and 9a4f49b. Rebuild and deploy kernels incorporating these changes, or install vendor updates once published.

Workarounds

  • Enforce a minimum value of 4096 for the first field of net.ipv4.tcp_rmem through configuration management
  • Remove CAP_NET_ADMIN from container runtime defaults where network tuning is not required
  • Monitor and reject sysctl changes that lower tcp_rmem below the kernel default via auditd and policy tooling
bash
# Restore the documented default minimum and verify
sysctl -w net.ipv4.tcp_rmem="4096 131072 6291456"
sysctl net.ipv4.tcp_rmem

# Persist the setting
echo 'net.ipv4.tcp_rmem = 4096 131072 6291456' > /etc/sysctl.d/99-cve-2026-98299.conf
sysctl --system

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.