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

CVE-2026-97984: Linux Kernel UDP Buffer Overflow Vulnerability

CVE-2026-97984 is a buffer overflow in the Linux kernel affecting IPv6 UDP sockets with PMTU discovery enabled. This flaw triggers UDP length field overflow on devices with large MTUs. This article covers technical details, affected versions, security impact, 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-2026-97984 Overview

CVE-2026-97984 is a Linux kernel vulnerability in the IPv6 UDP stack. The flaw allows a 16-bit UDP length field overflow when IPV6_MTU_DISCOVER is set to IPV6_PMTUDISC_DO or IPV6_PMTUDISC_PROBE and a packet is transmitted over a network device with a Maximum Transmission Unit (MTU) larger than IP6_MAX_MTU. The overflow triggers a WARN in udp_set_len_short, producing a kernel warning and denial of service condition. The issue has existed in the IPv6 code path since early kernel history and reappeared after commit 427faee167bc introduced ip6_dst_mtu_maybe_forward.

Critical Impact

A local user with the ability to send large UDP datagrams over an interface with an oversized MTU can trigger a kernel warning in the IPv6 output path, causing instability and potential denial of service.

Affected Products

  • Linux kernel IPv6 UDP socket implementation
  • Kernel versions containing commit 427faee167bc ("net: ipv6: introduce ip6_dst_mtu_maybe_forward")
  • Kernel versions since commit 628a5c561890 ("[INET]: Add IP(V6)_PMTUDISC_PROBE") for the IPV6_PMTUDISC_PROBE path

Discovery Timeline

  • 2026-09-25 - CVE CVE-2026-97984 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97984

Vulnerability Analysis

The vulnerability resides in the IPv6 output cork handling for UDP sockets. When a sender transmits data over an IPv6 UDP socket, the kernel initializes cork->base.fragsize in ip6_setup_cork using the egress device MTU. If the device MTU exceeds IP6_MAX_MTU (65535 bytes), cork->base.fragsize inherits that oversized value instead of being bounded.

With IPV6_MTU_DISCOVER set to IPV6_PMTUDISC_DO or IPV6_PMTUDISC_PROBE, the function __ip6_append_data computes maxnonfragsize from cork->fragsize rather than clamping to IP6_MAX_MTU. A payload of 65528 bytes combined with an 8-byte UDP header produces a UDP length of 65536, which cannot fit in the 16-bit UDP length field. The resulting integer overflow trips the WARN in udp_set_len_short.

Root Cause

The root cause is a missing upper bound on cork->base.fragsize for UDP sockets. The IPv6 cork setup path accepts any device MTU without enforcing the IPv6 protocol maximum, allowing the computed packet length to exceed what the UDP length field can represent.

Attack Vector

A local attacker configures or has access to a network device with an MTU greater than IP6_MAX_MTU. The attacker creates an IPv6 UDP socket, sets IPV6_MTU_DISCOVER to IPV6_PMTUDISC_DO or IPV6_PMTUDISC_PROBE, and transmits a payload sized to produce a UDP length of 65536 or greater. The oversized datagram traverses the cork path, overflows the length field, and triggers the kernel warning.

See the upstream fix in the Kernel Git Commit 0ae10b6 and companion commits for the exact logic change that bounds cork->base.fragsize to IP6_MAX_MTU for UDP sockets while preserving behavior for raw IPv6 sockets sending jumbograms.

Detection Methods for CVE-2026-97984

Indicators of Compromise

  • Kernel log entries containing WARN traces originating from udp_set_len_short in the IPv6 output path.
  • Repeated kernel stack traces referencing __ip6_append_data, ip6_setup_cork, or udp_v6_send_skb following large UDP transmissions.
  • Network interfaces configured with MTU values greater than 65535 on systems running IPv6 UDP workloads.

Detection Strategies

  • Monitor dmesg and /var/log/kern.log for new WARN_ON events tied to UDP length validation on IPv6 sockets.
  • Audit interface configurations for MTU values exceeding the IPv6 maximum, particularly on loopback, virtual, or tunnel devices used in test or lab environments.
  • Correlate kernel warnings with process identifiers to attribute the triggering workload to a specific user or container.

Monitoring Recommendations

  • Forward kernel ring buffer events to a centralized logging platform and alert on udp_set_len_short warnings.
  • Track setsockopt calls that configure IPV6_MTU_DISCOVER with IPV6_PMTUDISC_DO or IPV6_PMTUDISC_PROBE on hosts exposing high-MTU interfaces.
  • Baseline normal MTU values across the fleet and alert on configuration drift that introduces MTUs above 65535.

How to Mitigate CVE-2026-97984

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced below and reboot affected systems into the patched kernel.
  • Audit all network interfaces and reduce any MTU values set above IP6_MAX_MTU (65535) on hosts where the patched kernel cannot yet be deployed.
  • Restrict local user ability to create arbitrary virtual interfaces with custom MTU values via CAP_NET_ADMIN controls.

Patch Information

Upstream fixes are available in the following stable tree commits: Kernel Git Commit 0ae10b6, Kernel Git Commit 1d56a00, Kernel Git Commit ce66352, and Kernel Git Commit e01b7c1. The fix bounds cork->base.fragsize to IP6_MAX_MTU for UDP sockets while preserving existing behavior for raw IPv6 sockets to avoid breaking UDP jumbogram use cases.

Workarounds

  • Ensure no production IPv6-capable interface is configured with an MTU greater than 65535 bytes.
  • Avoid setting IPV6_MTU_DISCOVER to IPV6_PMTUDISC_DO or IPV6_PMTUDISC_PROBE on UDP sockets that transmit payloads approaching the 64 KB boundary when oversized MTUs cannot be eliminated.
  • Limit CAP_NET_ADMIN within untrusted containers and namespaces to prevent attackers from creating virtual devices with oversized MTUs.
bash
# Verify no interface exceeds IP6_MAX_MTU (65535)
ip -o link show | awk '{for(i=1;i<=NF;i++) if($i=="mtu") print $(i-1), $i, $(i+1)}'

# Lower an oversized MTU to a safe value until the kernel is patched
sudo ip link set dev <interface> mtu 65535

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.