CVE-2025-21858: Use-after-free in Linux kernel Geneve geneve_find_dev()
- Vendor
- Linux
CVE-2025-21858 is a use-after-free vulnerability in the Linux kernel's Geneve networking implementation. During configuration, geneve_configure() links a Geneve device into the device list associated with its backend UDP socket's network namespace. This namespace can differ from the device's own namespace when IFLA_NET_NS_PID, IFLA_NET_NS_FD, or IFLA_TARGET_NETNSID is used. Teardown of the device's namespace unregisters and frees the device without removing its entry from the backend namespace's Geneve list. Creating another Geneve device in the surviving namespace can subsequently dereference the stale entry in geneve_find_dev(), accessing freed kernel memory.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
The demonstrated fault is an invalid two-byte read from freed kernel slab memory, potentially causing a kernel crash and system-wide denial of service. CVSS assessments rate potential confidentiality, integrity, and availability impacts as high, but arbitrary code execution, privilege escalation, and attacker-controlled information disclosure have not been established by the documented diagnostic.
Mitigation
If you can’t patch tonight, do this now.
No vulnerability-specific temporary workaround is documented. Pending patching, restrict untrusted local access and network-administration privileges that permit Geneve device configuration and network namespace manipulation. For affected Siemens systems, restrict interactive shell access to trusted personnel and run applications only from trusted sources. These controls reduce exposure but do not correct the stale device-list linkage.
Remediation
Patch, then assume compromise.
Install a vendor-supported kernel update containing the fix that changes geneve_destroy_tunnels() to call geneve_dellink(), ensuring that devices are removed from the Geneve list during teardown. Identified fixed packages include Echo Linux linux 6.1.133-1 or later, RHEL 8.10 kernel 4.18.0-553.132.1.el8_10, and RHEL 8.10 kernel-rt 4.18.0-553.132.1.rt7.473.el8_10. Other distributions and embedded products require their applicable vendor updates; these package versions are not universal upstream version thresholds. Reboot into the updated kernel for the fix to take effect. No fixed Siemens SIMATIC S7-1500 TM MFP product release is identified.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-21858 exploited in the wild?
- As of Oct 26, 2026, Mallory has no reports of CVE-2025-21858 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-21858?
- As of Oct 26, 2026, Mallory has found no public exploit for CVE-2025-21858.
- Is there a patch for CVE-2025-21858?
- Install a vendor-supported kernel update containing the fix that changes geneve_destroy_tunnels() to call geneve_dellink(), ensuring that devices are removed from the Geneve list during teardown. Identified fixed packages include Echo Linux linux 6.1.133-1 or later, RHEL 8.10 kernel 4.18.0-553.132.1.el8_10, and RHEL 8.10 kernel-rt 4.18.0-553.132.1.rt7.473.el8_10.
- What products are affected by CVE-2025-21858?
- Linux Kernel.
- How severe is CVE-2025-21858?
- CVE-2025-21858 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.32% (18th percentile) as of Oct 26, 2026.
Recent activity
19 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.