SecurityContext

CVE-2025-38097: Linux Kernel espintcp - Resource Leak

  • Cve: CVE-2025-38097
  • Name: Linux Kernel espintcp - Resource Leak
  • Description: In the Linux kernel, the following vulnerability has been resolved: espintcp: remove encap socket caching to avoid reference leak The current scheme for caching the encap socket can lead to reference leaks when we try to delete the netns. The reference chain is: xfrm_state -> enacp_sk -> netns Since the encap socket is a userspace socket, it holds a reference on the netns. If we delete the espintcp state (through flush or individual delete) before removing the netns, the reference on the socket is dropped and the netns is correctly deleted. Otherwise, the netns may not be reachable anymore (if all processes within the ns have terminated), so we cannot delete the xfrm state to drop its reference on the socket. This patch results in a small (~2% in my tests) performance regression. A GC-type mechanism could be added for the socket cache, to clear references if the state hasn't been used "recently", but it's a lot more complex than just not caching the socket.
  • Impact: Attackers can cause resource leaks and prevent proper deletion of network namespaces, potentially leading to denial of service.
  • Remediation: Update to the latest Linux kernel version with the espintcp encap socket caching fix.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00205
  • Epss percentile: 0.10295
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2025-07-03T09:15:23Z
  • Age in days: 509
  • Modified at: 2026-10-15T22:18:26Z
  • Patch available: yes
  • References total: 8
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-38097
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
NVD-CWE-Other—

References

Same in every row:

  • Source: nvd
UrlTags
https://git.kernel.org/stable/c/028363685bd0b7a19b4a820f82dd905b1dc83999Patch
https://git.kernel.org/stable/c/74fd327767fb784c5875cf7c4ba1217f26020943Patch
https://git.kernel.org/stable/c/9cbca30102028f9ad3d2098f935c4368f581fd07Patch
https://git.kernel.org/stable/c/b58a295d10065960bcb9d60cb8ca6ead9837cd27Patch
https://git.kernel.org/stable/c/e4cde54b46a87231c77256a633be1bef62687d69Patch
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlMailing List, Third Party Advisory
https://git.kernel.org/stable/c/9673ca00e6c5503069dc98780e2e89db0e663c16
https://git.kernel.org/stable/c/e32bafd08ee35feacd47b05cc5bfe9cd9659cd25

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel= 6.15 rc7; = 6.15 rc1; = 6.15 rc2; = 6.15 rc3; = 6.15 rc4; = 6.15 rc5; = 6.15 rc6; >= 6.13, < 6.14.9; >= 6.7, < 6.12.31; >= 6.2, < 6.6.93; >= 5.6, < 6.1.141nonvd/v1/products/linux/linux_kernel
debian:debian_linux= 11.0nonvd/v1/products/debian/debian_linux

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports