VDB

CVE-2025-38085

CVE-2025-38085 PUBLISHED CVSS 7.8 HIGH

mm/hugetlb: fix huge_pmd_unshare() vs GUP-fast race

Reported by linux · Published June 28, 2025

In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb: fix huge_pmd_unshare() vs GUP-fast race huge_pmd_unshare() drops a reference on a page table that may have previously been shared across processes, potentially turning it into a normal page table used in another process in which unrelated VMAs can afterwards be installed. If this happens in the middle of a concurrent gup_fast(), gup_fast() could end up walking the page tables of another process. While I don't see any way in which that immediately leads to kernel memory corruption, it is really weird and unexpected. Fix it with an explicit broadcast IPI through tlb_remove_table_sync_one(), just like we do in khugepaged when removing page tables for a THP collapse.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-modules-extraAmazon Linux1:6.1.144-170.251.amzn2023
kernel-libbpfAmazon Linux6.12.35-55.103.amzn2023
kernel-livepatch-6.1.144-170.251Amazon Linux1:1.0-0.amzn2023
kernel6.12-modules-extraAmazon Linux6.12.35-55.103.amzn2023
python3-perfAmazon Linux1:6.1.144-170.251.amzn2023
perfAmazon Linux1:6.1.144-170.251.amzn2023
bpftoolAmazon Linux6.12.35-55.103.amzn2023
linux_kernellinux6.15.4, 6.12.35, 6.6.95, 6.1.142, 5.15.186, 5.10.239
LinuxLinuxfe684290418ef9ef76630072086ee530b92f02b8, b7754d3aa7bf9f62218d096c0c8f6c13698fac8b, a6bfeb97941a9187833b526bc6cc4ff5706d0ce9, 952596b08c74e8fe9e2883d1dc8a8f54a37384ec, 1013af4f585fccc4d3e5c5824d174de2257f7d6d, 034a52b5ef57c9c8225d94e9067f3390bb33922f

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa
LinuxLinux2.6.20, 0, 5.10.239
amazon:2023kernel-modules-extra0
amazon:2023kernel-libbpf0
amazon:2023kernel-livepatch-6.1.144-170.2510
amazon:2023kernel6.12-modules-extra0
amazon:2023python3-perf0
amazon:2023perf0
amazon:2023bpftool0
LinuxLinux39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa
amazon:2023kernel-libbpf-static0
linuxlinux_kernel2.6.20, 2.6.20, 2.6.20
amazon:2023kernel-livepatch-6.12.35-55.1030
amazon:2023kernel-tools-devel0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel6.120
amazon:2023kernel0
amazon:2023kernel-devel0
amazon:2023kernel-headers0
amazon:2023kernel-tools0

…and 3 more

Timeline

  • Jun 28, 2025 EPSS Score (30 in total, the first dated here)
  • Jun 28, 2025 CVE Published
  • Oct 12, 2025 PoC Published (7 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (203 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (216 in total, the first dated here)
  • Jun 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38085
vulnetix vdb fixes CVE-2025-38085

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38085/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›