Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-39852

MEDIUM 5.5EPSS 8%

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

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 06b22ef29591f625ef877ae00d82192938e29e60, < 46d33c878fc0b3d7570366b2c9912395b3f4e701; >= 06b22ef29591f625ef877ae00d82192938e29e60, < 3d2b356d994a8801acb397cafd28b13672c37ab5; >= 06b22ef29591f625ef877ae00d82192938e29e60, < fa390321aba0a54d0f7ae95ee4ecde1358bb9234
  • Anyone running Linux 6.7

Vulnerability facts

Affected
Linux >= 06b22ef29591f625ef877ae00d82192938e29e60, < 46d33c878fc0b3d7570366b2c9912395b3f4e701; >= 06b22ef29591f625ef877ae00d82192938e29e60, < 3d2b356d994a8801acb397cafd28b13672c37ab5; >= 06b22ef29591f625ef877ae00d82192938e29e60, < fa390321aba0a54d0f7ae95ee4ecde1358bb9234; Linux 6.7
Fixed in
Linux 46d33c878fc0b3d7570366b2c9912395b3f4e701, Linux 3d2b356d994a8801acb397cafd28b13672c37ab5
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.23% chance of exploitation in 30 days (percentile 8, 2026-11-26)
CWE
CWE-401
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 06b22ef29591f625ef877ae00d82192938e29e60, < 46d33c878fc0b3d7570366b2c9912395b3f4e701; >= 06b22ef29591f625ef877ae00d82192938e29e60, < 3d2b356d994a8801acb397cafd28b13672c37ab5; >= 06b22ef29591f625ef877ae00d82192938e29e60, < fa390321aba0a54d0f7ae95ee4ecde1358bb9234—cvelist
Linux6.7—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-39852. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39852.md
Affected: Linux >= 06b22ef29591f625ef877ae00d82192938e29e60, < 46d33c878fc0b3d7570366b2c9912395b3f4e701; >= 06b22ef29591f625ef877ae00d82192938e29e60, < 3d2b356d994a8801acb397cafd28b13672c37ab5; >= 06b22ef29591f625ef877ae00d82192938e29e60, < fa390321aba0a54d0f7ae95ee4ecde1358bb9234; Linux 6.7
Fixed in: Linux 46d33c878fc0b3d7570366b2c9912395b3f4e701, Linux 3d2b356d994a8801acb397cafd28b13672c37ab5

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-39852 being exploited?

There is no confirmed exploitation: CVE-2025-39852 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-39852?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-39852?

Linux >= 06b22ef29591f625ef877ae00d82192938e29e60, < 46d33c878fc0b3d7570366b2c9912395b3f4e701; >= 06b22ef29591f625ef877ae00d82192938e29e60, < 3d2b356d994a8801acb397cafd28b13672c37ab5; >= 06b22ef29591f625ef877ae00d82192938e29e60, < fa390321aba0a54d0f7ae95ee4ecde1358bb9234; Linux 6.7.

Is there a fix for CVE-2025-39852?

Yes. Fixed in Linux 46d33c878fc0b3d7570366b2c9912395b3f4e701, Linux 3d2b356d994a8801acb397cafd28b13672c37ab5. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2025-39852?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors