CVE-2025-40018
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40018 was disclosed on October 24, 2025, affecting the Linux kernel's IPVS (IP Virtual Server) module. The vulnerability involves a use-after-free issue in the IP Virtual Server FTP connection tracking functionality during network namespace cleanup operations (NVD).

Technical details

The vulnerability occurs when ipvsftpexit() may unregister ipvsftp before connections with valid cp->app pointers are flushed during the netns cleanup path. The fix introduces a global 'exitingmodule' flag that is set to true in ipvsftp_exit() before unregistering the pernet subsystem. The ipvsftpexit() function is modified to skip ipvsftp unregister during netns cleanup when exitingmodule is false, deferring it to _ipvscleanupbatch() which unregisters all apps after connections are flushed (NVD). Red Hat has assigned this vulnerability a CVSSv3 base score of 7.0, indicating high severity (Red Hat Security).

Impact

The vulnerability could lead to a use-after-free condition in the Linux kernel's IPVS module, potentially causing system instability or crashes. This affects various Linux distributions including Red Hat Enterprise Linux, Debian, and other Linux kernel-based systems (Debian Security).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel. System administrators should apply the latest kernel updates available for their distributions. Multiple Linux distributions have released or are in the process of releasing security updates to address this vulnerability (Debian Security).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40024N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-core
NoYesOct 24, 2025
CVE-2025-40021N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-devel-matched
NoYesOct 24, 2025
CVE-2025-40020N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoYesOct 24, 2025
CVE-2025-40019N/AN/A
  • Linux KernelLinux Kernel
  • kernel-cross-headers
NoNoOct 24, 2025
CVE-2025-40018N/AN/A
  • Linux KernelLinux Kernel
  • kernel-kdump
NoNoOct 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management