CVE-2025-40018
Last modified
CVE-2025-40018 is a high-severity vulnerability rated 7.8/10 on the CVSS scale. 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. EPSS estimates a 0.20% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 61b1ab4583e275af216c8454b9256de680499b19, < 8a6ecab3847c213ce2855b0378e63ce839085de3; >= 61b1ab4583e275af216c8454b9256de680499b19, < 421b1ae1574dfdda68b835c15ac4921ec0030182; >= 61b1ab4583e275af216c8454b9256de680499b19, < 1d79471414d7b9424d699afff2aa79fff322f52d; >= 61b1ab4583e275af216c8454b9256de680499b19, < 53717f8a4347b78eac6488072ad8e5adbaff38d9; >= 61b1ab4583e275af216c8454b9256de680499b19, < 8cbe2a21d85727b66d7c591fd5d83df0d8c4f757; >= 61b1ab4583e275af216c8454b9256de680499b19, < dc1a481359a72ee7e548f1f5da671282a7c13b8f; >= 61b1ab4583e275af216c8454b9256de680499b19, < a343811ef138a265407167294275201621e9ebb2; >= 61b1ab4583e275af216c8454b9256de680499b19, < 134121bfd99a06d44ef5ba15a9beb075297c0821 |
| Linux | Linux | 2.6.39 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-40018?
How severe is CVE-2025-40018?
How do I fix CVE-2025-40018?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-40012In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40013In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40014In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2025-40015In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40016In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40017In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40019In the Linux kernel, the following vulnerability has been re…
- CVE-2025-4002A vulnerability was found in RefindPlusRepo RefindPlus 0.14.…6.8
- CVE-2025-40020In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40021In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40022In the Linux kernel, the following vulnerability has been re…
- CVE-2025-40023In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2025-40018?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
