cbcvebase.
CVE-2025-40018
published 2025-10-24

CVE-2025-40018: In the Linux kernel, the following vulnerability has been resolved: ipvs: Defer ip_vs_ftp unregister during netns cleanup On the netns cleanup path…

PriorityP337high7.8CVSS 3.1
AVLACLPRLUINSUCHIHAH
EPSS
0.14%
3.8th percentile
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.

Affected

29 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.158-1 (bookworm)linux 6.1.158-1 (bookworm)
debianlinux-6.1< linux 6.1.158-1 (bookworm)linux 6.1.158-1 (bookworm)
linuxlinux
linuxlinux>= 61b1ab4583e275af216c8454b9256de680499b19 < 8a6ecab3847c213ce2855b0378e63ce839085de38a6ecab3847c213ce2855b0378e63ce839085de3
linuxlinux>= 61b1ab4583e275af216c8454b9256de680499b19 < 421b1ae1574dfdda68b835c15ac4921ec0030182421b1ae1574dfdda68b835c15ac4921ec0030182
linuxlinux>= 61b1ab4583e275af216c8454b9256de680499b19 < 1d79471414d7b9424d699afff2aa79fff322f52d1d79471414d7b9424d699afff2aa79fff322f52d
linuxlinux>= 61b1ab4583e275af216c8454b9256de680499b19 < 53717f8a4347b78eac6488072ad8e5adbaff38d953717f8a4347b78eac6488072ad8e5adbaff38d9
linuxlinux>= 61b1ab4583e275af216c8454b9256de680499b19 < 8cbe2a21d85727b66d7c591fd5d83df0d8c4f7578cbe2a21d85727b66d7c591fd5d83df0d8c4f757
linuxlinux>= 61b1ab4583e275af216c8454b9256de680499b19 < dc1a481359a72ee7e548f1f5da671282a7c13b8fdc1a481359a72ee7e548f1f5da671282a7c13b8f
linuxlinux>= 61b1ab4583e275af216c8454b9256de680499b19 < a343811ef138a265407167294275201621e9ebb2a343811ef138a265407167294275201621e9ebb2
linuxlinux>= 61b1ab4583e275af216c8454b9256de680499b19 < 134121bfd99a06d44ef5ba15a9beb075297c0821134121bfd99a06d44ef5ba15a9beb075297c0821
linuxlinux_kernel>= 0 < 5.10.247-15.10.247-1
linuxlinux_kernel>= 0 < 6.1.158-16.1.158-1
linuxlinux_kernel>= 0 < 6.12.57-16.12.57-1
linuxlinux_kernel>= 0 < 6.17.6-16.17.6-1
linuxlinux_kernel>= 0 < 5.15.0-164.1745.15.0-164.174
linuxlinux_kernel>= 0 < 6.8.0-90.916.8.0-90.91
linuxlinux_kernel>= 0 < 6.17.0-8.86.17.0-8.8
linuxlinux_kernel>= 0 < 4.4.0-276.3104.4.0-276.310
linuxlinux_kernel>= 0 < 4.15.0-245.2574.15.0-245.257
linuxlinux_kernel>= 0 < 5.4.0-224.2445.4.0-224.244
linuxlinux_kernel>= 2.6.39 < 5.4.3015.4.301
linuxlinux_kernel>= 5.11.0 < 5.15.1955.15.195
linuxlinux_kernel>= 5.16.0 < 6.1.1566.1.156
linuxlinux_kernel>= 5.5.0 < 5.10.2465.10.246

CVSS provenance

nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv7.8HIGH
vendor_ubuntu9.8CRITICAL
vendor_msrc7.0HIGH
vendor_redhat6.6MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.