CVE-2025-21858
Linux Kernel vulnerability analysis and mitigation

Overview

A use-after-free vulnerability (CVE-2025-21858) was discovered in the Linux kernel's GENEVE network virtualization implementation. The vulnerability was identified on March 12, 2025, and affects the geneve_find_dev() function. The issue occurs when geneve_configure() links struct geneve_dev.next to net_generic(net, geneve_net_id)->geneve_list, where the net could differ from dev_net(dev) if IFLA_NET_NS_PID, IFLA_NET_NS_FD, or IFLA_TARGET_NETNSID is set (NVD).

Technical details

The vulnerability is triggered when dev_net(dev) is dismantled, causing geneve_exit_batch_rtnl() to call unregister_netdevice_queue() for each device in the netns. After the device is freed, its geneve_dev.next remains linked to the backend UDP socket netns, leading to a use-after-free condition when another geneve device is created in the netns. The issue has been assigned a CVSS v3.1 Base Score of 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability could allow an attacker with local access to cause a use-after-free condition, potentially leading to privilege escalation, information disclosure, or system crashes. The high CVSS score indicates that successful exploitation could result in complete compromise of confidentiality, integrity, and availability of the affected system (NVD).

Exploitability

The vulnerability requires local access and low privileges to exploit. It was discovered by syzkaller, a kernel fuzzing tool, which reported the use-after-free condition in geneve_find_dev() without providing a specific proof-of-concept exploit (Kernel Patch).

Mitigation and workarounds

The vulnerability has been fixed by modifying the geneve_destroy_tunnels() function to call geneve_dellink() instead of unregister_netdevice_queue(). The fix has been implemented in multiple kernel versions through various stable patches (Kernel Patch).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-74730CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux
NoYesAug 22, 2026
CVE-2026-74733HIGH7.8
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesAug 22, 2026
CVE-2026-74726HIGH7.3
  • Linux Kernel logoLinux Kernel
  • kernel
NoYesAug 22, 2026
CVE-2026-74732MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-selftests-internal
NoYesAug 22, 2026
CVE-2026-74728NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug-modules-core
NoNoAug 22, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management