Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-38721— netfilter: ctnetlink: fix refcount leak on table dump

EPSS 0.01% · P2

Affected Version Matrix 20

VendorProductVersion RangeStatus
LinuxLinuxd205dc40798d97d63ad348bfaf7394f445d152d4< 586892e341fbf698e7cbaca293e1353957db725aaffected
d205dc40798d97d63ad348bfaf7394f445d152d4< 962518c6ca9f9a13df099cafa429f72f68ad61f0affected
d205dc40798d97d63ad348bfaf7394f445d152d4< 19b909a4b1452fb97e477d2f08b97f8d04095619affected
d205dc40798d97d63ad348bfaf7394f445d152d4< 41462f4cfc583513833f87f9ee55d12da651a7e3affected
d205dc40798d97d63ad348bfaf7394f445d152d4< 30cf811058552b8cd0e98dff677ef3f89d6d34ceaffected
d205dc40798d97d63ad348bfaf7394f445d152d4< a2cb4df7872de069f809de2f076ec8e54d649fe3affected
d205dc40798d97d63ad348bfaf7394f445d152d4< e14f72aa66c029db106921d621edcedef68e065baffected
d205dc40798d97d63ad348bfaf7394f445d152d4< a62d6aa3f31f216b637a4c71b7a8bfc7c57f049baffected
… +12 more rows
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-38721

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
netfilter: ctnetlink: fix refcount leak on table dump
Source: NVD (National Vulnerability Database)
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: ctnetlink: fix refcount leak on table dump There is a reference count leak in ctnetlink_dump_table(): if (res < 0) { nf_conntrack_get(&ct->ct_general); // HERE cb->args[1] = (unsigned long)ct; ... While its very unlikely, its possible that ct == last. If this happens, then the refcount of ct was already incremented. This 2nd increment is never undone. This prevents the conntrack object from being released, which in turn keeps prevents cnet->count from dropping back to 0. This will then block the netns dismantle (or conntrack rmmod) as nf_conntrack_cleanup_net_list() will wait forever. This can be reproduced by running conntrack_resize.sh selftest in a loop. It takes ~20 minutes for me on a preemptible kernel on average before I see a runaway kworker spinning in nf_conntrack_cleanup_net_list. One fix would to change this to: if (res < 0) { if (ct != last) nf_conntrack_get(&ct->ct_general); But this reference counting isn't needed in the first place. We can just store a cookie value instead. A followup patch will do the same for ctnetlink_exp_dump_table, it looks to me as if this has the same problem and like ctnetlink_dump_table, we only need a 'skip hint', not the actual object so we can apply the same cookie strategy there as well.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于ctnetlink在表转储时未正确处理引用计数,可能导致内存泄漏。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
LinuxLinux d205dc40798d97d63ad348bfaf7394f445d152d4 ~ 586892e341fbf698e7cbaca293e1353957db725a -
LinuxLinux 2.6.18 -

II. Public POCs for CVE-2025-38721

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-38721

登录查看更多情报信息。

Same Patch Batch · Linux · 2025-09-04 · 52 CVEs total

CVE-2025-38693media: dvb-frontends: w7090p: fix null-ptr-deref in w7090p_tuner_write_serpar and w7090p_t
CVE-2025-38679media: venus: Fix OOB read due to missing payload bound check
CVE-2025-38680media: uvcvideo: Fix 1-byte out-of-bounds read in uvc_parse_format()
CVE-2025-38685fbdev: Fix vmalloc out-of-bounds write in fast_imageblit
CVE-2025-38682i2c: core: Fix double-free of fwnode in i2c_unregister_device()
CVE-2025-38683hv_netvsc: Fix panic during namespace deletion with VF
CVE-2025-38684net/sched: ets: use old 'nbands' while purging unused classes
CVE-2025-38681mm/ptdump: take the memory hotplug lock inside ptdump_walk_pgd()
CVE-2025-38692exfat: add cluster chain loop check for dir
CVE-2025-38694media: dvb-frontends: dib7090p: fix null-ptr-deref in dib7090p_rw_on_apb()
CVE-2025-38690drm/xe/migrate: prevent infinite recursion
CVE-2025-38695scsi: lpfc: Check for hdwq null ptr when cleaning up lpfc_vport structure
CVE-2025-38696MIPS: Don't crash in stack_top() for tasks without ABI or vDSO
CVE-2025-38697jfs: upper bound check of tree index in dbAllocAG
CVE-2025-38699scsi: bfa: Double-free fix
CVE-2025-38698jfs: Regular file corruption check
CVE-2025-38700scsi: libiscsi: Initialize iscsi_conn->dd_data only if memory is allocated
CVE-2025-38701ext4: do not BUG when INLINE_DATA_FL lacks system.data xattr
CVE-2025-38702fbdev: fix potential buffer overflow in do_register_framebuffer()
CVE-2025-38703drm/xe: Make dma-fences compliant with the safe access rules

Showing top 20 of 52 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2025-38721

No comments yet


Leave a comment