Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-38085

published high CVSS 3.1 · 7.8

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

Published
28 Jun 2025, 07:44:26 UTC
Updated
05 Aug 2026, 11:59:23 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < 952596b08c74e8fe9e2883d1dc8a8f54a37384ec · 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < a3d864c901a300c295692d129159fc3001a56185 · 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < b7754d3aa7bf9f62218d096c0c8f6c13698fac8b · 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < fe684290418ef9ef76630072086ee530b92f02b8 · 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < 034a52b5ef57c9c8225d94e9067f3390bb33922f · 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < a6bfeb97941a9187833b526bc6cc4ff5706d0ce9 · 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < 1013af4f585fccc4d3e5c5824d174de2257f7d6d · Other versions: unaffected Affected Not stated Linux
Linux — Linux2.6.20 (affected) · 0 to < 2.6.20 (unaffected · semver) · 5.10.239 through 5.10.* (unaffected · semver) · 5.15.186 through 5.15.* (unaffected · semver) · 6.1.142 through 6.1.* (unaffected · semver) · 6.6.95 through 6.6.* (unaffected · semver) · 6.12.35 through 6.12.* (unaffected · semver) · 6.15.4 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.10-2025-098 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2025-082 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1080 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
Show 99 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2023 Release evaluationALAS2023-2025-1111 Fixed Not stated Amazon Linux assessment
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.69.1.rt7.410.el8_10 ALSA-2025:13590
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.69.1.rt7.410.el8_10 ALSA-2025:13590
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.69.1.rt7.410.el8_10 ALSA-2025:13590
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.69.1.rt7.410.el8_10 ALSA-2025:13590
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.69.1.rt7.410.el8_10 ALSA-2025:13590
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.69.1.rt7.410.el8_10 ALSA-2025:13590
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.69.1.rt7.410.el8_10 ALSA-2025:13590
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.69.1.rt7.410.el8_10 ALSA-2025:13590
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.69.1.rt7.410.el8_10 ALSA-2025:13590
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.69.1.rt7.410.el8_10 ALSA-2025:13590
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 perf Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.69.1.el8_10 ALSA-2025:13589
AlmaLinux 9 kernel Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-debug Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-devel Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-doc Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-headers Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-modules Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-debug-kvm Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-kvm Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-tools Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-570.35.1.el9_6 ALSA-2025:13962

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

90

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The race is driven entirely through local syscalls — a PUD-aligned MAP_SHARED hugetlbfs/MAP_HUGETLB mapping plus munmap/mremap/mprotect/fallocate to trigger huge_pmd_unshare(), raced against gup_fast() reached via O_DIRECT, io_uring registered buffers or vmsplice. There is no network-facing path into mm/hugetlb.c. AC:L - The attacker controls every participant: one thread issues the GUP-fast pin, a sibling thread issues the unmap that calls huge_pmd_unshare(), and a second attacker process reuses the now-exclusively-owned PMD table, and the whole sequence can be looped indefinitely. The gup_fast() IRQ-disabled window can additionally be widened by requesting a full PUD-sized pin range, since the PUD is latched once at the start of gup_fast_pud_range() while the PMD loop then walks 512 entries. PR:L - hugetlb_file_setup() performs no capable() check for MAP_HUGETLB anonymous mappings, and none of huge_pmd_unshare()'s callers or the GUP-fast entry points require any capability, so an ordinary local user account suffices. Only a configured hugepage pool is needed, which is standard on cloud, virtualization, DPDK and database hosts. UI:N - Exploitation is fully self-contained — the attacker forks its own second process to establish PMD sharing and to repurpose the unshared page table. No victim action is required at any point. S:U - The defect and its impact are both within the kernel's own memory-management security authority, with no VM, IOMMU or sandbox boundary crossed. This is a standard kernel memory-safety/privilege-escalation shape, so scope remains Unchanged. C:H - A gup_fast() walker that latched the stale PUD proceeds to walk a PMD table that now backs a different process's address space, pinning and returning struct pages that belong to that other mm. Handing those pages to O_DIRECT or vmsplice yields a direct read primitive against another process's memory, which on hosts where a hugetlbfs segment is shared across trust boundaries (QEMU/vhost-user, DPDK/SPDK, shared DB segments) discloses privileged data. I:H - The same stale walk with FOLL_WRITE returns writable pins on pages mapped by the foreign address space, so an O_DIRECT read or io_uring write into that buffer modifies another process's memory arbitrarily. It also leaves DMA pins and page reference/mapcount state established behind the back of the owning mm, corrupting page-table and pinning invariants the kernel relies on. A:H - GUP-fast traversing page tables of an unrelated address space while that process is concurrently tearing down and re-populating them is exactly the unsynchronized page-table access the kernel elsewhere prevents with tlb_remove_table_sync_one(), and it readily produces inconsistent refcount/mapcount state, VM_WARN/BUG trips, and oops in mm paths. The race can be re-armed in a loop by an unprivileged process.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < 952596b08c74e8fe9e2883d1dc8a8f54a37384ec (affected · git)39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < a3d864c901a300c295692d129159fc3001a56185 (affected · git)39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < b7754d3aa7bf9f62218d096c0c8f6c13698fac8b (affected · git)39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < fe684290418ef9ef76630072086ee530b92f02b8 (affected · git)39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < 034a52b5ef57c9c8225d94e9067f3390bb33922f (affected · git)39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < a6bfeb97941a9187833b526bc6cc4ff5706d0ce9 (affected · git)39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa to < 1013af4f585fccc4d3e5c5824d174de2257f7d6d (affected · git)Default: unaffected Linux · cna
Linux Linux 2.6.20 (affected)0 to < 2.6.20 (unaffected · semver)5.10.239 through 5.10.* (unaffected · semver)5.15.186 through 5.15.* (unaffected · semver)6.1.142 through 6.1.* (unaffected · semver)6.6.95 through 6.6.* (unaffected · semver)6.12.35 through 6.12.* (unaffected · semver)6.15.4 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

10

Provider assertions

3

Linux · cna

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

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
238f81ee613711005170ee6093e91ef5890e081e68695547831e0eb43a5676e6
Ingested
23 Sep 2026, 08:46:29 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected