PoC Monitor
← All CVEs
CVE-2025-40018published 24 Oct 2025 11:44 UTCData: JSON · API

Linux

ipvs: Defer ip_vs_ftp unregister during netns cleanup

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Linux Linux
  • >= 61b1ab4583e275af216c8454b9256de680499b19, < 8a6ecab3847c213ce2855b0378e63ce839085de3
  • >= 61b1ab4583e275af216c8454b9256de680499b19, < 421b1ae1574dfdda68b835c15ac4921ec0030182
  • >= 61b1ab4583e275af216c8454b9256de680499b19, < 1d79471414d7b9424d699afff2aa79fff322f52d
  • >= 61b1ab4583e275af216c8454b9256de680499b19, < 53717f8a4347b78eac6488072ad8e5adbaff38d9
  • >= 61b1ab4583e275af216c8454b9256de680499b19, < 8cbe2a21d85727b66d7c591fd5d83df0d8c4f757
  • >= 61b1ab4583e275af216c8454b9256de680499b19, < dc1a481359a72ee7e548f1f5da671282a7c13b8f
  • >= 61b1ab4583e275af216c8454b9256de680499b19, < a343811ef138a265407167294275201621e9ebb2
  • >= 61b1ab4583e275af216c8454b9256de680499b19, < 134121bfd99a06d44ef5ba15a9beb075297c0821

Fixed in 8a6ecab3847c213ce2855b0378e63ce839085de3, 421b1ae1574dfdda68b835c15ac4921ec0030182, 1d79471414d7b9424d699afff2aa79fff322f52d, 53717f8a4347b78eac6488072ad8e5adbaff38d9, 8cbe2a21d85727b66d7c591fd5d83df0d8c4f757, dc1a481359a72ee7e548f1f5da671282a7c13b8f, a343811ef138a265407167294275201621e9ebb2, 134121bfd99a06d44ef5ba15a9beb075297c0821

Linux Linux
  • 2.6.39

Fixed in 0, 5.4.301, 5.10.246, 5.15.195, 6.1.156, 6.6.112, 6.12.53, 6.17.3, 6.18

Mitigation

Upgrade Linux to 8a6ecab3847c213ce2855b0378e63ce839085de3 or 421b1ae1574dfdda68b835c15ac4921ec0030182 or 1d79471414d7b9424d699afff2aa79fff322f52d or 53717f8a4347b78eac6488072ad8e5adbaff38d9 or 8cbe2a21d85727b66d7c591fd5d83df0d8c4f757 or dc1a481359a72ee7e548f1f5da671282a7c13b8f or a343811ef138a265407167294275201621e9ebb2 or 134121bfd99a06d44ef5ba15a9beb075297c0821 or later.

Upgrade Linux to 0 or 5.4.301 or 5.10.246 or 5.15.195 or 6.1.156 or 6.6.112 or 6.12.53 or 6.17.3 or 6.18 or later.

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published24 Oct 2025 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

No PoC repositories found yet.