CVE-2025-38097 Details
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.
A vulnerability in the Linux kernel's espintcp implementation was introduced by caching user-space encapsulation sockets, which can lead to reference leaks when deleting network namespaces. The issue arises because the cached socket holds a reference to the network namespace. If the espintcp state is deleted before the network namespace, the reference is dropped, potentially leaving the namespace unreachable for deletion. This vulnerability has been addressed by removing the socket caching, although it may introduce a slight performance regression.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/028363685bd0b7a19b4a820f82dd905b1dc83999 | kernel.org | Patch |
| https://git.kernel.org/stable/c/74fd327767fb784c5875cf7c4ba1217f26020943 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9673ca00e6c5503069dc98780e2e89db0e663c16 | kernel.org | |
| https://git.kernel.org/stable/c/9cbca30102028f9ad3d2098f935c4368f581fd07 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b58a295d10065960bcb9d60cb8ca6ead9837cd27 | kernel.org | Patch |
| https://git.kernel.org/stable/c/e32bafd08ee35feacd47b05cc5bfe9cd9659cd25 | kernel.org | |
| https://git.kernel.org/stable/c/e4cde54b46a87231c77256a633be1bef62687d69 | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-Other | Weakness Not in a Standard CWE Category | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.6, < 6.1.141 >= 6.2, < 6.6.93 >= 6.7, < 6.12.31 >= 6.13, < 6.14.9 6.15 rc1 6.15 rc2 6.15 rc3 6.15 rc4 6.15 rc5 6.15 rc6 6.15 rc7 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Sep 14, 2026 | CVE Modified | kernel.org |
| Sep 14, 2026 | CVE Modified | CVE |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 16, 2025 | Initial Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Jul 3, 2025 | New CVE Received | kernel.org |