# CVE-2025-38085: mm/hugetlb: fix huge_pmd_unshare() vs GUP-fast race

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-06-28T07:44:26.178Z
- Modified: 2026-08-05T11:59:23.457Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa before 952596b08c74e8fe9e2883d1dc8a8f54a37384ec; from 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa before a3d864c901a300c295692d129159fc3001a56185; from 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa before b7754d3aa7bf9f62218d096c0c8f6c13698fac8b; from 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa before fe684290418ef9ef76630072086ee530b92f02b8; from 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa before 034a52b5ef57c9c8225d94e9067f3390bb33922f; from 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa before a6bfeb97941a9187833b526bc6cc4ff5706d0ce9; from 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa before 1013af4f585fccc4d3e5c5824d174de2257f7d6d; 2.6.20 (not affected: before 2.6.20; from 5.10.239 up to 5.10.*; from 5.15.186 up to 5.15.*; from 6.1.142 up to 6.1.*; from 6.6.95 up to 6.6.*; from 6.12.35 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 2.6.20 before 5.10.239; from 5.11 before 5.15.186; from 5.16 before 6.1.142; from 6.2 before 6.6.95; from 6.7 before 6.12.35; from 6.13 before 6.15.4
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/952596b08c74e8fe9e2883d1dc8a8f54a37384ec> (patch)
- <https://git.kernel.org/stable/c/a3d864c901a300c295692d129159fc3001a56185> (patch)
- <https://git.kernel.org/stable/c/b7754d3aa7bf9f62218d096c0c8f6c13698fac8b> (patch)
- <https://git.kernel.org/stable/c/fe684290418ef9ef76630072086ee530b92f02b8> (patch)
- <https://git.kernel.org/stable/c/034a52b5ef57c9c8225d94e9067f3390bb33922f> (patch)
- <https://git.kernel.org/stable/c/a6bfeb97941a9187833b526bc6cc4ff5706d0ce9> (patch)
- <https://git.kernel.org/stable/c/1013af4f585fccc4d3e5c5824d174de2257f7d6d> (patch)
- <https://project-zero.issues.chromium.org/issues/420715744> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2025-38085](https://www.cve.org/CVERecord?id=CVE-2025-38085), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-38085](https://nvd.nist.gov/vuln/detail/CVE-2025-38085), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-38085 · Whole record: https://cve.day/CVE-2025-38085.json · Rebuilt by cve.day 2026-11-25T22:59:00.336Z
