LiveActive security incident?Get immediate response
CVE Record

CVE-2025-21884: net: better track kernel sockets lifetime

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

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysisunknown

Security readout for executives and security teams

Plain-English summary

CVE-2025-21884 is a Linux kernel networking lifetime bug. Kernel-owned sockets can outlive network namespace teardown when queued transmit packets still hold references. The public record describes a kernel warning and a lifecycle fix, but does not provide CVSS, impact severity, or evidence of exploitation.

Executive priority

Track this as a kernel hygiene and platform reliability item until vendor severity is clear. It should enter the normal kernel patch cycle, with higher priority for shared hosts or container platforms where namespace churn is common.

Technical view

During pernet_operations exit, kernel sockets may be dismantled while freeing is delayed by packets held in qdisc or device queues after skb_set_owner_w. The fix makes kernel sockets hold a net->passive reference and adds sk_net_refcnt_upgrade for sockets converted to refcounted operation.

Likely exposure

Exposure is limited to systems running affected Linux kernel versions or unfixed vendor backports. The bundle lists Linux 6.2, 6.6.103, 6.12.43, 6.13.6, and 6.14 among affected entries, with stable kernel fixes referenced. Distribution-specific status is not provided.

Exploitation context

No active exploitation is cited, and the CVE is not marked KEV. The source bundle shows kernel warning traces involving network namespace creation and teardown paths, but it does not describe a practical exploit, attacker requirements, or security impact beyond the resolved lifetime bug.

Researcher notes

The record is thin: no CVSS, CWE, exploitability analysis, or distro package mapping is provided. Analysis should focus on the referenced stable commits, affected kernel version ranges, and whether local vendors backported the socket lifetime reference fix.

Mitigation direction

  • Apply vendor-supported kernel updates that include the referenced stable fixes.
  • Check your Linux distribution advisory for exact fixed package versions.
  • Prioritize hosts permitting namespace-heavy workloads until vendor status is confirmed.
  • Avoid production cherry-picks unless validated by your kernel vendor or engineering team.

Validation and detection

  • Inventory running kernel versions across Linux hosts and container platforms.
  • Confirm kernels include a referenced stable commit or vendor backport.
  • Review kernel logs for ref_tracker warnings during network namespace teardown.
  • Map exposure by distribution, kernel package, and reboot status.
Prepared
Confidence
medium
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cve · low confidence lookup

CVE-2025-21884 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
3Timeline events
0ADP providers
5Source links

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
LinuxLinux0cafd77dcd032d1687efaba5598cf07bce85997f, 0cafd77dcd032d1687efaba5598cf07bce85997f, 0cafd77dcd032d1687efaba5598cf07bce85997f, 0cafd77dcd032d1687efaba5598cf07bce85997funaffected
LinuxLinux6.2, 0, 6.6.103, 6.12.43, 6.13.6, 6.14affected
Weakness

CWE details

No CWE listed

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.