cve.bz

CVE-2025-38500 Use After Free

7.8 highEPSS 0.2%Fix available

High (7.8). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: xfrm: interface: fix use-after-free after changing collect_md xfrm interface collect_md property on xfrm interfaces can only be set on device creation, thus xfrmi_changelink() should fail when called on such interfaces. The check to enforce this was done only in the case where the xi was returned from xfrmi_locate() which doesn't look for the collect_md interface, and thus the validation was never reached. Calling changelink would thus errornously place the special interface xi in the xfrmi_net->xfrmi hash, but since it also exists in the xfrmi_net->collect_md_xfrmi pointer it would lead to a double free when the net namespace was taken down [1]. Change the check to use the xi from netdev_priv which is available earlier in the function to prevent changes in xfrm collect_md interfaces. [1] resulting oops: [ 8.516540] kernel BUG at net/core/dev.c:12029! [ 8.516552] Oops: invalid opcode: 0000 [#1] SMP NOPTI [ 8.516559] CPU: 0 UID: 0 PID: 12 Comm: kworker/u80:0 Not tainted 6.15.0-virtme #5 PREEMPT(voluntary) [ 8.516565] Hardware name: QEMU Ubuntu 24.04 PC (i440FX + PIIX, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 [ 8.516569] Workqueue: netns cleanup_net [ 8.516579] RIP: 0010:unregister_netdevice_many_notify+0x101/0xab0 [ 8.516590] Code: 90 0f 0b 90 48 8b b0 78 01 00 00 48 8b 90 80 01 00 00 48 89 56 08 48 89 32 4c 89 80 78 01 00 00 48 89 b8 80 01 00 00 eb ac 90 <0f> 0b 48 8b 45 00 4c 8d a0 88 fe ff ff 48 39 c5 74 5c 41 80 bc 24 [ 8.516593] RSP: 0018:ffffa93b8006bd30 EFLAGS: 00010206 [ 8.516598] RAX: ffff98fe4226e000 RBX: ffffa93b8006bd58 RCX: ffffa93b8006bc60 [ 8.516601] RDX: 0000000000000004 RSI: 0000000000000000 RDI: dead000000000122 [ 8.516603] RBP: ffffa93b8006bdd8 R08: dead000000000100 R09: ffff98fe4133c100 [ 8.516605] R10: 0000000000000000 R11: 00000000000003d2 R12: ffffa93b8006be00 [ 8.516608] R13: ffffffff96c1a510 R14: ffffffff96c1a510 R15: ffffa93b8006be00 [ 8.516615] FS: 0000000000000000(0000) GS:ffff98fee73b7000(0000) knlGS:0000000000000000 [ 8.516619] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 8.516622] CR2: 00007fcd2abd0700 CR3: 000000003aa40000 CR4: 0000000000752ef0 [ 8.516625] PKRU: 55555554 [ 8.516627] Call Trace: [ 8.516632] <TASK> [ 8.516635] ? rtnl_is_locked+0x15/0x20 [ 8.516641] ? unregister_netdevice_queue+0x29/0xf0 [ 8.516650] ops_undo_list+0x1f2/0x220 [ 8.516659] cleanup_net+0x1ad/0x2e0 [ 8.516664] process_one_work+0x160/0x380 [ 8.516673] worker_thread+0x2aa/0x3c0 [ 8.516679] ? __pfx_worker_thread+0x10/0x10 [ 8.516686] kthread+0xfb/0x200 [ 8.516690] ? __pfx_kthread+0x10/0x10 [ 8.516693] ? __pfx_kthread+0x10/0x10 [ 8.516697] ret_from_fork+0x82/0xf0 [ 8.516705] ? __pfx_kthread+0x10/0x10 [ 8.516709] ret_from_fork_asm+0x1a/0x30 [ 8.516718] </TASK>

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 9th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-10-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-38500 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-38500?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-38500?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-38500 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linux6.1 and later

Fixed in

