CVE-2025-40018

Aliases:UBUNTU-CVE-2025-40018DEBIAN-CVE-2025-40018
Advisory lineage Upstream: 0 Downstream: 131
Deferred
Published: 24 Oct 2025, 11:44
Last modified:05 Aug 2026, 12:07

Vulnerability Summary

Overall Risk (default)
medium
31/100
CVSS Score
7.8 HIGH
v3.1 (cve.org)
EPSS Score
0.14% LOW
0% probability +0.09%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

24 Oct 2025, 11:44
Published
Vulnerability first disclosed
05 Aug 2026, 12:07
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1HIGHScore: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Trends

Current EPSS score: 0.14% Percentile: 4%

Affected Systems

  • debianlinux

    < 5.10.247-1 | < 6.1.158-1 | < 6.12.57-1 | < 6.17.6-1

  • debianlinux-6.1

    < 6.1.158-1~deb11u1

  • ubuntulinux

    all | < 4.4.0-276.310 | < 4.15.0-245.257 | < 5.4.0-224.244 | < 5.15.0-164.174 | < 6.8.0-90.91 | < 6.17.0-8.8

  • ubuntulinux-allwinner-5.19

    all

  • ubuntulinux-aws

    < 4.4.0-1150.156 | < 4.4.0-1188.203 | < 4.15.0-1187.200 | < 5.4.0-1153.163 | < 5.15.0-1098.105 | < 6.8.0-1044.46 | < 6.17.0-1005.5

  • ubuntulinux-aws-5.0

    all

  • ubuntulinux-aws-5.11

    all

  • ubuntulinux-aws-5.13

    all

  • ubuntulinux-aws-5.15

    < 5.15.0-1098.105~20.04.1

  • ubuntulinux-aws-5.19

    all

  • ubuntulinux-aws-5.3

    all

  • ubuntulinux-aws-5.4

    < 5.4.0-1153.163~18.04.1

  • ubuntulinux-aws-5.8

    all

  • ubuntulinux-aws-6.14

    < 6.14.0-1018.18~24.04.1

  • ubuntulinux-aws-6.2

    all

  • ubuntulinux-aws-6.5

    all

  • ubuntulinux-aws-6.8

    < 6.8.0-1044.46~22.04.1

  • ubuntulinux-aws-fips

    < 4.15.0-2125.131 | all | < 5.4.0-1153.163+fips1 | < 5.15.0-1098.105+fips1 | < 6.8.0-1044.46+fips1

  • ubuntulinux-aws-hwe

    < 4.15.0-1187.200~16.04.1

  • ubuntulinux-azure

    < 4.15.0-1195.210~14.04.1 | < 4.15.0-1195.210~16.04.1 | all | < 5.4.0-1156.163 | < 5.15.0-1102.111 | < 6.8.0-1044.50 | < 6.17.0-1006.6

  • ubuntulinux-azure-4.15

    < 4.15.0-1195.210

  • ubuntulinux-azure-5.11

    all

  • ubuntulinux-azure-5.13

    all

  • ubuntulinux-azure-5.15

    < 5.15.0-1102.111~20.04.1

  • ubuntulinux-azure-5.19

    all

  • ubuntulinux-azure-5.3

    all

  • ubuntulinux-azure-5.4

    < 5.4.0-1156.163~18.04.1

  • ubuntulinux-azure-5.8

    all

  • ubuntulinux-azure-6.11

    all

  • ubuntulinux-azure-6.14

    < 6.14.0-1017.17~24.04.1

  • ubuntulinux-azure-6.2

    all

  • ubuntulinux-azure-6.5

    all

  • ubuntulinux-azure-6.8

    < 6.8.0-1044.50~22.04.1

  • ubuntulinux-azure-edge

    all

  • ubuntulinux-azure-fde

    all | all | all | all

  • ubuntulinux-azure-fde-5.19

    all

  • ubuntulinux-azure-fde-6.14

    all

  • ubuntulinux-azure-fde-6.2

    all

  • ubuntulinux-azure-fde-6.8

    all

  • ubuntulinux-azure-fips

    < 4.15.0-2104.110 | all | < 5.4.0-1157.164+fips1 | < 5.15.0-1102.111+fips1 | < 6.8.0-1044.50+fips1

  • ubuntulinux-azure-nvidia

    < 6.8.0-1029.32

  • ubuntulinux-azure-nvidia-6.14

    all

  • ubuntulinux-bluefield

    all | < 5.4.0-1112.119 | < 5.15.0-1082.84 | < 6.8.0-1014.18

  • ubuntulinux-fips

    < 4.4.0-1120.127 | all | < 4.15.0-1142.154 | < 5.4.0-1127.137 | < 5.15.0-164.174+fips1 | < 6.8.0-90.91+fips1

  • ubuntulinux-gcp

    < 4.15.0-1180.197~16.04.1 | all | < 5.4.0-1156.165 | < 5.15.0-1098.107 | < 6.8.0-1045.48 | < 6.17.0-1005.5

  • ubuntulinux-gcp-4.15

    < 4.15.0-1180.197

  • ubuntulinux-gcp-5.11

    all

  • ubuntulinux-gcp-5.13

    all

  • ubuntulinux-gcp-5.15

    < 5.15.0-1098.107~20.04.1

  • ubuntulinux-gcp-5.19

    all

Showing first 50 affected entries in server-rendered view.

References (47)