CVE-2025-37958: mm/huge_memory: fix dereferencing invalid pmd migration entry

Published May 20, 2025
·
Updated

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

mm/hugememory: fix dereferencing invalid pmd migration entry

When migrating a THP, concurrent access to the PMD migration entry during a deferred split scan can lead to an invalid address access, as illustrated below. To prevent this invalid access, it is necessary to check the PMD migration entry and return early. In this context, there is no need to use pmdtoswpentry and pfnswapentrytopage to verify the equality of the target folio. Since the PMD migration entry is locked, it cannot be served as the target.

Mailing list discussion and explanation from Hugh Dickins: "An anonvma lookup points to a location which may contain the folio of interest, but might instead contain another folio: and weeding out those other folios is precisely what the "folio != pmdfolio((pmd)" check (and the "risk of replacing the wrong folio" comment a few lines above it) is for."

BUG: unable to handle page fault for address: ffffea60001db008 CPU: 0 UID: 0 PID: 2199114 Comm: tee Not tainted 6.14.0+ #4 NONE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:splithugepmdlocked+0x3b5/0x2b60 Call Trace: <TASK> trytomigrateone+0x28c/0x3730 rmapwalkanon+0x4f6/0x770 unmapfolio+0x196/0x1f0 splithugepagetolisttoorder+0x9f6/0x1560 deferredsplitscan+0xac5/0x12a0 shrinkerdebugfsscanwrite+0x376/0x470 fullproxywrite+0x15c/0x220 vfswrite+0x2fc/0xcb0 ksyswrite+0x146/0x250 dosyscall64+0x6a/0x120 entrySYSCALL64afterhwframe+0x76/0x7e

The bug is found by syzkaller on an internal kernel, then confirmed on upstream.

Affected Software

240 affected componentsFixes available
Linux Kernel
Microsoft azl3 kernel 6.6.96.1-1
Microsoft azl3 kernel 6.6.92.2-2
Linux Linux kernel>=4.14<5.4.295
Linux Linux kernel>=5.5<5.10.239
Linux Linux kernel>=5.11<5.15.186
Linux Linux kernel>=5.16<6.1.142
Linux Linux kernel>=6.2<6.6.95
Linux Linux kernel>=6.7<6.12.29
Linux Linux kernel>=6.13<6.14.7
Linux Linux kernel=6.15-rc1
Linux Linux kernel=6.15-rc2
Linux Linux kernel=6.15-rc3
Linux Linux kernel=6.15-rc4
Linux Linux kernel=6.15-rc5
Debian Debian Linux=11.0
debian/linux<6.1.147-1
6.1.147-1
debian/linux<6.12.29-1
6.12.29-1
debian/linux<6.12.29-1
6.12.29-1
linux/kernel>=4.14.0<5.4.295
5.4.295
linux/kernel>=5.5.0<5.10.239
5.10.239
linux/kernel>=5.11.0<5.15.186
5.15.186
linux/kernel>=5.16.0<6.1.142
6.1.142
linux/kernel>=6.2.0<6.6.95
6.6.95
linux/kernel>=6.7.0<6.12.29
6.12.29
linux/kernel>=6.13.0<6.14.7
6.14.7
ubuntu/linux-azure<4.15.0-1195.210~14.04.1
4.15.0-1195.210~14.04.1
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-oracle<4.15.0-1149.160~16.04.1
4.15.0-1149.160~16.04.1
ubuntu/linux-hwe-edge*
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-1092.99~20.04.1
5.15.0-1092.99~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-1096.105~20.04.1
5.15.0-1096.105~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-1092.101~20.04.1
5.15.0-1092.101~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-156.166~20.04.1
5.15.0-156.166~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-1086.89~20.04.1
5.15.0-1086.89~20.04.1
ubuntu/linux-intel-5.13*
ubuntu/linux-intel-iotg-5.15<5.15.0-1087.93~20.04.1
5.15.0-1087.93~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-156.166~20.04.1
5.15.0-156.166~20.04.1
ubuntu/linux-nvidia-tegra-5.15<5.15.0-1045.45~20.04.1
5.15.0-1045.45~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-1090.96~20.04.1
5.15.0-1090.96~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-1087.91~20.04.1
5.15.0-1087.91~20.04.1
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-156.166
5.15.0-156.166
ubuntu/linux-allwinner-5.19*
ubuntu/linux-aws<5.15.0-1092.99
5.15.0-1092.99
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-1096.105
5.15.0-1096.105
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-1096.105.1
5.15.0-1096.105.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-1092.101
5.15.0-1092.101
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-1089.95
5.15.0-1089.95
ubuntu/linux-gkeop<5.15.0-1075.83
5.15.0-1075.83
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-1086.89
5.15.0-1086.89
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-1087.93
5.15.0-1087.93
ubuntu/linux-kvm<5.15.0-1088.93
5.15.0-1088.93
ubuntu/linux-lowlatency<5.15.0-156.166
5.15.0-156.166
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-1087.88
5.15.0-1087.88
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-1045.45
5.15.0-1045.45
ubuntu/linux-nvidia-tegra-igx<5.15.0-1034.34
5.15.0-1034.34
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-1090.96
5.15.0-1090.96
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-1086.89
5.15.0-1086.89
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-1056.60
5.15.0-1056.60
ubuntu/linux-bluefield<5.15.0-1076.78
5.15.0-1076.78
ubuntu/linux-intel-iot-realtime<5.15.0-1085.87
5.15.0-1085.87
ubuntu/linux-realtime<5.15.0-1092.101
5.15.0-1092.101
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-1092.99+fips1
5.15.0-1092.99+fips1
ubuntu/linux-azure-fips<5.15.0-1096.105+fips1
5.15.0-1096.105+fips1
ubuntu/linux-fips<5.15.0-156.166+fips1
5.15.0-156.166+fips1
ubuntu/linux-gcp-fips<5.15.0-1092.101+fips1
5.15.0-1092.101+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-1011.11~24.04.1
6.14.0-1011.11~24.04.1
ubuntu/linux-azure<6.8.0-1044.50
6.8.0-1044.50
ubuntu/linux-azure-6.11*
ubuntu/linux-azure-fde<6.8.0-1046.53
6.8.0-1046.53
ubuntu/linux-azure-nvidia<6.8.0-1029.32
6.8.0-1029.32
ubuntu/linux-gcp<6.8.0-1045.48
6.8.0-1045.48
ubuntu/linux-gcp-6.11*
ubuntu/linux-gcp-6.14<6.14.0-1014.15~24.04.1
6.14.0-1014.15~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-intel*
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-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-1010.10
6.14.0-1010.10
ubuntu/linux-oem-6.8*
ubuntu/linux-oracle<6.8.0-1041.42
6.8.0-1041.42
ubuntu/linux-oracle-6.14<6.14.0-1011.11~24.04.1
6.14.0-1011.11~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-28.28.1~24.04.1
6.14.0-28.28.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-1010.10~24.04.1
6.14.0-1010.10~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-azure-fde*
debian/linux
6.1.176-16.1.192-26.12.107-16.12.117-17.3.4-17.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 6.1.147-1
  2. Upgrade

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

    Fixed in 6.12.29-1
  3. Upgrade

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

    Fixed in 5.4.295
  4. Upgrade

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

    Fixed in 5.10.239
  5. Upgrade

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

    Fixed in 5.15.186
  6. Upgrade

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

    Fixed in 6.1.142
  7. Upgrade

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

    Fixed in 6.6.95
  8. Upgrade

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

    Fixed in 6.12.29
  9. Upgrade

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

    Fixed in 6.14.7
  10. Upgrade

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

    Fixed in 4.15.0-1195.210~14.04.1
  11. Upgrade

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

    Fixed in 4.15.0-1187.200~16.04.1
  12. Upgrade

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

    Fixed in 4.15.0-1195.210~16.04.1
  13. Upgrade

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

    Fixed in 4.15.0-1180.197~16.04.1
  14. Upgrade

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

    Fixed in 4.15.0-245.257~16.04.1
  15. Upgrade

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

    Fixed in 4.15.0-1149.160~16.04.1
  16. Upgrade

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

    Fixed in 4.15.0-245.257
  17. Upgrade

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

    Fixed in 4.15.0-1187.200
  18. Upgrade

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

    Fixed in 5.4.0-1153.163~18.04.1
  19. Upgrade

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

    Fixed in 4.15.0-1195.210
  20. Upgrade

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

    Fixed in 5.4.0-1156.163~18.04.1
  21. Upgrade

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

    Fixed in 4.15.0-1180.197
  22. Upgrade

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

    Fixed in 5.4.0-1156.165~18.04.1
  23. Upgrade

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

    Fixed in 5.4.0-224.244~18.04.1
  24. Upgrade

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

    Fixed in 5.4.0-1099.104~18.04.1
  25. Upgrade

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

    Fixed in 4.15.0-1169.174
  26. Upgrade

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

    Fixed in 4.15.0-1149.160
  27. Upgrade

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

    Fixed in 5.4.0-1151.161~18.04.1
  28. Upgrade

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

    Fixed in 5.4.0-1136.149~18.04.1
  29. Upgrade

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

    Fixed in 4.15.0-2125.131
  30. Upgrade

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

    Fixed in 4.15.0-2104.110
  31. Upgrade

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

    Fixed in 4.15.0-1142.154
  32. Upgrade

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

    Fixed in 4.15.0-2088.94
  33. Upgrade

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

    Fixed in 5.4.0-224.244
  34. Upgrade

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

    Fixed in 5.4.0-1153.163
  35. Upgrade

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

    Fixed in 5.15.0-1092.99~20.04.1
  36. Upgrade

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

    Fixed in 5.4.0-1156.163
  37. Upgrade

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

    Fixed in 5.15.0-1096.105~20.04.1
  38. Upgrade

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

    Fixed in 5.4.0-1112.119
  39. Upgrade

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

    Fixed in 5.4.0-1156.165
  40. Upgrade

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

    Fixed in 5.15.0-1092.101~20.04.1
  41. Upgrade

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

    Fixed in 5.15.0-156.166~20.04.1
  42. Upgrade

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

    Fixed in 5.4.0-1099.104
  43. Upgrade

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

    Fixed in 5.15.0-1086.89~20.04.1
  44. Upgrade

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

    Fixed in 5.15.0-1087.93~20.04.1
  45. Upgrade

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

    Fixed in 5.4.0-1057.60
  46. Upgrade

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

    Fixed in 5.4.0-1140.149
  47. Upgrade

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

    Fixed in 5.15.0-156.166~20.04.1
  48. Upgrade

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

    Fixed in 5.15.0-1045.45~20.04.1
  49. Upgrade

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

    Fixed in 5.4.0-1151.161
  50. Upgrade

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

    Fixed in 5.15.0-1090.96~20.04.1
  51. Upgrade

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

    Fixed in 5.4.0-1136.149
  52. Upgrade

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

    Fixed in 5.15.0-1087.91~20.04.1
  53. Upgrade

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

    Fixed in 5.4.0-1071.75
  54. Upgrade

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

    Fixed in 5.4.0-1153.163+fips1
  55. Upgrade

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

    Fixed in 5.4.0-1157.164+fips1
  56. Upgrade

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

    Fixed in 5.4.0-1127.137
  57. Upgrade

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

    Fixed in 5.4.0-1156.165+fips1
  58. Upgrade

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

    Fixed in 5.15.0-156.166
  59. Upgrade

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

    Fixed in 5.15.0-1092.99
  60. Upgrade

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

    Fixed in 6.8.0-1044.46~22.04.1
  61. Upgrade

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

    Fixed in 5.15.0-1096.105
  62. Upgrade

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

    Fixed in 6.8.0-1044.50~22.04.1
  63. Upgrade

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

    Fixed in 5.15.0-1096.105.1
  64. 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
  65. Upgrade

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

    Fixed in 5.15.0-1092.101
  66. Upgrade

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

    Fixed in 6.8.0-1045.48~22.04.1
  67. Upgrade

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

    Fixed in 5.15.0-1089.95
  68. Upgrade

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

    Fixed in 5.15.0-1075.83
  69. Upgrade

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

    Fixed in 6.8.0-90.91~22.04.1
  70. Upgrade

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

    Fixed in 5.15.0-1086.89
  71. Upgrade

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

    Fixed in 6.8.0-1042.42~22.04.1
  72. Upgrade

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

    Fixed in 5.15.0-1087.93
  73. Upgrade

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

    Fixed in 5.15.0-1088.93
  74. Upgrade

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

    Fixed in 5.15.0-156.166
  75. 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
  76. Upgrade

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

    Fixed in 5.15.0-1087.88
  77. Upgrade

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

    Fixed in 6.8.0-1044.47~22.04.1
  78. Upgrade

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

    Fixed in 5.15.0-1045.45
  79. Upgrade

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

    Fixed in 5.15.0-1034.34
  80. Upgrade

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

    Fixed in 5.15.0-1090.96
  81. Upgrade

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

    Fixed in 6.8.0-1041.42~22.04.1
  82. Upgrade

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

    Fixed in 5.15.0-1086.89
  83. Upgrade

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

    Fixed in 6.8.0-90.91~22.04.1
  84. Upgrade

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

    Fixed in 5.15.0-1056.60
  85. Upgrade

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

    Fixed in 5.15.0-1076.78
  86. Upgrade

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

    Fixed in 5.15.0-1085.87
  87. Upgrade

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

    Fixed in 5.15.0-1092.101
  88. Upgrade

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

    Fixed in 6.8.1-1039.40~22.04.1
  89. Upgrade

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

    Fixed in 5.15.0-1092.99+fips1
  90. Upgrade

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

    Fixed in 5.15.0-1096.105+fips1
  91. Upgrade

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

    Fixed in 5.15.0-156.166+fips1
  92. Upgrade

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

    Fixed in 5.15.0-1092.101+fips1
  93. Upgrade

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

    Fixed in 6.8.0-90.91
  94. Upgrade

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

    Fixed in 6.8.0-1044.46
  95. Upgrade

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

    Fixed in 6.14.0-1011.11~24.04.1
  96. Upgrade

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

    Fixed in 6.8.0-1044.50
  97. Upgrade

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

    Fixed in 6.8.0-1046.53
  98. Upgrade

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

    Fixed in 6.8.0-1029.32
  99. Upgrade

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

    Fixed in 6.8.0-1045.48
  100. Upgrade

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

    Fixed in 6.14.0-1014.15~24.04.1
  101. Upgrade

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

    Fixed in 6.8.0-1041.46
  102. Upgrade

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

    Fixed in 6.8.0-1028.31
  103. Upgrade

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

    Fixed in 6.8.0-1042.42
  104. Upgrade

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

    Fixed in 6.8.0-90.91.1
  105. Upgrade

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

    Fixed in 6.8.0-1044.47
  106. Upgrade

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

    Fixed in 6.8.0-1044.47.1
  107. Upgrade

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

    Fixed in 6.8.0-1020.20
  108. Upgrade

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

    Fixed in 6.14.0-1010.10
  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.14 to a version that resolves this vulnerability.

    Fixed in 6.14.0-1011.11~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-28.28.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-1010.10~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 debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1

Event History

May 20, 2025
CVE Published
via MITRE·04:01 PM
Data Sourced
via MITRE·04:01 PM
Description
Data Sourced
via OSV·04:01 PM
DescriptionAffected Software
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via Red Hat·05:01 PM
DescriptionSeverityAffected Software
Aug 6, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Nov 12, 2026
Data Sourced
via OSV·05:24 PM
Severity

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-37958?

CVE-2025-37958 has been classified with a high severity due to its potential for causing invalid memory access.

2

How do I fix CVE-2025-37958?

You can fix CVE-2025-37958 by upgrading to a patched version of the Linux kernel that addresses this vulnerability.

3

What causes the CVE-2025-37958 vulnerability?

CVE-2025-37958 is caused by concurrent access to the PMD migration entry during a deferred split scan when migrating a Transparent Huge Page (THP).

4

Which versions of the Linux kernel are affected by CVE-2025-37958?

CVE-2025-37958 affects Linux kernel versions starting from 6.14.0.

5

Is CVE-2025-37958 specific to certain Linux distributions?

CVE-2025-37958 impacts any Linux distribution using the affected versions of the Linux kernel.

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