CVE-2025-40018: ipvs: Defer ip_vs_ftp unregister during netns cleanup

Published Oct 24, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ipvs: Defer ipvsftp unregister during netns cleanup

On the netns cleanup path, ipvsftpexit() may unregister ipvsftp before connections with valid cp->app pointers are flushed, leading to a use-after-free.

Fix this by introducing a global exitingmodule flag, set to true in ipvsftpexit() before unregistering the pernet subsystem. In ipvsftpexit(), skip ipvsftp unregister if called during netns cleanup (when exitingmodule is false) and defer it to ipvscleanupbatch(), which unregisters all apps after all connections are flushed. If called during module exit, unregister ipvsftp immediately.

Affected Software

239 affected componentsFixes available
Linux Linux kernel
Microsoft azl3 kernel 6.6.104.2-4
Microsoft azl3 kernel 6.6.104.2-4
ubuntu/linux*
ubuntu/linux-aws<4.4.0-1150.156
4.4.0-1150.156
ubuntu/linux-azure<4.15.0-1195.210~14.04.1
4.15.0-1195.210~14.04.1
ubuntu/linux-lts-xenial<4.4.0-276.310~14.04.1
4.4.0-276.310~14.04.1
ubuntu/linux<4.4.0-276.310
4.4.0-276.310
ubuntu/linux-aws<4.4.0-1188.203
4.4.0-1188.203
ubuntu/linux-aws-hwe<4.15.0-1187.200~16.04.1
4.15.0-1187.200~16.04.1
ubuntu/linux-azure<4.15.0-1195.210~16.04.1
4.15.0-1195.210~16.04.1
ubuntu/linux-gcp<4.15.0-1180.197~16.04.1
4.15.0-1180.197~16.04.1
ubuntu/linux-hwe<4.15.0-245.257~16.04.1
4.15.0-245.257~16.04.1
ubuntu/linux-kvm<4.4.0-1151.162
4.4.0-1151.162
ubuntu/linux-oracle<4.15.0-1149.160~16.04.1
4.15.0-1149.160~16.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-fips<4.4.0-1120.127
4.4.0-1120.127
ubuntu/linux-fips*
ubuntu/linux<4.15.0-245.257
4.15.0-245.257
ubuntu/linux-aws<4.15.0-1187.200
4.15.0-1187.200
ubuntu/linux-aws-5.0*
ubuntu/linux-aws-5.3*
ubuntu/linux-aws-5.4<5.4.0-1153.163~18.04.1
5.4.0-1153.163~18.04.1
ubuntu/linux-azure*
ubuntu/linux-azure-4.15<4.15.0-1195.210
4.15.0-1195.210
ubuntu/linux-azure-5.3*
ubuntu/linux-azure-5.4<5.4.0-1156.163~18.04.1
5.4.0-1156.163~18.04.1
ubuntu/linux-azure-edge*
ubuntu/linux-gcp*
ubuntu/linux-gcp-4.15<4.15.0-1180.197
4.15.0-1180.197
ubuntu/linux-gcp-5.3*
ubuntu/linux-gcp-5.4<5.4.0-1156.165~18.04.1
5.4.0-1156.165~18.04.1
ubuntu/linux-gke-4.15*
ubuntu/linux-gke-5.4*
ubuntu/linux-gkeop-5.4*
ubuntu/linux-hwe*
ubuntu/linux-hwe-5.4<5.4.0-224.244~18.04.1
5.4.0-224.244~18.04.1
ubuntu/linux-hwe-edge*
ubuntu/linux-ibm-5.4<5.4.0-1099.104~18.04.1
5.4.0-1099.104~18.04.1
ubuntu/linux-kvm<4.15.0-1169.174
4.15.0-1169.174
ubuntu/linux-oem*
ubuntu/linux-oracle<4.15.0-1149.160
4.15.0-1149.160
ubuntu/linux-oracle-5.0*
ubuntu/linux-oracle-5.3*
ubuntu/linux-oracle-5.4<5.4.0-1151.161~18.04.1
5.4.0-1151.161~18.04.1
ubuntu/linux-raspi-5.4<5.4.0-1136.149~18.04.1
5.4.0-1136.149~18.04.1
ubuntu/linux-aws-fips<4.15.0-2125.131
4.15.0-2125.131
ubuntu/linux-azure-fips<4.15.0-2104.110
4.15.0-2104.110
ubuntu/linux-fips<4.15.0-1142.154
4.15.0-1142.154
ubuntu/linux-gcp-fips<4.15.0-2088.94
4.15.0-2088.94
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.4.0-224.244
5.4.0-224.244
ubuntu/linux-aws<5.4.0-1153.163
5.4.0-1153.163
ubuntu/linux-aws-5.11*
ubuntu/linux-aws-5.13*
ubuntu/linux-aws-5.15<5.15.0-1098.105~20.04.1
5.15.0-1098.105~20.04.1
ubuntu/linux-aws-5.8*
ubuntu/linux-azure<5.4.0-1156.163
5.4.0-1156.163
ubuntu/linux-azure-5.11*
ubuntu/linux-azure-5.13*
ubuntu/linux-azure-5.15<5.15.0-1102.111~20.04.1
5.15.0-1102.111~20.04.1
ubuntu/linux-azure-5.8*
ubuntu/linux-azure-fde*
ubuntu/linux-bluefield<5.4.0-1112.119
5.4.0-1112.119
ubuntu/linux-gcp<5.4.0-1156.165
5.4.0-1156.165
ubuntu/linux-gcp-5.11*
ubuntu/linux-gcp-5.13*
ubuntu/linux-gcp-5.15<5.15.0-1098.107~20.04.1
5.15.0-1098.107~20.04.1
ubuntu/linux-gcp-5.8*
ubuntu/linux-gke*
ubuntu/linux-gke-5.15*
ubuntu/linux-gkeop*
ubuntu/linux-gkeop-5.15*
ubuntu/linux-hwe-5.11*
ubuntu/linux-hwe-5.13*
ubuntu/linux-hwe-5.15<5.15.0-164.174~20.04.1
5.15.0-164.174~20.04.1
ubuntu/linux-hwe-5.8*
ubuntu/linux-ibm<5.4.0-1099.104
5.4.0-1099.104
ubuntu/linux-ibm-5.15<5.15.0-1092.95~20.04.1
5.15.0-1092.95~20.04.1
ubuntu/linux-intel-5.13*
ubuntu/linux-intel-iotg-5.15<5.15.0-1093.99~20.04.1
5.15.0-1093.99~20.04.1
ubuntu/linux-iot<5.4.0-1057.60
5.4.0-1057.60
ubuntu/linux-kvm<5.4.0-1140.149
5.4.0-1140.149
ubuntu/linux-lowlatency-hwe-5.15<5.15.0-164.174~20.04.1
5.15.0-164.174~20.04.1
ubuntu/linux-nvidia-tegra-5.15<5.15.0-1050.50~20.04.1
5.15.0-1050.50~20.04.1
ubuntu/linux-oem-5.10*
ubuntu/linux-oem-5.13*
ubuntu/linux-oem-5.6*
ubuntu/linux-oracle<5.4.0-1151.161
5.4.0-1151.161
ubuntu/linux-oracle-5.11*
ubuntu/linux-oracle-5.13*
ubuntu/linux-oracle-5.15<5.15.0-1095.101~20.04.1
5.15.0-1095.101~20.04.1
ubuntu/linux-oracle-5.8*
ubuntu/linux-raspi<5.4.0-1136.149
5.4.0-1136.149
ubuntu/linux-raspi2*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.11*
ubuntu/linux-riscv-5.15<5.15.0-1093.97~20.04.2
5.15.0-1093.97~20.04.2
ubuntu/linux-riscv-5.8*
ubuntu/linux-xilinx-zynqmp<5.4.0-1071.75
5.4.0-1071.75
ubuntu/linux-aws-fips<5.4.0-1153.163+fips1
5.4.0-1153.163+fips1
ubuntu/linux-azure-fips<5.4.0-1157.164+fips1
5.4.0-1157.164+fips1
ubuntu/linux-fips<5.4.0-1127.137
5.4.0-1127.137
ubuntu/linux-gcp-fips<5.4.0-1156.165+fips1
5.4.0-1156.165+fips1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux<5.15.0-164.174
5.15.0-164.174
ubuntu/linux-allwinner-5.19*
ubuntu/linux-aws<5.15.0-1098.105
5.15.0-1098.105
ubuntu/linux-aws-5.19*
ubuntu/linux-aws-6.2*
ubuntu/linux-aws-6.5*
ubuntu/linux-aws-6.8<6.8.0-1044.46~22.04.1
6.8.0-1044.46~22.04.1
ubuntu/linux-azure<5.15.0-1102.111
5.15.0-1102.111
ubuntu/linux-azure-5.19*
ubuntu/linux-azure-6.2*
ubuntu/linux-azure-6.5*
ubuntu/linux-azure-6.8<6.8.0-1044.50~22.04.1
6.8.0-1044.50~22.04.1
ubuntu/linux-azure-fde<5.15.0-1102.111.1
5.15.0-1102.111.1
ubuntu/linux-azure-fde-5.19*
ubuntu/linux-azure-fde-6.2*
ubuntu/linux-azure-fde-6.8<6.8.0-1046.53~22.04.1
6.8.0-1046.53~22.04.1
ubuntu/linux-gcp<5.15.0-1098.107
5.15.0-1098.107
ubuntu/linux-gcp-5.19*
ubuntu/linux-gcp-6.2*
ubuntu/linux-gcp-6.5*
ubuntu/linux-gcp-6.8<6.8.0-1045.48~22.04.1
6.8.0-1045.48~22.04.1
ubuntu/linux-gke<5.15.0-1094.100
5.15.0-1094.100
ubuntu/linux-gkeop<5.15.0-1081.89
5.15.0-1081.89
ubuntu/linux-hwe-5.19*
ubuntu/linux-hwe-6.2*
ubuntu/linux-hwe-6.5*
ubuntu/linux-hwe-6.8<6.8.0-90.91~22.04.1
6.8.0-90.91~22.04.1
ubuntu/linux-ibm<5.15.0-1092.95
5.15.0-1092.95
ubuntu/linux-ibm-6.8<6.8.0-1042.42~22.04.1
6.8.0-1042.42~22.04.1
ubuntu/linux-intel-iot-realtime*
ubuntu/linux-intel-iotg<5.15.0-1093.99
5.15.0-1093.99
ubuntu/linux-kvm<5.15.0-1090.95
5.15.0-1090.95
ubuntu/linux-lowlatency<5.15.0-164.174
5.15.0-164.174
ubuntu/linux-lowlatency-hwe-5.19*
ubuntu/linux-lowlatency-hwe-6.2*
ubuntu/linux-lowlatency-hwe-6.5*
ubuntu/linux-lowlatency-hwe-6.8<6.8.0-90.91.1~22.04.1
6.8.0-90.91.1~22.04.1
ubuntu/linux-nvidia<5.15.0-1093.94
5.15.0-1093.94
ubuntu/linux-nvidia-6.2*
ubuntu/linux-nvidia-6.5*
ubuntu/linux-nvidia-6.8<6.8.0-1044.47~22.04.1
6.8.0-1044.47~22.04.1
ubuntu/linux-nvidia-tegra<5.15.0-1050.50
5.15.0-1050.50
ubuntu/linux-nvidia-tegra-igx<5.15.0-1039.39
5.15.0-1039.39
ubuntu/linux-oem-5.17*
ubuntu/linux-oem-6.0*
ubuntu/linux-oem-6.1*
ubuntu/linux-oem-6.5*
ubuntu/linux-oracle<5.15.0-1095.101
5.15.0-1095.101
ubuntu/linux-oracle-6.5*
ubuntu/linux-oracle-6.8<6.8.0-1041.42~22.04.1
6.8.0-1041.42~22.04.1
ubuntu/linux-raspi<5.15.0-1092.95
5.15.0-1092.95
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-riscv-5.19*
ubuntu/linux-riscv-6.5*
ubuntu/linux-riscv-6.8<6.8.0-90.91~22.04.1
6.8.0-90.91~22.04.1
ubuntu/linux-starfive-5.19*
ubuntu/linux-starfive-6.2*
ubuntu/linux-starfive-6.5*
ubuntu/linux-xilinx-zynqmp<5.15.0-1062.66
5.15.0-1062.66
ubuntu/linux-bluefield<5.15.0-1082.84
5.15.0-1082.84
ubuntu/linux-intel-iot-realtime<5.15.0-1090.92
5.15.0-1090.92
ubuntu/linux-realtime<5.15.0-1097.106
5.15.0-1097.106
ubuntu/linux-realtime-6.8<6.8.1-1039.40~22.04.1
6.8.1-1039.40~22.04.1
ubuntu/linux-aws-fips*
ubuntu/linux-azure-fips*
ubuntu/linux-fips*
ubuntu/linux-gcp-fips*
ubuntu/linux-aws-fips<5.15.0-1098.105+fips1
5.15.0-1098.105+fips1
ubuntu/linux-azure-fips<5.15.0-1102.111+fips1
5.15.0-1102.111+fips1
ubuntu/linux-fips<5.15.0-164.174+fips1
5.15.0-164.174+fips1
ubuntu/linux-gcp-fips<5.15.0-1098.107+fips1
5.15.0-1098.107+fips1
ubuntu/linux<6.8.0-90.91
6.8.0-90.91
ubuntu/linux-aws<6.8.0-1044.46
6.8.0-1044.46
ubuntu/linux-aws-6.14<6.14.0-1018.18~24.04.1
6.14.0-1018.18~24.04.1
ubuntu/linux-azure<6.8.0-1044.50
6.8.0-1044.50
ubuntu/linux-azure-6.11*
ubuntu/linux-azure-6.14<6.14.0-1017.17~24.04.1
6.14.0-1017.17~24.04.1
ubuntu/linux-azure-fde<6.8.0-1046.53
6.8.0-1046.53
ubuntu/linux-azure-fde-6.14*
ubuntu/linux-azure-nvidia<6.8.0-1029.32
6.8.0-1029.32
ubuntu/linux-azure-nvidia-6.14*
ubuntu/linux-gcp<6.8.0-1045.48
6.8.0-1045.48
ubuntu/linux-gcp-6.11*
ubuntu/linux-gcp-6.14*
ubuntu/linux-gcp-6.17<6.17.0-1008.8~24.04.1
6.17.0-1008.8~24.04.1
ubuntu/linux-gke<6.8.0-1041.46
6.8.0-1041.46
ubuntu/linux-gkeop<6.8.0-1028.31
6.8.0-1028.31
ubuntu/linux-hwe-6.11*
ubuntu/linux-ibm<6.8.0-1042.42
6.8.0-1042.42
ubuntu/linux-lowlatency<6.8.0-90.91.1
6.8.0-90.91.1
ubuntu/linux-lowlatency-hwe-6.11*
ubuntu/linux-nvidia<6.8.0-1044.47
6.8.0-1044.47
ubuntu/linux-nvidia-6.11*
ubuntu/linux-nvidia-6.17<6.17.0-1008.8
6.17.0-1008.8
ubuntu/linux-nvidia-lowlatency<6.8.0-1044.47.1
6.8.0-1044.47.1
ubuntu/linux-nvidia-tegra<6.8.0-1020.20
6.8.0-1020.20
ubuntu/linux-oem-6.11*
ubuntu/linux-oem-6.14<6.14.0-1017.17
6.14.0-1017.17
ubuntu/linux-oem-6.17<6.17.0-1008.8
6.17.0-1008.8
ubuntu/linux-oem-6.8*
ubuntu/linux-oracle<6.8.0-1041.42
6.8.0-1041.42
ubuntu/linux-oracle-6.14*
ubuntu/linux-oracle-6.17<6.17.0-1007.7~24.04.1
6.17.0-1007.7~24.04.1
ubuntu/linux-raspi<6.8.0-1044.48
6.8.0-1044.48
ubuntu/linux-raspi-realtime*
ubuntu/linux-realtime*
ubuntu/linux-riscv*
ubuntu/linux-riscv-6.14<6.14.0-37.37.1~24.04.1
6.14.0-37.37.1~24.04.1
ubuntu/linux-xilinx<6.8.0-1021.22
6.8.0-1021.22
ubuntu/linux-bluefield<6.8.0-1014.18
6.8.0-1014.18
ubuntu/linux-raspi-realtime<6.8.0-2035.36
6.8.0-2035.36
ubuntu/linux-realtime<6.8.1-1039.40
6.8.1-1039.40
ubuntu/linux-realtime-6.14<6.14.0-1017.17~24.04.1
6.14.0-1017.17~24.04.1
ubuntu/linux-aws-fips<6.8.0-1044.46+fips1
6.8.0-1044.46+fips1
ubuntu/linux-azure-fips<6.8.0-1044.50+fips1
6.8.0-1044.50+fips1
ubuntu/linux-fips<6.8.0-90.91+fips1
6.8.0-90.91+fips1
ubuntu/linux-gcp-fips<6.8.0-1045.48+fips1
6.8.0-1045.48+fips1
ubuntu/linux<6.17.0-8.8
6.17.0-8.8
ubuntu/linux-aws<6.17.0-1005.5
6.17.0-1005.5
ubuntu/linux-azure<6.17.0-1006.6
6.17.0-1006.6
ubuntu/linux-azure-fde*
ubuntu/linux-gcp<6.17.0-1005.5
6.17.0-1005.5
ubuntu/linux-oracle<6.17.0-1005.5
6.17.0-1005.5
ubuntu/linux-raspi<6.17.0-1006.6
6.17.0-1006.6
ubuntu/linux-realtime<6.17.0-1004.5
6.17.0-1004.5
ubuntu/linux-riscv<6.17.0-8.8.1
6.17.0-8.8.1
debian/linux
6.1.176-16.1.190-16.12.107-16.12.115-27.2.15-17.3.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1150.156
  2. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1195.210~14.04.1
  3. Upgrade

    Upgrade ubuntu/linux-lts-xenial to a version that resolves this vulnerability.

    Fixed in 4.4.0-276.310~14.04.1
  4. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.4.0-276.310
  5. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.4.0-1188.203
  6. Upgrade

    Upgrade ubuntu/linux-aws-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-1187.200~16.04.1
  7. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 4.15.0-1195.210~16.04.1
  8. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 4.15.0-1180.197~16.04.1
  9. Upgrade

    Upgrade ubuntu/linux-hwe to a version that resolves this vulnerability.

    Fixed in 4.15.0-245.257~16.04.1
  10. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.4.0-1151.162
  11. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1149.160~16.04.1
  12. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.4.0-1120.127
  13. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 4.15.0-245.257
  14. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 4.15.0-1187.200
  15. Upgrade

    Upgrade ubuntu/linux-aws-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1153.163~18.04.1
  16. Upgrade

    Upgrade ubuntu/linux-azure-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1195.210
  17. Upgrade

    Upgrade ubuntu/linux-azure-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1156.163~18.04.1
  18. Upgrade

    Upgrade ubuntu/linux-gcp-4.15 to a version that resolves this vulnerability.

    Fixed in 4.15.0-1180.197
  19. Upgrade

    Upgrade ubuntu/linux-gcp-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1156.165~18.04.1
  20. Upgrade

    Upgrade ubuntu/linux-hwe-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-224.244~18.04.1
  21. Upgrade

    Upgrade ubuntu/linux-ibm-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1099.104~18.04.1
  22. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 4.15.0-1169.174
  23. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 4.15.0-1149.160
  24. Upgrade

    Upgrade ubuntu/linux-oracle-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1151.161~18.04.1
  25. Upgrade

    Upgrade ubuntu/linux-raspi-5.4 to a version that resolves this vulnerability.

    Fixed in 5.4.0-1136.149~18.04.1
  26. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2125.131
  27. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2104.110
  28. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-1142.154
  29. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 4.15.0-2088.94
  30. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.4.0-224.244
  31. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.4.0-1153.163
  32. Upgrade

    Upgrade ubuntu/linux-aws-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1098.105~20.04.1
  33. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.4.0-1156.163
  34. Upgrade

    Upgrade ubuntu/linux-azure-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1102.111~20.04.1
  35. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.4.0-1112.119
  36. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1156.165
  37. Upgrade

    Upgrade ubuntu/linux-gcp-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1098.107~20.04.1
  38. Upgrade

    Upgrade ubuntu/linux-hwe-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-164.174~20.04.1
  39. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1099.104
  40. Upgrade

    Upgrade ubuntu/linux-ibm-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1092.95~20.04.1
  41. Upgrade

    Upgrade ubuntu/linux-intel-iotg-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1093.99~20.04.1
  42. Upgrade

    Upgrade ubuntu/linux-iot to a version that resolves this vulnerability.

    Fixed in 5.4.0-1057.60
  43. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.4.0-1140.149
  44. Upgrade

    Upgrade ubuntu/linux-lowlatency-hwe-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-164.174~20.04.1
  45. Upgrade

    Upgrade ubuntu/linux-nvidia-tegra-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1050.50~20.04.1
  46. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.4.0-1151.161
  47. Upgrade

    Upgrade ubuntu/linux-oracle-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1095.101~20.04.1
  48. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.4.0-1136.149
  49. Upgrade

    Upgrade ubuntu/linux-riscv-5.15 to a version that resolves this vulnerability.

    Fixed in 5.15.0-1093.97~20.04.2
  50. Upgrade

    Upgrade ubuntu/linux-xilinx-zynqmp to a version that resolves this vulnerability.

    Fixed in 5.4.0-1071.75
  51. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1153.163+fips1
  52. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1157.164+fips1
  53. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1127.137
  54. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.4.0-1156.165+fips1
  55. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 5.15.0-164.174
  56. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 5.15.0-1098.105
  57. Upgrade

    Upgrade ubuntu/linux-aws-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.0-1044.46~22.04.1
  58. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 5.15.0-1102.111
  59. Upgrade

    Upgrade ubuntu/linux-azure-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.0-1044.50~22.04.1
  60. Upgrade

    Upgrade ubuntu/linux-azure-fde to a version that resolves this vulnerability.

    Fixed in 5.15.0-1102.111.1
  61. Upgrade

    Upgrade ubuntu/linux-azure-fde-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.0-1046.53~22.04.1
  62. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 5.15.0-1098.107
  63. Upgrade

    Upgrade ubuntu/linux-gcp-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.0-1045.48~22.04.1
  64. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 5.15.0-1094.100
  65. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 5.15.0-1081.89
  66. Upgrade

    Upgrade ubuntu/linux-hwe-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.0-90.91~22.04.1
  67. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 5.15.0-1092.95
  68. Upgrade

    Upgrade ubuntu/linux-ibm-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.0-1042.42~22.04.1
  69. Upgrade

    Upgrade ubuntu/linux-intel-iotg to a version that resolves this vulnerability.

    Fixed in 5.15.0-1093.99
  70. Upgrade

    Upgrade ubuntu/linux-kvm to a version that resolves this vulnerability.

    Fixed in 5.15.0-1090.95
  71. Upgrade

    Upgrade ubuntu/linux-lowlatency to a version that resolves this vulnerability.

    Fixed in 5.15.0-164.174
  72. Upgrade

    Upgrade ubuntu/linux-lowlatency-hwe-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.0-90.91.1~22.04.1
  73. Upgrade

    Upgrade ubuntu/linux-nvidia to a version that resolves this vulnerability.

    Fixed in 5.15.0-1093.94
  74. Upgrade

    Upgrade ubuntu/linux-nvidia-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.0-1044.47~22.04.1
  75. Upgrade

    Upgrade ubuntu/linux-nvidia-tegra to a version that resolves this vulnerability.

    Fixed in 5.15.0-1050.50
  76. Upgrade

    Upgrade ubuntu/linux-nvidia-tegra-igx to a version that resolves this vulnerability.

    Fixed in 5.15.0-1039.39
  77. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 5.15.0-1095.101
  78. Upgrade

    Upgrade ubuntu/linux-oracle-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.0-1041.42~22.04.1
  79. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 5.15.0-1092.95
  80. Upgrade

    Upgrade ubuntu/linux-riscv-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.0-90.91~22.04.1
  81. Upgrade

    Upgrade ubuntu/linux-xilinx-zynqmp to a version that resolves this vulnerability.

    Fixed in 5.15.0-1062.66
  82. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 5.15.0-1082.84
  83. Upgrade

    Upgrade ubuntu/linux-intel-iot-realtime to a version that resolves this vulnerability.

    Fixed in 5.15.0-1090.92
  84. Upgrade

    Upgrade ubuntu/linux-realtime to a version that resolves this vulnerability.

    Fixed in 5.15.0-1097.106
  85. Upgrade

    Upgrade ubuntu/linux-realtime-6.8 to a version that resolves this vulnerability.

    Fixed in 6.8.1-1039.40~22.04.1
  86. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 5.15.0-1098.105+fips1
  87. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 5.15.0-1102.111+fips1
  88. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 5.15.0-164.174+fips1
  89. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 5.15.0-1098.107+fips1
  90. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 6.8.0-90.91
  91. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 6.8.0-1044.46
  92. Upgrade

    Upgrade ubuntu/linux-aws-6.14 to a version that resolves this vulnerability.

    Fixed in 6.14.0-1018.18~24.04.1
  93. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 6.8.0-1044.50
  94. Upgrade

    Upgrade ubuntu/linux-azure-6.14 to a version that resolves this vulnerability.

    Fixed in 6.14.0-1017.17~24.04.1
  95. Upgrade

    Upgrade ubuntu/linux-azure-fde to a version that resolves this vulnerability.

    Fixed in 6.8.0-1046.53
  96. Upgrade

    Upgrade ubuntu/linux-azure-nvidia to a version that resolves this vulnerability.

    Fixed in 6.8.0-1029.32
  97. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 6.8.0-1045.48
  98. Upgrade

    Upgrade ubuntu/linux-gcp-6.17 to a version that resolves this vulnerability.

    Fixed in 6.17.0-1008.8~24.04.1
  99. Upgrade

    Upgrade ubuntu/linux-gke to a version that resolves this vulnerability.

    Fixed in 6.8.0-1041.46
  100. Upgrade

    Upgrade ubuntu/linux-gkeop to a version that resolves this vulnerability.

    Fixed in 6.8.0-1028.31
  101. Upgrade

    Upgrade ubuntu/linux-ibm to a version that resolves this vulnerability.

    Fixed in 6.8.0-1042.42
  102. Upgrade

    Upgrade ubuntu/linux-lowlatency to a version that resolves this vulnerability.

    Fixed in 6.8.0-90.91.1
  103. Upgrade

    Upgrade ubuntu/linux-nvidia to a version that resolves this vulnerability.

    Fixed in 6.8.0-1044.47
  104. Upgrade

    Upgrade ubuntu/linux-nvidia-6.17 to a version that resolves this vulnerability.

    Fixed in 6.17.0-1008.8
  105. Upgrade

    Upgrade ubuntu/linux-nvidia-lowlatency to a version that resolves this vulnerability.

    Fixed in 6.8.0-1044.47.1
  106. Upgrade

    Upgrade ubuntu/linux-nvidia-tegra to a version that resolves this vulnerability.

    Fixed in 6.8.0-1020.20
  107. Upgrade

    Upgrade ubuntu/linux-oem-6.14 to a version that resolves this vulnerability.

    Fixed in 6.14.0-1017.17
  108. Upgrade

    Upgrade ubuntu/linux-oem-6.17 to a version that resolves this vulnerability.

    Fixed in 6.17.0-1008.8
  109. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 6.8.0-1041.42
  110. Upgrade

    Upgrade ubuntu/linux-oracle-6.17 to a version that resolves this vulnerability.

    Fixed in 6.17.0-1007.7~24.04.1
  111. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 6.8.0-1044.48
  112. Upgrade

    Upgrade ubuntu/linux-riscv-6.14 to a version that resolves this vulnerability.

    Fixed in 6.14.0-37.37.1~24.04.1
  113. Upgrade

    Upgrade ubuntu/linux-xilinx to a version that resolves this vulnerability.

    Fixed in 6.8.0-1021.22
  114. Upgrade

    Upgrade ubuntu/linux-bluefield to a version that resolves this vulnerability.

    Fixed in 6.8.0-1014.18
  115. Upgrade

    Upgrade ubuntu/linux-raspi-realtime to a version that resolves this vulnerability.

    Fixed in 6.8.0-2035.36
  116. Upgrade

    Upgrade ubuntu/linux-realtime to a version that resolves this vulnerability.

    Fixed in 6.8.1-1039.40
  117. Upgrade

    Upgrade ubuntu/linux-realtime-6.14 to a version that resolves this vulnerability.

    Fixed in 6.14.0-1017.17~24.04.1
  118. Upgrade

    Upgrade ubuntu/linux-aws-fips to a version that resolves this vulnerability.

    Fixed in 6.8.0-1044.46+fips1
  119. Upgrade

    Upgrade ubuntu/linux-azure-fips to a version that resolves this vulnerability.

    Fixed in 6.8.0-1044.50+fips1
  120. Upgrade

    Upgrade ubuntu/linux-fips to a version that resolves this vulnerability.

    Fixed in 6.8.0-90.91+fips1
  121. Upgrade

    Upgrade ubuntu/linux-gcp-fips to a version that resolves this vulnerability.

    Fixed in 6.8.0-1045.48+fips1
  122. Upgrade

    Upgrade ubuntu/linux to a version that resolves this vulnerability.

    Fixed in 6.17.0-8.8
  123. Upgrade

    Upgrade ubuntu/linux-aws to a version that resolves this vulnerability.

    Fixed in 6.17.0-1005.5
  124. Upgrade

    Upgrade ubuntu/linux-azure to a version that resolves this vulnerability.

    Fixed in 6.17.0-1006.6
  125. Upgrade

    Upgrade ubuntu/linux-gcp to a version that resolves this vulnerability.

    Fixed in 6.17.0-1005.5
  126. Upgrade

    Upgrade ubuntu/linux-oracle to a version that resolves this vulnerability.

    Fixed in 6.17.0-1005.5
  127. Upgrade

    Upgrade ubuntu/linux-raspi to a version that resolves this vulnerability.

    Fixed in 6.17.0-1006.6
  128. Upgrade

    Upgrade ubuntu/linux-realtime to a version that resolves this vulnerability.

    Fixed in 6.17.0-1004.5
  129. Upgrade

    Upgrade ubuntu/linux-riscv to a version that resolves this vulnerability.

    Fixed in 6.17.0-8.8.1
  130. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.115-2Fixed in 7.2.15-1Fixed in 7.3.3-1
  131. Configuration

    Introduce the global exiting_module flag and set it to true in ip_vs_ftp_exit() before unregistering the pernet subsystem; in __ip_vs_ftp_exit(), skip unregistering ip_vs_ftp during netns cleanup when exiting_module is false and defer the unregister to __ip_vs_cleanup_batch() after connections are flushed.

    Linux kernel IPVS FTP helper exiting_module = true during ip_vs_ftp_exit()

Event History

Oct 24, 2025
CVE Published
via MITRE·11:44 AM
Data Sourced
via MITRE·11:44 AM
DescriptionSeverity
Data Sourced
via OSV·12:15 PM
DescriptionSeverityAffected Software
Event
via OSV·12:15 PM
Data Sourced
via NVD·12:15 PM
DescriptionSeverity
Oct 25, 2025
Data Sourced
via Microsoft·02:01 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-40018?

CVE-2025-40018 is considered a high severity vulnerability due to its potential for a use-after-free error in the Linux kernel.

2

How do I fix CVE-2025-40018?

To mitigate CVE-2025-40018, it is recommended to update the Linux kernel to the latest patched version.

3

Which systems are affected by CVE-2025-40018?

CVE-2025-40018 affects systems running vulnerable versions of the Linux kernel that utilize the ip_vs_ftp module.

4

What does CVE-2025-40018 exploit?

CVE-2025-40018 exploits a timing issue during network namespace cleanup that can lead to a use-after-free condition.

5

When was CVE-2025-40018 reported?

CVE-2025-40018 was reported as a vulnerability in the Linux kernel affecting ip_vs_ftp functionality.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203