ProductRelease lineFixed in
Linux6.16.1.148
Linux6.66.6.101
Linux6.126.12.41
Linux6.156.15.9
Linuxlater releases6.16

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11linux-6.16.1.153-1~deb11u1DLA-4328-1
Debian12linux6.1.148-1DEBIAN-CVE-2025-38500
Debian13linux6.12.41-1DEBIAN-CVE-2025-38500 DSA-5975-1
Debian14linux6.16.3-1DEBIAN-CVE-2025-38500
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2025-38500
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 12 moreno fix listedUBUNTU-CVE-2025-38500
Ubuntu20.04:LTSlinux-gke, linux-gkeop, linux-riscv and 26 moreno fix listedUBUNTU-CVE-2025-38500
Ubuntu22.04:LTSlinux-aws-6.86.8.0-1040.42~22.04.1UBUNTU-CVE-2025-38500 USN-7792-3
Ubuntu22.04:LTSlinux-azure-6.86.8.0-1040.46~22.04.1UBUNTU-CVE-2025-38500 USN-7808-2
Ubuntu22.04:LTSlinux-gcp-6.86.8.0-1041.43~22.04.1UBUNTU-CVE-2025-38500 USN-7792-1
Ubuntu22.04:LTSlinux-hwe-6.86.8.0-85.85~22.04.1UBUNTU-CVE-2025-38500 USN-7801-1
Ubuntu22.04:LTSlinux-ibm-6.86.8.0-1038.38~22.04.1UBUNTU-CVE-2025-38500 USN-7792-1
Ubuntu22.04:LTSlinux-lowlatency-hwe-6.86.8.0-85.85.1~22.04.1UBUNTU-CVE-2025-38500 USN-7792-1
Ubuntu22.04:LTSlinux-nvidia-6.86.8.0-1040.43~22.04.1UBUNTU-CVE-2025-38500 USN-7792-1
Ubuntu22.04:LTSlinux-oracle-6.86.8.0-1037.38~22.04.1UBUNTU-CVE-2025-38500 USN-7801-3
Ubuntu22.04:LTSlinux-riscv, linux-aws-6.2, linux-aws-6.5 and 30 moreno fix listedUBUNTU-CVE-2025-38500
36 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:9::appstreamrv, perf, rtla and 29 more0:5.14.0-570.39.1.el9_6RHSA-2025:15011
Red Hatenterprise_linux:9::baseoskernel, kernel-64k, kernel-core and 45 more0:5.14.0-570.39.1.el9_6RHSA-2025:15011
Red Hatenterprise_linux:9::crblibperf, perf-debuginfo, kernel-debuginfo and 16 more0:5.14.0-570.39.1.el9_6RHSA-2025:15011
Red Hatenterprise_linux:9::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-570.39.1.el9_6RHSA-2025:15011
Red Hatenterprise_linux:9::realtimekernel-rt, kernel-rt-64k, kernel-rt-core and 35 more0:5.14.0-570.39.1.el9_6RHSA-2025:15011
Red Hatenterprise_linux:10.0rv, perf, rtla and 88 more0:6.12.0-55.33.1.el10_0RHSA-2025:15782
Red Hatrhel_eus:9.4::appstreamrv, perf, rtla and 26 more0:5.14.0-427.92.1.el9_4RHSA-2025:17241
Red Hatrhel_eus:9.4::appstream, rhel_eus:9.4::crb, rhel_eus:9.4::nfv and 1 morebpftool-debuginfo0:7.3.0-427.92.1.el9_4RHSA-2025:17241
Red Hatrhel_eus:9.4::baseosbpftool, bpftool-debuginfo0:7.3.0-427.92.1.el9_4RHSA-2025:17241
Red Hatrhel_eus:9.4::baseoskernel, kernel-64k, kernel-core and 43 more0:5.14.0-427.92.1.el9_4RHSA-2025:17241
Red Hatrhel_eus:9.4::crblibperf, perf-debuginfo, kernel-debuginfo and 14 more0:5.14.0-427.92.1.el9_4RHSA-2025:17241
Red Hatrhel_eus:9.4::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 20 more0:5.14.0-427.92.1.el9_4RHSA-2025:17241
1 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15 SP6, Linux Enterprise Live Patching 15 SP6, Linux Enterprise Module for Legacy 15 SP6 and 1 morekernel-default6.4.0-150600.23.70.1SUSE-SU-2025:03301-1
SUSELinux Enterprise High Availability Extension 15 SP7, Linux Enterprise Live Patching 15 SP7, Linux Enterprise Module for Legacy 15 SP7 and 1 morekernel-default6.4.0-150700.53.16.1SUSE-SU-2025:03290-1
SUSELinux Enterprise High Availability Extension 16.0kernel-default6.12.0-160000.6.1SUSE-SU-2025:21179-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_1010-150600.2.1SUSE-SU-2025:4200-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_119-150600.2.1SUSE-SU-2025:4164-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_138-150600.2.1SUSE-SU-2025:4201-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_144-150600.2.1SUSE-SU-2025:4208-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_151-150600.1.3.1SUSE-SU-2025:03272-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_519-150600.2.1SUSE-SU-2025:4161-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_716-150600.2.1SUSE-SU-2025:4167-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6-RT_Update_911-150600.2.1SUSE-SU-2025:4160-1
SUSELinux Enterprise Live Patching 15 SP6kernel-livepatch-SLE15-SP6_Update_1010-150600.2.1SUSE-SU-2025:4265-1
71 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.6dtb-aarch64, kernel-64kb, kernel-docs and 8 more6.4.0-150600.23.70.1SUSE-SU-2025:03301-1
openSUSELeap 15.6kernel-azure, kernel-syms-azure, kernel-source-azure6.4.0-150600.8.52.1SUSE-SU-2025:03634-1
openSUSELeap 15.6kernel-default-base6.4.0-150600.23.70.1.150600.12.30.2SUSE-SU-2025:03301-1
openSUSELeap 15.6kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more6.4.0-150600.10.52.1SUSE-SU-2025:03272-1
openSUSELeap 16.0kernel-default-base6.12.0-160000.6.1.160000.2.4openSUSE-SU-2025:20081-1
openSUSELeap 16.0kernel-rt, dtb-aarch64, kernel-64kb and 8 more6.12.0-160000.6.1openSUSE-SU-2025:20081-1
AlmaLinux9rv, perf, rtla and 73 more5.14.0-570.39.1.el9_6ALSA-2025:15011
AlmaLinux10kernel-doc, kernel-abi-stablelists6.12.0-55.33.1.el10_0ALSA-2025:15782
Rocky Linux9kernel0:5.14.0-570.39.1.el9_6RLSA-2025:15011
Azure Linux3kernel6.6.104.2-1AZL-66246
Alpaquita23linux-lts6.1.151-r0BELL-CVE-2025-38500
Alpaquita25linux-lts6.12.41-r0BELL-CVE-2025-38500
Alpaquitastreamlinux-lts6.18.35-r1BELL-CVE-2025-38500

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A logic error in xfrmi_changelink() allowed the special collect_md xfrm interface to be (re)added to the regular hash, causing it to be tracked twice and freed twice when the net namespace is destroyed. This results in a use-after-free/double-free and a kernel BUG in unregister_netdevice_many_notify(), i.e., a DoS. Exploitation requires CAP_NET_ADMIN to modify xfrm interfaces.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10kernel-0:6.12.0-55.33.1.el10_0Fixed 2025-09-15RHSA-2025:15782
Red Hat Enterprise Linux 9kernel-0:5.14.0-570.39.1.el9_6Fixed 2025-09-02RHSA-2025:15011
Red Hat Enterprise Linux 9.4 Extended Update Supportkernel-0:5.14.0-427.92.1.el9_4Fixed 2025-10-02RHSA-2025:17241
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 8kernelNot affected
Red Hat Enterprise Linux 8kernel-rtNot affected
Red Hat Enterprise Linux 9kernel-rtAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-38500.

References

Check your stackJSON