CVE-2025-21884·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: better track kernel sockets lifetime While kernel sockets are dismantled during pernet_operations->exit(), their freeing can be delayed by any tx packets still held in qdisc or device queues, due to skb_set_owner_w() prior calls. This then trigger the following warning from ref_tracker_dir_exit() [1] To fix this, make sure that kernel sockets own a reference on net->passive. Add sk_net_refcnt_upgrade() helper, used whenever a kernel socket is converted to a refcounted one. [1] [ 136.263918][ T35] ref_tracker: net notrefcnt@ffff8880638f01e0 has 1/2 users at [ 136.263918][ T35] sk_alloc+0x2b3/0x370 [ 136.263918][ T35] inet6_create+0x6ce/0x10f0 [ 136.263918][ T35] __sock_create+0x4c0/0xa30 [ 136.263918][ T35] inet_ctl_sock_create+0xc2/0x250 [ 136.263918][ T35] igmp6_net_init+0x39/0x390 [ 136.263918][ T35] ops_init+0x31e/0x590 [ 136.263918][ T35] setup_net+0x287/0x9e0 [ 136.263918][ T35] copy_net_ns+0x33f/0x570 [ 136.263918][ T35] create_new_namespaces+0x425/0x7b0 [ 136.263918][ T35] unshare_nsproxy_namespaces+0x124/0x180 [ 136.263918][ T35] ksys_unshare+0x57d/0xa70 [ 136.263918][ T35] __x64_sys_unshare+0x38/0x40 [ 136.263918][ T35] do_syscall_64+0xf3/0x230 [ 136.263918][ T35] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 136.263918][ T35] [ 136.343488][ T35] ref_tracker: net notrefcnt@ffff8880638f01e0 has 1/2 users at [ 136.343488][ T35] sk_alloc+0x2b3/0x370 [ 136.343488][ T35] inet6_create+0x6ce/0x10f0 [ 136.343488][ T35] __sock_create+0x4c0/0xa30 [ 136.343488][ T35] inet_ctl_sock_create+0xc2/0x250 [ 136.343488][ T35] ndisc_net_init+0xa7/0x2b0 [ 136.343488][ T35] ops_init+0x31e/0x590 [ 136.343488][ T35] setup_net+0x287/0x9e0 [ 136.343488][ T35] copy_net_ns+0x33f/0x570 [ 136.343488][ T35] create_new_namespaces+0x425/0x7b0 [ 136.343488][ T35] unshare_nsproxy_namespaces+0x124/0x180 [ 136.343488][ T35] ksys_unshare+0x57d/0xa70 [ 136.343488][ T35] __x64_sys_unshare+0x38/0x40 [ 136.343488][ T35] do_syscall_64+0xf3/0x230 [ 136.343488][ T35] entry_SYSCALL_64_after_hwframe+0x77/0x7f
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.6
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 24% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2025-21884 scores 7.8 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.13
Until: 6.13.6
Fixed in: 6.13.6
How to fix this CVE
Update your Linux kernel to version 6.13.6 or later to resolve a resource tracking issue affecting kernel socket lifetime management. This vulnerability can cause reference counting warnings and potential memory management issues when kernel sockets are dismantled during network namespace operations. Apply the patch immediately through your distribution's kernel update mechanism.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version with: uname -r | grep -E '^6\.13\.[0-5]' (if output matches, your system is vulnerable)
- Verify if kernel socket operations are generating ref_tracker warnings by examining dmesg: sudo dmesg | grep -i 'ref_tracker.*net notrefcnt'
- Monitor syslog for repetitive ref_tracker warnings during namespace operations: sudo grep 'ref_tracker' /var/log/syslog | wc -l
- After patching, confirm the new kernel version is active with: uname -r | grep -E '^6\.13\.([6-9]|[1-9][0-9])' (should show 6.13.6 or higher)
FAQ
What is CVE-2025-21884?
This vulnerability affects kernel socket lifecycle tracking in Linux 6.13 kernels. Kernel sockets created during network namespace initialization can have delayed cleanup when transmit packets remain queued, causing the kernel's reference tracking system to report unresolved references and potentially leading to resource leaks.
Is CVE-2025-21884 being actively exploited?
No, this vulnerability is not currently being actively exploited in the wild according to CISA KEV data, and no public exploits have been released. However, it represents a kernel resource management issue that should be remediated as part of standard security patching.
What versions of Kernel are affected by CVE-2025-21884?
Linux kernel versions 6.13 through 6.13.5 are affected. The vulnerability is resolved in kernel 6.13.6 and later versions.
How do I check if my server is vulnerable to CVE-2025-21884?
Run 'uname -r' and check if the output starts with '6.13.' followed by a number 0-5. You can also check for symptoms with: sudo dmesg | grep 'ref_tracker.*net notrefcnt' to see if the warning has occurred.
Does Defensia detect CVE-2025-21884?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2025-21884 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2025-21884. Free for 1 server.
Get started free