Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-21677

published high CVSS 3.1 · 7.8

pfcp: Destroy device along with udp socket's netns dismantle.

Published
31 Jan 2025, 11:25:38 UTC
Updated
05 Aug 2026, 11:53:33 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux76c8764ef36a5d37ea2e551bda28ac7f028383ba to < 1c35a66e2bfea53dea3562b2575ac7fd4c38ee61 · 76c8764ef36a5d37ea2e551bda28ac7f028383ba to < ffc90e9ca61b0f619326a1417ff32efd6cc71ed2 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.10 (affected) · 0 to < 6.10 (unaffected · semver) · 6.12.11 through 6.12.* (unaffected · semver) · 6.13 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Ubuntu noble linux-azure-6.11 Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-azure-6.11-cloud-tools-6.11.0-1013 Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-azure-6.11-headers-6.11.0-1013 Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-azure-6.11-tools-6.11.0-1013 Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Show 61 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Ubuntu noble linux-buildinfo-6.11.0-1012-lowlatency Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-buildinfo-6.11.0-1012-lowlatency-64k Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-buildinfo-6.11.0-1013-azure Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-buildinfo-6.11.0-1020-oem Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-buildinfo-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-buildinfo-6.11.0-24-generic-64k Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-cloud-tools-6.11.0-1012-lowlatency Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-cloud-tools-6.11.0-1013-azure Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-cloud-tools-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-headers-6.11.0-1012-lowlatency Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-headers-6.11.0-1012-lowlatency-64k Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-headers-6.11.0-1013-azure Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-headers-6.11.0-1020-oem Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-headers-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-headers-6.11.0-24-generic-64k Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-hwe-6.11 Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-hwe-6.11-cloud-tools-6.11.0-24 Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-hwe-6.11-headers-6.11.0-24 Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-hwe-6.11-lib-rust-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-hwe-6.11-tools-6.11.0-24 Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-image-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-image-unsigned-6.11.0-1012-lowlatency Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-image-unsigned-6.11.0-1012-lowlatency-64k Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-image-unsigned-6.11.0-1013-azure Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-image-unsigned-6.11.0-1020-oem Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-image-unsigned-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-image-unsigned-6.11.0-24-generic-64k Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-lowlatency-hwe-6.11 Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-lowlatency-hwe-6.11-cloud-tools-6.11.0-1012 Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-lowlatency-hwe-6.11-headers-6.11.0-1012 Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-lowlatency-hwe-6.11-lib-rust-6.11.0-1012-lowlatency Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-lowlatency-hwe-6.11-tools-6.11.0-1012 Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-modules-6.11.0-1012-lowlatency Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-modules-6.11.0-1012-lowlatency-64k Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-modules-6.11.0-1013-azure Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-modules-6.11.0-1020-oem Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-modules-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-modules-6.11.0-24-generic-64k Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-modules-extra-6.11.0-1013-azure Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-modules-extra-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-modules-ipu6-6.11.0-1020-oem Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-modules-ipu6-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-modules-ipu7-6.11.0-1020-oem Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-modules-ipu7-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-modules-iwlwifi-6.11.0-1012-lowlatency Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-modules-iwlwifi-6.11.0-1013-azure Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-modules-iwlwifi-6.11.0-1020-oem Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-modules-iwlwifi-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-modules-usbio-6.11.0-1020-oem Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-modules-usbio-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-modules-vision-6.11.0-1020-oem Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-modules-vision-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-oem-6.11 Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-oem-6.11-headers-6.11.0-1020 Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-oem-6.11-tools-6.11.0-1020 Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-tools-6.11.0-1012-lowlatency Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-tools-6.11.0-1012-lowlatency-64k Advisory build 6.11.0-1012.13~24.04.1 USN-7445-1
Ubuntu noble linux-tools-6.11.0-1013-azure Advisory build 6.11.0-1013.13~24.04.1 USN-7448-1
Ubuntu noble linux-tools-6.11.0-1020-oem Advisory build 6.11.0-1020.20 USN-7445-1
Ubuntu noble linux-tools-6.11.0-24-generic Advisory build 6.11.0-24.24~24.04.1 USN-7445-1
Ubuntu noble linux-tools-6.11.0-24-generic-64k Advisory build 6.11.0-24.24~24.04.1 USN-7445-1

Description

