Skip to main content
Network Thinking Solutions Logo

CVE-2025-40018

Linux kernel: ipvs: Defer ip_vs_ftp unregister during netns cleanup

All CVEs
CVE-2025-40018Published 10/24/2025

Linux kernel: ipvs: Defer ip_vs_ftp unregister during netns cleanup

Vendor advisory
CVSS7.8High

Overview

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.

Published
10/24/2025
Last modified
10/19/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
Linux
Linux
≥ 61b1ab4583e275af216c8454b9256de680499b19, < 8a6ecab3847c213ce2855b0378e63ce839085de3

Verify advisory

Source
Linux
Linux
≥ 61b1ab4583e275af216c8454b9256de680499b19, < 421b1ae1574dfdda68b835c15ac4921ec0030182

Verify advisory

Source
Linux
Linux
≥ 61b1ab4583e275af216c8454b9256de680499b19, < 1d79471414d7b9424d699afff2aa79fff322f52d

Verify advisory

Source
Linux
Linux
≥ 61b1ab4583e275af216c8454b9256de680499b19, < 53717f8a4347b78eac6488072ad8e5adbaff38d9

Verify advisory

Source
Linux
Linux
≥ 61b1ab4583e275af216c8454b9256de680499b19, < 8cbe2a21d85727b66d7c591fd5d83df0d8c4f757

Verify advisory

Source
Linux
Linux
≥ 61b1ab4583e275af216c8454b9256de680499b19, < dc1a481359a72ee7e548f1f5da671282a7c13b8f

Verify advisory

Source
Linux
Linux
≥ 61b1ab4583e275af216c8454b9256de680499b19, < a343811ef138a265407167294275201621e9ebb2

Verify advisory

Source
Linux
Linux
≥ 61b1ab4583e275af216c8454b9256de680499b19, < 134121bfd99a06d44ef5ba15a9beb075297c0821

Verify advisory

Source
Linux
Linux
2.6.39

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.