Junglewise Threat Intelligence

CVE-2025-21858: Linux Kernel use-after-free in geneve_find_dev

CVE-2025-21858 · Severity: high · CVSS 7.8 · Published 2025-03-12

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's GENEVE networking component could allow a local user to cause a system crash or potentially execute unauthorized code. GENEVE is a protocol used for virtualizing networks, often in cloud or data center environments. This flaw occurs when network interfaces are deleted but internal references to them remain, leading to memory corruption when new interfaces are created.

Technical details

A use-after-free vulnerability exists in the Linux kernel's GENEVE (Generic Network Virtualization Encapsulation) driver. The issue stems from geneve_configure() linking a 'geneve_dev' structure to a network namespace that may differ from the device's own namespace (e.g., when using IFLA_NET_NS_PID). When the device's namespace is dismantled, the device is freed, but its pointer remains linked in the backend UDP socket's namespace list. A subsequent attempt to create a new GENEVE device in that namespace triggers a use-after-free during the search for existing devices in geneve_find_dev(). The fix involves ensuring geneve_dellink() is called during tunnel destruction to properly unlink the device.

Affected products

  • Linux Linux Kernel 6.13.0-g0ad9617c78ac

Timeline

  • 2025-02-13: patched: Initial patch authored
  • 2025-03-12: disclosed: CVE published

References

Related threats