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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2025-39852— net/tcp: Fix socket memory leak in TCP-AO failure handling for IPv6

Quick assessment

Affected
Linux Linux
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于TCP-AO失败处理不当,可能导致IPv6套接字内存泄漏。

AI Predicted 5.3 Difficulty: Easy EPSS 0.15% · P4

Possible ATT&CK Techniques 1 AI

T1499 · Endpoint Denial of Service

Affected Version Matrix 8

VendorProduct Version RangeStatus
Linux Linux 06b22ef29591f625ef877ae00d82192938e29e60< 46d33c878fc0b3d7570366b2c9912395b3f4e701 affected
06b22ef29591f625ef877ae00d82192938e29e60< 3d2b356d994a8801acb397cafd28b13672c37ab5 affected
06b22ef29591f625ef877ae00d82192938e29e60< fa390321aba0a54d0f7ae95ee4ecde1358bb9234 affected
6.7 affected
< 6.7 unaffected
6.12.46≤ 6.12.* unaffected
6.16.6≤ 6.16.* unaffected
6.17≤ * unaffected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2025-39852

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
net/tcp: Fix socket memory leak in TCP-AO failure handling for IPv6
Source: CVE Program / CVE List V5
Vulnerability Description
In the Linux kernel, the following vulnerability has been resolved: net/tcp: Fix socket memory leak in TCP-AO failure handling for IPv6 When tcp_ao_copy_all_matching() fails in tcp_v6_syn_recv_sock() it just exits the function. This ends up causing a memory-leak: unreferenced object 0xffff0000281a8200 (size 2496): comm "softirq", pid 0, jiffies 4295174684 hex dump (first 32 bytes): 7f 00 00 06 7f 00 00 06 00 00 00 00 cb a8 88 13 ................ 0a 00 03 61 00 00 00 00 00 00 00 00 00 00 00 00 ...a............ backtrace (crc 5ebdbe15): kmemleak_alloc+0x44/0xe0 kmem_cache_alloc_noprof+0x248/0x470 sk_prot_alloc+0x48/0x120 sk_clone_lock+0x38/0x3b0 inet_csk_clone_lock+0x34/0x150 tcp_create_openreq_child+0x3c/0x4a8 tcp_v6_syn_recv_sock+0x1c0/0x620 tcp_check_req+0x588/0x790 tcp_v6_rcv+0x5d0/0xc18 ip6_protocol_deliver_rcu+0x2d8/0x4c0 ip6_input_finish+0x74/0x148 ip6_input+0x50/0x118 ip6_sublist_rcv+0x2fc/0x3b0 ipv6_list_rcv+0x114/0x170 __netif_receive_skb_list_core+0x16c/0x200 netif_receive_skb_list_internal+0x1f0/0x2d0 This is because in tcp_v6_syn_recv_sock (and the IPv4 counterpart), when exiting upon error, inet_csk_prepare_forced_close() and tcp_done() need to be called. They make sure the newsk will end up being correctly free'd. tcp_v4_syn_recv_sock() makes this very clear by having the put_and_exit label that takes care of things. So, this patch here makes sure tcp_v4_syn_recv_sock and tcp_v6_syn_recv_sock have similar error-handling and thus fixes the leak for TCP-AO.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于TCP-AO失败处理不当,可能导致IPv6套接字内存泄漏。
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

Vendor Product Affected Versions CPE Subscribe
Linux Linux 06b22ef29591f625ef877ae00d82192938e29e60 ~ 46d33c878fc0b3d7570366b2c9912395b3f4e701 -
Linux Linux 6.7 -

II. Public POCs for CVE-2025-39852

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-39852

请登录查看更多情报信息。

Same Patch Batch · Linux · 2025-09-19 · 30 CVEs total

CVE-2025-39841 9.8 CRITICAL scsi: lpfc: Fix buffer free/clear order in deferred receive path
CVE-2025-39864 8.8 HIGH wifi: cfg80211: fix use-after-free in cmp_bss()
CVE-2025-39862 8.8 HIGH wifi: mt76: mt7915: fix list corruption after hardware restart
CVE-2025-39839 8.8 HIGH batman-adv: fix OOB read/write in network-coding decode
CVE-2025-39848 8.8 HIGH ax25: properly unshare skbs in ax25_kiss_rcv()
CVE-2025-39849 8.8 HIGH wifi: cfg80211: sme: cap SSID length in __cfg80211_connect_result()
CVE-2025-39860 8.0 HIGH Bluetooth: Fix use-after-free in l2cap_sock_cleanup_listen()
CVE-2025-39837 7.8 HIGH platform/x86: asus-wmi: Fix racy registrations
CVE-2025-39863 7.8 HIGH wifi: brcmfmac: fix use-after-free when rescheduling brcmf_btcoex_info work
CVE-2025-39866 7.8 HIGH fs: writeback: fix use-after-free in __mark_inode_dirty()
CVE-2025-39854 7.8 HIGH ice: fix NULL access of tx->in_use in ice_ll_ts_intr
CVE-2025-39851 7.5 HIGH vxlan: Fix NPD when refreshing an FDB entry with a nexthop object
CVE-2025-39857 7.5 HIGH net/smc: fix one NULL pointer dereference in smc_ib_is_sg_need_sync()
CVE-2025-39840 7.1 HIGH audit: fix out-of-bounds read in audit_compare_dname_path()
CVE-2025-39845 x86/mm/64: define ARCH_PAGE_TABLE_SYNC_MASK and arch_sync_kernel_mappings()
CVE-2025-39865 tee: fix NULL pointer dereference in tee_shm_put
CVE-2025-39838 cifs: prevent NULL pointer dereference in UTF16 conversion
CVE-2025-39861 Bluetooth: vhci: Prevent use-after-free by removing debugfs files early
CVE-2025-39859 ptp: ocp: fix use-after-free bugs causing by ptp_ocp_watchdog
CVE-2025-39842 ocfs2: prevent release journal inode after journal shutdown

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-39852

No comments yet


Leave a comment