{"id":"CVE-2025-40018","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2025-10-24T12:15:37.703","lastModified":"2026-10-19T21:10:00.160","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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."},{"lang":"es","value":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nipvs: Aplazar la anulación de registro de ip_vs_ftp durante la limpieza de netns\n\nEn la ruta de limpieza de netns, __ip_vs_ftp_exit() puede anular el registro de ip_vs_ftp antes de que se vacíen las conexiones con punteros cp->app válidos, lo que lleva a un uso después de liberación.\n\nEsto se soluciona introduciendo una bandera global 'exiting_module', establecida en verdadero en ip_vs_ftp_exit() antes de anular el registro del subsistema pernet. En __ip_vs_ftp_exit(), omitir la anulación de registro de ip_vs_ftp si se llama durante la limpieza de netns (cuando 'exiting_module' es falso) y aplazarla a __ip_vs_cleanup_batch(), que anula el registro de todas las aplicaciones después de que se vacían todas las conexiones. Si se llama durante la salida del módulo, anular el registro de ip_vs_ftp inmediatamente."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["net/netfilter/ipvs/ip_vs_ftp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"8a6ecab3847c213ce2855b0378e63ce839085de3","versionType":"git","status":"affected"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"421b1ae1574dfdda68b835c15ac4921ec0030182","versionType":"git","status":"affected"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"1d79471414d7b9424d699afff2aa79fff322f52d","versionType":"git","status":"affected"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"53717f8a4347b78eac6488072ad8e5adbaff38d9","versionType":"git","status":"affected"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"8cbe2a21d85727b66d7c591fd5d83df0d8c4f757","versionType":"git","status":"affected"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"dc1a481359a72ee7e548f1f5da671282a7c13b8f","versionType":"git","status":"affected"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"a343811ef138a265407167294275201621e9ebb2","versionType":"git","status":"affected"},{"version":"61b1ab4583e275af216c8454b9256de680499b19","lessThan":"134121bfd99a06d44ef5ba15a9beb075297c0821","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["net/netfilter/ipvs/ip_vs_ftp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2.6.39","status":"affected"},{"version":"0","lessThan":"2.6.39","versionType":"semver","status":"unaffected"},{"version":"5.4.301","lessThanOrEqual":"5.4.*","versionType":"semver","status":"unaffected"},{"version":"5.10.246","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.195","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.1.156","lessThanOrEqual":"6.1.*","versionType":"semver","status":"unaffected"},{"version":"6.6.112","lessThanOrEqual":"6.6.*","versionType":"semver","status":"unaffected"},{"version":"6.12.53","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.17.3","lessThanOrEqual":"6.17.*","versionType":"semver","status":"unaffected"},{"version":"6.18","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-10-15T21:56:10.486457Z","id":"CVE-2025-40018","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"references":[{"url":"https://git.kernel.org/stable/c/134121bfd99a06d44ef5ba15a9beb075297c0821","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/1d79471414d7b9424d699afff2aa79fff322f52d","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/421b1ae1574dfdda68b835c15ac4921ec0030182","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/53717f8a4347b78eac6488072ad8e5adbaff38d9","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8a6ecab3847c213ce2855b0378e63ce839085de3","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/8cbe2a21d85727b66d7c591fd5d83df0d8c4f757","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/a343811ef138a265407167294275201621e9ebb2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/dc1a481359a72ee7e548f1f5da671282a7c13b8f","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}