CVE-2025-40018
Vulnérabilité élevée dans Linux (Linux)
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.
Gravité et risque d'exploitation
CVE-2025-40018 obtient un score CVSS de 7.8/10, soit une gravité élevée. Selon le modèle EPSS, la probabilité qu'elle soit exploitée dans les 30 prochains jours est de 0.15 %, ce qui la place devant 3.8 % des CVE référencées.
Que faire ?
- Vérifiez si Linux (versions <=6.1.*, <=6.12.*, 61b1ab4583e275af216c8454b9256de680499b19, 6.12.53, <53717f8a4347b78eac6488072ad8e5adbaff38d9, 6.17.3, <dc1a481359a72ee7e548f1f5da671282a7c13b8f, 2.6.39, 0, 6.18, <8a6ecab3847c213ce2855b0378e63ce839085de3, <=5.10.*, <421b1ae1574dfdda68b835c15ac4921ec0030182, <=6.6.*, <=5.4.*, 5.15.195, <134121bfd99a06d44ef5ba15a9beb075297c0821, 5.10.246, <a343811ef138a265407167294275201621e9ebb2, <=*, 6.6.112, <=5.15.*, 6.1.156, <=6.17.*, 5.4.301, <8cbe2a21d85727b66d7c591fd5d83df0d8c4f757, <1d79471414d7b9424d699afff2aa79fff322f52d, <2.6.39) est présent sur votre parc.
- Appliquez le correctif ou la version corrigée indiqués dans les références de l'éditeur.
- À défaut de correctif, limitez l'exposition (filtrage réseau, désactivation du composant).
- Automatisez la détection : les agents CVE Heimdall (gratuits, open source) corrèlent l'inventaire de vos serveurs avec la base CVE.
Références
- https://git.kernel.org/stable/c/8a6ecab3847c213ce2855b0378e63ce839085de3
- https://git.kernel.org/stable/c/421b1ae1574dfdda68b835c15ac4921ec0030182
- https://git.kernel.org/stable/c/1d79471414d7b9424d699afff2aa79fff322f52d
- https://git.kernel.org/stable/c/53717f8a4347b78eac6488072ad8e5adbaff38d9
- https://git.kernel.org/stable/c/8cbe2a21d85727b66d7c591fd5d83df0d8c4f757
- https://git.kernel.org/stable/c/dc1a481359a72ee7e548f1f5da671282a7c13b8f
- https://git.kernel.org/stable/c/a343811ef138a265407167294275201621e9ebb2
- https://git.kernel.org/stable/c/134121bfd99a06d44ef5ba15a9beb075297c0821
