CVE-2025-40018

ipvs: Defer ip_vs_ftp unregister during netns cleanup

HIGH
7.8
CVSS Score
Published: October 24, 2025 at 11:44 AM UTC
Updated: October 19, 2026 at 09:10 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.1%
SSVC
No known exploit

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.3961b1ab4583e275af216c8454b9256de680499b19
Vendor states this is fixed in 134121bfd99a06d44ef5ba15a9beb075297c0821 (fixed)
Vendor states this is fixed in 1d79471414d7b9424d699afff2aa79fff322f52d (fixed)
Vendor states this is fixed in 421b1ae1574dfdda68b835c15ac4921ec0030182 (fixed)
Vendor states this is fixed in 53717f8a4347b78eac6488072ad8e5adbaff38d9 (fixed)
Vendor states this is fixed in 8a6ecab3847c213ce2855b0378e63ce839085de3 (fixed)
Vendor states this is fixed in 8cbe2a21d85727b66d7c591fd5d83df0d8c4f757 (fixed)
Vendor states this is fixed in a343811ef138a265407167294275201621e9ebb2 (fixed)
Vendor states this is fixed in dc1a481359a72ee7e548f1f5da671282a7c13b8f (fixed)
Vendor states this is fixed in 2.6.39 (unaffected)
Vendor states this is fixed in 5.10.246 (unaffected)
Vendor states this is fixed in 5.15.195 (unaffected)
Vendor states this is fixed in 5.4.301 (unaffected)
Vendor states this is fixed in 6.1.156 (unaffected)
Vendor states this is fixed in 6.12.53 (unaffected)
Vendor states this is fixed in 6.17.3 (unaffected)
Vendor states this is fixed in 6.18 (unaffected)
Vendor states this is fixed in 6.6.112 (unaffected)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusDEFERRED

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card