CVE-2025-38085

MEDIUM

Linux Kernel - Race Condition in Huge PMD Unshare vs GUP-Fast

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 4.7
EPSS 0.0008
EPSS Percentile 24.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-362
Status published
Products (24)
debian/debian_linux 11.0
linux/Kernel 2.6.20 - 5.10.239linux
linux/Kernel 5.11.0 - 5.15.186linux
linux/Kernel 5.16.0 - 6.1.142linux
linux/Kernel 6.13.0 - 6.15.4linux
linux/Kernel 6.2.0 - 6.6.95linux
linux/Kernel 6.7.0 - 6.12.35linux
Linux/Linux < 2.6.20
Linux/Linux 2.6.20
Linux/Linux 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa - 034a52b5ef57c9c8225d94e9067f3390bb33922f
... and 14 more
Published Jun 28, 2025
Tracked Since Feb 18, 2026