Linux Kernel XFRM Interface Flaw Enables Local Kernel Denial of Service
Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Sep 2, 2025

CVE-2025-38500 is a use-after-free and double-free flaw in the Linux kernel's XFRM interface implementation. A logic error in xfrmi_changelink() allowed modification of a collect_md XFRM interface despite that setting being creation-time-only, placing the same interface in both the normal XFRM hash and the collect_md_xfrmi pointer. Destroying the affected network namespace can then free the interface twice, causing a kernel BUG in unregister_netdevice_many_notify(), a kernel oops, or denial of service.
The issue affects code introduced in Linux 6.1 and requires local low-privileged access with CAP_NET_ADMIN to alter XFRM interfaces. Upstream fixes are available in Linux 6.6.101, 6.12.41, 6.15.9, and 6.16. Red Hat rated the vulnerability CVSS 7.8 and released fixes for RHEL 9, RHEL 10, and RHEL 9.4 EUS; its RHEL 9 kernel-rt package remained affected at the time of the advisory.
Why it matters
Impact assessment
CVE-2025-38500 enables a local denial of service on Linux hosts running vulnerable XFRM interface code. An attacker or workload with CAP_NET_ADMIN can crash the kernel by manipulating a collect_md XFRM interface and tearing down its network namespace; this can disrupt hosts, network appliances, container platforms, and multi-tenant systems that delegate this capability.
- Affected population: Linux systems with kernel code introduced in Linux 6.1, particularly systems using XFRM/IPsec interfaces, network namespaces, containers, or privileged networking workloads.
- Required access: Local access with
CAP_NET_ADMIN; this is often available to root and may be delegated to containers, orchestration components, VPN/networking services, or administrative users. - Impact: Kernel BUG, invalid-opcode oops, and host denial of service during network-namespace cleanup. The stated practical outcome is kernel crash, not confirmed code execution.
- Scope: Exposure is configuration and privilege dependent rather than remotely exploitable by an unauthenticated party. Risk is elevated where untrusted or semi-trusted workloads receive
CAP_NET_ADMIN. - Severity: CVSS v3.1 7.8,
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H; Red Hat rates it Moderate. - Exploitation in the wild: No known exploitation was reported in the supplied references.
- Red Hat status: RHEL 9, RHEL 10, and RHEL 9.4 EUS fixes are available. RHEL 9
kernel-rtwas still listed as affected without an identified erratum. RHEL 6, 7, 7kernel-rt, 8, and 8kernel-rtare not affected.


