Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilityprivilege-escalation-methodwidely-deployed-product-advisory

Linux Kernel XFRM Interface Flaw Enables Local Kernel Denial of Service

Vulnerability Disclosure · 3 sources · Updated 3mo ago · First seen Sep 2, 2025

Linux Kernel XFRM Interface Flaw Enables Local Kernel Denial of Service

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-rt was still listed as affected without an identified erratum. RHEL 6, 7, 7 kernel-rt, 8, and 8 kernel-rt are not affected.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · Sep 2, 2025
  1. Reported Sep 2, 20251y ago

    Red Hat releases RHEL 9.4 EUS fix

    Red Hat released RHSA-2025:17241 to address CVE-2025-38500 for the Red Hat Enterprise Linux 9.4 Extended Update Support kernel.

    2387866 - (CVE-2025-38500) CVE-2025-38500 kernel: xfrm: interface: fix use-after-free after changing collect_md xfrm interface
  2. Reported Sep 2, 20251y ago

    Red Hat releases RHEL 10 fix

    Red Hat released RHSA-2025:15782 to fix CVE-2025-38500 in the Red Hat Enterprise Linux 10 kernel.

    2387866 - (CVE-2025-38500) CVE-2025-38500 kernel: xfrm: interface: fix use-after-free after changing collect_md xfrm interface
  3. Sep 2, 20251y ago

    Red Hat releases RHEL 9 fix

    Red Hat released RHSA-2025:15011 to address CVE-2025-38500 in the Red Hat Enterprise Linux 9 kernel.

    2387866 - (CVE-2025-38500) CVE-2025-38500 kernel: xfrm: interface: fix use-after-free after changing collect_md xfrm interface
  4. Reported Aug 12, 20251y ago

    Linux stable kernels receive fixes for CVE-2025-38500

    Fixes were included in Linux stable versions 6.6.101, 6.12.41, 6.15.9, and 6.16. The correction obtains the XFRM interface through netdev_priv() early in xfrmi_changelink() and blocks changes to collect_md interfaces.

    CVE-2025-38500: xfrm: interface: fix use-after-free after changing collect_md xfrm interface
  5. Reported Aug 12, 20251y ago

    CVE-2025-38500 assigned to XFRM use-after-free flaw

    The Linux kernel CVE team assigned CVE-2025-38500 to the XFRM interface flaw. An attacker with CAP_NET_ADMIN could trigger the affected path and cause a kernel crash, resulting in denial of service.

    CVE-2025-38500: xfrm: interface: fix use-after-free after changing collect_md xfrm interface
  6. Reported Aug 12, 20251y ago

    Vulnerable XFRM interface handling introduced in Linux 6.1

    A change introduced in Linux kernel 6.1 allowed xfrmi_changelink() to modify collect_md XFRM interfaces, creating conditions for duplicate tracking and a later use-after-free/double-free during network-namespace teardown.

    CVE-2025-38500: xfrm: interface: fix use-after-free after changing collect_md xfrm interface
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.