Reference Leak Vulnerability in Linux Kernel's espintcp Package

linux Updated 02 Oct 2025

Summary

03/07/2025
N/A
No i
Unrated
Not published

CVE-2025-38097: 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... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The Linux kernel is a core component of many operating systems, providing essential services for hardware management and system resources. The espintcp module is responsible for handling encapsulated TCP connections. This module is critical for secure communications, particularly in networking contexts. However, it has been found to have a vulnerability that can lead to reference leaks, potentially affecting system stability and security.

Vulnerability Detail

In the Linux kernel, the espintcp module's current scheme for caching the encapsulated socket can lead to reference leaks when attempting to delete the network namespace (netns). The reference chain is established as follows: xfrm_state -> encap_sk -> netns. When the espintcp state is deleted before the netns, the reference on the socket is dropped, allowing for proper deletion of the netns. However, if the netns is not reachable (e.g., all processes within the namespace have terminated), the xfrm state cannot be deleted, leading to a reference leak. This vulnerability can result in resource exhaustion and system instability.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

Currently, there are no specific workarounds provided for this vulnerability. It is advisable to monitor the system for any unusual behavior and apply the patch as soon as it becomes available.

Conclusion

The espintcp vulnerability in the Linux kernel poses a significant risk due to potential reference leaks that can affect system stability. It is crucial to apply the available patches and monitor your systems for any signs of exploitation. Utilizing tools like Vulert can help in identifying vulnerabilities in your applications.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

The espintcp module in the Linux kernel is responsible for managing encapsulated TCP connections, which are essential for secure networking.

This vulnerability can lead to reference leaks, which may cause resource exhaustion and system instability, potentially impacting the performance of your applications.

Yes, a patch is available for Debian 13 in version 6.12.32-1. Users of Debian 11 and 12 should check for updates as they may not yet have a fixed version.

If you cannot update immediately, monitor your system for unusual behavior and consider isolating affected services until a patch can be applied.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application using the Vulert playground at Vulert Scanner without needing to sign up.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback