CVE-2025-40018
BaseFortify
Publication date: 2025-10-24
Last updated on: 2025-10-29
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel's ipvs FTP module during network namespace (netns) cleanup. The function __ip_vs_ftp_exit() may unregister the ip_vs_ftp module before all connections with valid application pointers are properly flushed, leading to a use-after-free condition. This means that the system might attempt to access memory that has already been freed, which can cause instability or security issues. The fix involves deferring the unregistering of ip_vs_ftp until after all connections are flushed, using a global flag to control the timing of the unregister operation.
How can this vulnerability impact me? :
This vulnerability can lead to use-after-free conditions in the Linux kernel, which may cause system crashes, instability, or potentially allow an attacker to execute arbitrary code or escalate privileges if exploited. This can compromise the security and reliability of systems running vulnerable versions of the Linux kernel.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update the Linux kernel to a version that includes the fix for CVE-2025-40018. The fix involves deferring the ip_vs_ftp unregister during netns cleanup to prevent use-after-free errors. Applying the official patch or upgrading to a patched kernel version is recommended.