{"id":"CVE-2025-40018","published":"2025-10-24T11:44:28Z","modified":"2026-10-15T22:02:36Z","title":"ipvs: Defer ip_vs_ftp unregister during netns cleanup","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nipvs: Defer ip_vs_ftp unregister during netns cleanup\n\nOn the netns cleanup path, __ip_vs_ftp_exit() may unregister ip_vs_ftp\nbefore connections with valid cp->app pointers are flushed, leading to a\nuse-after-free.\n\nFix this by introducing a global `exiting_module` flag, set to true in\nip_vs_ftp_exit() before unregistering the pernet subsystem. In\n__ip_vs_ftp_exit(), skip ip_vs_ftp unregister if called during netns\ncleanup (when exiting_module is false) and defer it to\n__ip_vs_cleanup_batch(), which unregisters all apps after all connections\nare flushed. If called during module exit, unregister ip_vs_ftp\nimmediately.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00154,"percentile":0.04563,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/8a6ecab3847c213ce2855b0378e63ce839085de3","tags":[]},{"url":"https://git.kernel.org/stable/c/421b1ae1574dfdda68b835c15ac4921ec0030182","tags":[]},{"url":"https://git.kernel.org/stable/c/1d79471414d7b9424d699afff2aa79fff322f52d","tags":[]},{"url":"https://git.kernel.org/stable/c/53717f8a4347b78eac6488072ad8e5adbaff38d9","tags":[]},{"url":"https://git.kernel.org/stable/c/8cbe2a21d85727b66d7c591fd5d83df0d8c4f757","tags":[]},{"url":"https://git.kernel.org/stable/c/dc1a481359a72ee7e548f1f5da671282a7c13b8f","tags":[]},{"url":"https://git.kernel.org/stable/c/a343811ef138a265407167294275201621e9ebb2","tags":[]},{"url":"https://git.kernel.org/stable/c/134121bfd99a06d44ef5ba15a9beb075297c0821","tags":[]}],"priority":{"score":6.4,"factors":[{"name":"EPSS percentile","points":0.91},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 61b1ab4583e275af216c8454b9256de680499b19, < 8a6ecab3847c213ce2855b0378e63ce839085de3",">= 61b1ab4583e275af216c8454b9256de680499b19, < 421b1ae1574dfdda68b835c15ac4921ec0030182",">= 61b1ab4583e275af216c8454b9256de680499b19, < 1d79471414d7b9424d699afff2aa79fff322f52d",">= 61b1ab4583e275af216c8454b9256de680499b19, < 53717f8a4347b78eac6488072ad8e5adbaff38d9",">= 61b1ab4583e275af216c8454b9256de680499b19, < 8cbe2a21d85727b66d7c591fd5d83df0d8c4f757",">= 61b1ab4583e275af216c8454b9256de680499b19, < dc1a481359a72ee7e548f1f5da671282a7c13b8f",">= 61b1ab4583e275af216c8454b9256de680499b19, < a343811ef138a265407167294275201621e9ebb2",">= 61b1ab4583e275af216c8454b9256de680499b19, < 134121bfd99a06d44ef5ba15a9beb075297c0821"]},{"vendor":"Linux","product":"Linux","versions":["2.6.39"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-15T21:56:10.486457Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-35832","exploited":false,"provenance":"source"}}