CVE Database
/

CVE-2025-40018

Back to search

CVE-2025-40018

Published: Oct 24, 2025

Modified: May 11, 2026

PUBLISHED

Description

In the Linux kernel, the following vulnerability has been resolved: ipvs: Defer ip_vs_ftp unregister during netns cleanup On the netns cleanup path, __ip_vs_ftp_exit() may unregister ip_vs_ftp before connections with valid cp->app pointers are flushed, leading to a use-after-free. Fix this by introducing a global `exiting_module` flag, set to true in ip_vs_ftp_exit() before unregistering the pernet subsystem. In __ip_vs_ftp_exit(), skip ip_vs_ftp unregister if called during netns cleanup (when exiting_module is false) and defer it to __ip_vs_cleanup_batch(), which unregisters all apps after all connections are flushed. If called during module exit, unregister ip_vs_ftp immediately.

VendorProductVersions

Linux

Linux

affected
61b1ab4583e275af216c8454b9256de680499b19 - < 8a6ecab3847c213ce2855b0378e63ce839085de3
affected
61b1ab4583e275af216c8454b9256de680499b19 - < 421b1ae1574dfdda68b835c15ac4921ec0030182
affected
61b1ab4583e275af216c8454b9256de680499b19 - < 1d79471414d7b9424d699afff2aa79fff322f52d
affected
61b1ab4583e275af216c8454b9256de680499b19 - < 53717f8a4347b78eac6488072ad8e5adbaff38d9
affected
61b1ab4583e275af216c8454b9256de680499b19 - < 8cbe2a21d85727b66d7c591fd5d83df0d8c4f757

+3 more versions

Linux

Linux

affected
2.6.39
unaffected
0 - < 2.6.39
unaffected
5.4.301 - <= 5.4.*
unaffected
5.10.246 - <= 5.10.*
unaffected
5.15.195 - <= 5.15.*

+5 more versions

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now