Use After Free Affecting torvalds/linux package, versions [2.6.39,5.4.301)[5.5,5.10.246)[5.11,5.15.195)[5.16,6.1.156)[6.2,6.6.112)[6.7,6.12.53)[6.13,6.17.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (5th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-TORVALDSLINUX-20700664
  • published10 Oct 2026
  • disclosed24 Oct 2025
  • creditUnknown

Introduced: 24 Oct 2025

CVE-2025-40018  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade torvalds/linux to version 5.4.301, 5.10.246, 5.15.195, 6.1.156, 6.6.112, 6.12.53, 6.17.3 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the __ip_vs_ftp_exit process. An attacker can achieve arbitrary code execution, leak kernel heap contents, and cause system instability or kernel panic by manipulating network namespaces and triggering the premature unregistration of ip_vs_ftp while connections are still active. This allows the reuse of freed memory, leading to potential control-flow hijacking and privilege escalation within the kernel.

Note: The Linux kernel project assigns a CVE to every bug fix it ships, whether or not the bug has been shown to be exploitable. This advisory was generated from that process and has not been individually assessed for exploitability. See the kernel's CVE process documentation: https://github.com/torvalds/linux/blob/master/Documentation/process/cve.rst

CVSS Base Scores

version 4.0
version 3.1