CVE-2025-40018ipvs: Defer ip_vs_ftp unregister during netns cleanup
- 7.8HighCVSS base score
- 0.15%Exploitation in 30 daysEPSS · top 95% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By Linux
- 6 months later
· 6 months later
Published
- 12 months later
· 12 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| LinuxCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Deferred | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.15% · top 95% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected 61b1ab4583e275af216c8454b9256de680499b19 – < 8a6ecab3847c213ce2855b0378e63ce839085de3
- affected 61b1ab4583e275af216c8454b9256de680499b19 – < 421b1ae1574dfdda68b835c15ac4921ec0030182
- affected 61b1ab4583e275af216c8454b9256de680499b19 – < 1d79471414d7b9424d699afff2aa79fff322f52d
- affected 61b1ab4583e275af216c8454b9256de680499b19 – < 53717f8a4347b78eac6488072ad8e5adbaff38d9
- affected 61b1ab4583e275af216c8454b9256de680499b19 – < 8cbe2a21d85727b66d7c591fd5d83df0d8c4f757
- affected 61b1ab4583e275af216c8454b9256de680499b19 – < dc1a481359a72ee7e548f1f5da671282a7c13b8f
- affected 61b1ab4583e275af216c8454b9256de680499b19 – < a343811ef138a265407167294275201621e9ebb2
- affected 61b1ab4583e275af216c8454b9256de680499b19 – < 134121bfd99a06d44ef5ba15a9beb075297c0821
- affected 2.6.39
- unaffected < 2.6.39
- unaffected 5.4.301 – ≤ 5.4.*
- unaffected 5.10.246 – ≤ 5.10.*
- unaffected 5.15.195 – ≤ 5.15.*
- unaffected 6.1.156 – ≤ 6.1.*
- unaffected 6.6.112 – ≤ 6.6.*
- unaffected 6.12.53 – ≤ 6.12.*
- unaffected 6.17.3 – ≤ 6.17.*
- unaffected 6.18 – ≤ *
References
References8
- https://git.kernel.org/stable/c/8a6ecab3847c213ce2855b0378e63ce839085de3 (opens in a new tab)
- https://git.kernel.org/stable/c/421b1ae1574dfdda68b835c15ac4921ec0030182 (opens in a new tab)
- https://git.kernel.org/stable/c/1d79471414d7b9424d699afff2aa79fff322f52d (opens in a new tab)
- https://git.kernel.org/stable/c/53717f8a4347b78eac6488072ad8e5adbaff38d9 (opens in a new tab)
- https://git.kernel.org/stable/c/8cbe2a21d85727b66d7c591fd5d83df0d8c4f757 (opens in a new tab)
- https://git.kernel.org/stable/c/dc1a481359a72ee7e548f1f5da671282a7c13b8f (opens in a new tab)
- https://git.kernel.org/stable/c/a343811ef138a265407167294275201621e9ebb2 (opens in a new tab)
- https://git.kernel.org/stable/c/134121bfd99a06d44ef5ba15a9beb075297c0821 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-35832 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-40018)Record last updated .