{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-40018","id":"CVE-2025-40018","title":"ipvs: Defer ip_vs_ftp unregister during netns cleanup","description":"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 pe","descriptionLong":"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.","published":"2025-10-24T11:44:28.955Z","updated":"2026-10-28T02:30:39.718216241Z","reserved":"2025-04-16T07:20:57.152Z","status":"Deferred","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"8a6ecab3847c213ce2855b0378e63ce839085de3","status":"affected","versionType":"git"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"421b1ae1574dfdda68b835c15ac4921ec0030182","status":"affected","versionType":"git"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"1d79471414d7b9424d699afff2aa79fff322f52d","status":"affected","versionType":"git"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"53717f8a4347b78eac6488072ad8e5adbaff38d9","status":"affected","versionType":"git"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"8cbe2a21d85727b66d7c591fd5d83df0d8c4f757","status":"affected","versionType":"git"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"dc1a481359a72ee7e548f1f5da671282a7c13b8f","status":"affected","versionType":"git"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"a343811ef138a265407167294275201621e9ebb2","status":"affected","versionType":"git"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"134121bfd99a06d44ef5ba15a9beb075297c0821","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.39","status":"affected"},{"version":"0","lessThan":"2.6.39","status":"unaffected","versionType":"semver"},{"version":"5.4.301","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.246","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.195","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.156","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.112","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.53","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.17.3","lessThanOrEqual":"6.17.*","status":"unaffected","versionType":"semver"},{"version":"6.18","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/8a6ecab3847c213ce2855b0378e63ce839085de3","tags":["web"]},{"url":"https://git.kernel.org/stable/c/421b1ae1574dfdda68b835c15ac4921ec0030182","tags":["web"]},{"url":"https://git.kernel.org/stable/c/1d79471414d7b9424d699afff2aa79fff322f52d","tags":["web"]},{"url":"https://git.kernel.org/stable/c/53717f8a4347b78eac6488072ad8e5adbaff38d9","tags":["web"]},{"url":"https://git.kernel.org/stable/c/8cbe2a21d85727b66d7c591fd5d83df0d8c4f757","tags":["web"]},{"url":"https://git.kernel.org/stable/c/dc1a481359a72ee7e548f1f5da671282a7c13b8f","tags":["web"]},{"url":"https://git.kernel.org/stable/c/a343811ef138a265407167294275201621e9ebb2","tags":["web"]},{"url":"https://git.kernel.org/stable/c/134121bfd99a06d44ef5ba15a9beb075297c0821","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40018.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40018","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00154,"epssPercentile":0.04575,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-40018","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40018","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-40018","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-40018","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}