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-98569 Overview
CVE-2026-98569 is a Linux kernel vulnerability in the ip_gre module affecting GRE, GRETAP, and ERSPAN tunnel devices. The flaw allows the changelink netlink operation to enable collect_md (metadata mode) on an existing non-metadata tunnel device without enforcing the uniqueness checks applied during newlink. Converting a device this way can overwrite the shared metadata receive entry belonging to another tunnel of the same type in the same network namespace. Deleting either device subsequently clears the shared entry and breaks metadata receive lookups for the surviving device.
Critical Impact
An unprivileged misuse of changelink within a network namespace can disrupt metadata-mode GRE tunnel traffic by corrupting shared tunnel registration state.
Affected Products
- Linux kernel ip_gre module (GRE tunnels)
- Linux kernel ip_gre module (GRETAP devices)
- Linux kernel ip_gre module (ERSPAN devices)
Discovery Timeline
- 2026-10-18 - CVE-2026-98569 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-98569
Vulnerability Analysis
The vulnerability resides in ipgre_netlink_parms() within the kernel's ip_gre implementation. The function processes netlink parameters for GRE, GRETAP, and ERSPAN devices during both newlink (device creation) and changelink (device modification) operations. During newlink, the kernel enforces uniqueness for metadata-mode tunnels: only one collect_md tunnel of a given type can exist per network namespace, since all such tunnels share a single receive dispatch entry.
The changelink path does not apply the same enforcement. An operator can take an existing non-metadata GRE device and flip it into collect_md mode through a change request. This conversion overwrites the shared metadata receive entry currently registered to a legitimate metadata device of the same type in the netns. Removing either device then clears that shared entry, severing metadata receive lookups for the device that remains.
A second failure mode exists when parameter validation fails after collect_md is already set during changelink. Deleting the partially modified device can clear a shared entry it never legitimately owned, breaking the real owner's traffic path.
Root Cause
The root cause is missing invariant enforcement in changelink callbacks. The code assumed metadata-mode uniqueness checks only needed to run at creation. It did not account for runtime conversion of a non-metadata device into a metadata device through parameter mutation.
Attack Vector
Exploitation requires the ability to issue netlink RTM_NEWLINK change requests against GRE-family tunnel devices in a network namespace. This typically requires CAP_NET_ADMIN within the namespace. The resulting impact is a denial-of-service condition against metadata-mode tunnel receive processing for GRE, GRETAP, or ERSPAN devices. The upstream fix rejects enabling metadata mode in both changelink callbacks before any encapsulation or tunnel parameters are modified, while continuing to allow requests that repeat the metadata attribute on an already-metadata device.
No verified public exploit code is available. See the upstream patches for implementation details, including commits 1dc7595, a3f315b, and c80315d.
Detection Methods for CVE-2026-98569
Indicators of Compromise
- Unexpected loss of received traffic on GRE, GRETAP, or ERSPAN metadata-mode tunnels after a tunnel configuration change in the same network namespace.
- ip link set or netlink change operations that flip an existing gre/gretap/erspan device into external (metadata) mode.
- Deletion of a tunnel device correlating with simultaneous receive failure on an unrelated tunnel of the same type.
Detection Strategies
- Audit netlink RTM_NEWLINK events with NLM_F_REPLACE targeting GRE-family link types and flag transitions to collect_md.
- Monitor kernel logs and tunnel interface counters for drops or unexpected lookup failures on metadata-mode tunnels.
- Correlate container or namespace creation events with changes to shared tunnel infrastructure in the host netns.
Monitoring Recommendations
- Enable auditd rules for CAP_NET_ADMIN usage and ip link modifications on tunnel devices.
- Track /proc/net/dev and ethtool -S counters for anomalous receive-path behavior on gre0, gretap0, and erspan interfaces.
- Review which workloads hold CAP_NET_ADMIN within namespaces and restrict where possible.
How to Mitigate CVE-2026-98569
Immediate Actions Required
- Apply the stable kernel update containing the fix for CVE-2026-98569 on all hosts using GRE, GRETAP, or ERSPAN tunnels.
- Inventory workloads and containers that require CAP_NET_ADMIN and remove the capability where not strictly needed.
- Validate that production metadata-mode tunnels (commonly used by Open vSwitch and overlay networking) are configured only once per netns.
Patch Information
The upstream fix rejects enabling metadata mode via changelink before any encapsulation or tunnel parameters are mutated, while still permitting requests that reassert the metadata attribute on an already-metadata device. Patches have been applied across multiple stable branches. Reference commits: 1dc759571f3d, 2e54d53b65e2, 63c5e48d6f7f, a3f315be9d30, bdd41b96e814, c80315da8499, cff8b520312e, and da2e0cfbb620.
Workarounds
- Avoid issuing changelink operations that toggle GRE-family devices between metadata and non-metadata modes; destroy and recreate the device instead.
- Restrict CAP_NET_ADMIN within untrusted network namespaces and containers.
- Where metadata-mode GRE is not required, unload or blacklist the ip_gre and erspan modules to reduce attack surface.
# Example: identify metadata-mode GRE tunnels on a host
ip -details link show type gre | grep -E 'gre|external'
ip -details link show type gretap | grep -E 'gretap|external'
ip -details link show type erspan | grep -E 'erspan|external'
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

