CVE-2025-38085
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.12.35-55.103.amzn2023 |
| kernel-livepatch-6.1.144-170.251 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 6.12.35-55.103.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| perf | Amazon Linux | 1:6.1.144-170.251.amzn2023 |
| bpftool | Amazon Linux | 6.12.35-55.103.amzn2023 |
| linux_kernel | linux | 6.15.4, 6.12.35, 6.6.95, 6.1.142, 5.15.186, 5.10.239 |
| Linux | Linux | fe684290418ef9ef76630072086ee530b92f02b8, b7754d3aa7bf9f62218d096c0c8f6c13698fac8b, a6bfeb97941a9187833b526bc6cc4ff5706d0ce9, 952596b08c74e8fe9e2883d1dc8a8f54a37384ec, 1013af4f585fccc4d3e5c5824d174de2257f7d6d, 034a52b5ef57c9c8225d94e9067f3390bb33922f |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa |
| Linux | Linux | 2.6.20, 0, 5.10.239 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-livepatch-6.1.144-170.251 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | bpftool | 0 |
| Linux | Linux | 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa |
| amazon:2023 | kernel-libbpf-static | 0 |
| linux | linux_kernel | 2.6.20, 2.6.20, 2.6.20 |
| amazon:2023 | kernel-livepatch-6.12.35-55.103 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-tools | 0 |
…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