In the Linux kernel, the following vulnerability has been resolved: pfcp: Destroy device along with udp socket's netns dismantle. pfcp_newlink() links the device to a list in dev_net(dev) instead of net, where a udp tunnel socket is created. Even when net is removed, the device stays alive on dev_net(dev). Then, removing net triggers the splat below. [0] In this example, pfcp0 is created in ns2, but the udp socket is created in ns1. ip netns add ns1 ip netns add ns2 ip -n ns1 link add netns ns2 name pfcp0 type pfcp ip netns del ns1 Let's link the device to the socket's netns instead. Now, pfcp_net_exit() needs another netdev iteration to remove all pfcp devices in the netns. pfcp_dev_list is not used under RCU, so the list API is converted to the non-RCU variant. pfcp_net_exit() can be converted to .exit_batch_rtnl() in net-next. [0]: ref_tracker: net notrefcnt@00000000128b34dc has 1/1 users at sk_alloc (./include/net/net_namespace.h:345 net/core/sock.c:2236) inet_create (net/ipv4/af_inet.c:326 net/ipv4/af_inet.c:252) __sock_create (net/socket.c:1558) udp_sock_create4 (net/ipv4/udp_tunnel_core.c:18) pfcp_create_sock (drivers/net/pfcp.c:168) pfcp_newlink (drivers/net/pfcp.c:182 drivers/net/pfcp.c:197) rtnl_newlink (net/core/rtnetlink.c:3786 net/core/rtnetlink.c:3897 net/core/rtnetlink.c:4012) rtnetlink_rcv_msg (net/core/rtnetlink.c:6922) netlink_rcv_skb (net/netlink/af_netlink.c:2542) netlink_unicast (net/netlink/af_netlink.c:1321 net/netlink/af_netlink.c:1347) netlink_sendmsg (net/netlink/af_netlink.c:1891) ____sys_sendmsg (net/socket.c:711 net/socket.c:726 net/socket.c:2583) ___sys_sendmsg (net/socket.c:2639) __sys_sendmsg (net/socket.c:2669) do_syscall_64 (arch/x86/entry/common.c:52 arch/x86/entry/common.c:83) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) WARNING: CPU: 1 PID: 11 at lib/ref_tracker.c:179 ref_tracker_dir_exit (lib/ref_tracker.c:179) Modules linked in: CPU: 1 UID: 0 PID: 11 Comm: kworker/u16:0 Not tainted 6.13.0-rc5-00147-g4c1224501e9d #5 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.0-0-gd239552ce722-prebuilt.qemu.org 04/01/2014 Workqueue: netns cleanup_net RIP: 0010:ref_tracker_dir_exit (lib/ref_tracker.c:179) Code: 00 00 00 fc ff df 4d 8b 26 49 bd 00 01 00 00 00 00 ad de 4c 39 f5 0f 85 df 00 00 00 48 8b 74 24 08 48 89 df e8 a5 cc 12 02 90 <0f> 0b 90 48 8d 6b 44 be 04 00 00 00 48 89 ef e8 80 de 67 ff 48 89 RSP: 0018:ff11000007f3fb60 EFLAGS: 00010286 RAX: 00000000000020ef RBX: ff1100000d6481e0 RCX: 1ffffffff0e40d82 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8423ee3c RBP: ff1100000d648230 R08: 0000000000000001 R09: fffffbfff0e395af R10: 0000000000000001 R11: 0000000000000000 R12: ff1100000d648230 R13: dead000000000100 R14: ff1100000d648230 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ff1100006ce80000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005620e1363990 CR3: 000000000eeb2002 CR4: 0000000000771ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: <TASK> ? __warn (kernel/panic.c:748) ? ref_tracker_dir_exit (lib/ref_tracker.c:179) ? report_bug (lib/bug.c:201 lib/bug.c:219) ? handle_bug (arch/x86/kernel/traps.c:285) ? exc_invalid_op (arch/x86/kernel/traps.c:309 (discriminator 1)) ? asm_exc_invalid_op (./arch/x86/include/asm/idtentry.h:621) ? _raw_spin_unlock_irqrestore (./arch/x86/include/asm/irqflags.h:42 ./arch/x86/include/asm/irqflags.h:97 ./arch/x86/include/asm/irqflags.h:155 ./include/linux/spinlock_api_smp.h:151 kernel/locking/spinlock.c:194) ? ref_tracker_dir_exit (lib/ref_tracker.c:179) ? __pfx_ref_tracker_dir_exit (lib/ref_tracker.c:158) ? kfree (mm/slub.c:4613 mm/slub.c:4761) net_free (net/core/net_namespace.c:476 net/core/net_namespace.c:467) cleanup_net (net/cor ---truncated---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is triggered exclusively through RTM_NEWLINK rtnetlink messages and netns creation/destruction from local syscalls; there is no remote packet path into pfcp_newlink(). AC:L - The trigger is a fully deterministic four-command sequence (create two netns, create a pfcp link cross-netns, delete the socket's netns) with no race and no dependence on conditions outside the attacker's control; heap grooming of the freed net_cachep object is done simply by creating further namespaces. PR:L - CAP_NET_ADMIN over both netns is required, but an unprivileged user obtains it via `unshare -Urn` since both namespaces are owned by their own user namespace, satisfying netlink_net_capable() and rtnl_link_get_net_capable(); the pfcp module is auto-loaded via its rtnl-link alias. UI:N - The attacker performs the entire sequence itself through netlink and namespace syscalls; no victim action is involved. S:U - The corruption stays within the kernel's own security authority — a standard kernel memory-safety issue with no VM, IOMMU, or hypervisor boundary crossed. C:H - The dangling socket reads pointers (`net->ipv4.udp_table`, `net->core.prot_inuse`, `net_hash_mix()`) out of the freed and potentially reallocated `struct net`, giving a use-after-free read that can be leveraged to disclose kernel memory. I:H - udp_lib_unhash() and __netns_tracker_free() perform spinlock acquisition, list unlinking, and per-cpu increments on the freed netns object, yielding a write primitive at attacker-influenceable addresses once the slab slot is re-groomed with a new namespace. A:H - Deleting the socket's netns immediately produces a ref_tracker WARNING in cleanup_net (a panic under panic_on_warn) and permanently leaks the netdevice and socket, with the subsequent use-after-free reliably causing kernel corruption and crashes.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 76c8764ef36a5d37ea2e551bda28ac7f028383ba to < 1c35a66e2bfea53dea3562b2575ac7fd4c38ee61 (affected · git)76c8764ef36a5d37ea2e551bda28ac7f028383ba to < ffc90e9ca61b0f619326a1417ff32efd6cc71ed2 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.10 (affected)0 to < 6.10 (unaffected · semver)6.12.11 through 6.12.* (unaffected · semver)6.13 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

pfcp: Destroy device along with udp socket's netns dismantle.

Provenance

Schema
5.2
Searchable
yes
Content hash
f55d4bf17dc8b925bb73a9f81bfaa1573e572a7a12a7f1ce002f89d0449302b7
Ingested
23 Sep 2026, 08:39:46 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected