CVE-2025-38085
mm/hugetlb: fix huge_pmd_unshare() vs GUP-fast race
Mitigation
- Upgrade Linux to 1013af4f585fccc4d3e5c5824d174de2257f7d6d or later.
Who should check
- Anyone running Linux >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 952596b08c74e8fe9e2883d1dc8a8f54a37384ec; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < a3d864c901a300c295692d129159fc3001a56185; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < b7754d3aa7bf9f62218d096c0c8f6c13698fac8b; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < fe684290418ef9ef76630072086ee530b92f02b8; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 034a52b5ef57c9c8225d94e9067f3390bb33922f; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < a6bfeb97941a9187833b526bc6cc4ff5706d0ce9; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 1013af4f585fccc4d3e5c5824d174de2257f7d6d
- Anyone running Linux 2.6.20
Vulnerability facts
- Affected
- Linux >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 952596b08c74e8fe9e2883d1dc8a8f54a37384ec; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < a3d864c901a300c295692d129159fc3001a56185; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < b7754d3aa7bf9f62218d096c0c8f6c13698fac8b; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < fe684290418ef9ef76630072086ee530b92f02b8; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 034a52b5ef57c9c8225d94e9067f3390bb33922f; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < a6bfeb97941a9187833b526bc6cc4ff5706d0ce9; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 1013af4f585fccc4d3e5c5824d174de2257f7d6d; Linux 2.6.20
- Fixed in
- Linux 952596b08c74e8fe9e2883d1dc8a8f54a37384ec, Linux 034a52b5ef57c9c8225d94e9067f3390bb33922f, Linux 1013af4f585fccc4d3e5c5824d174de2257f7d6d
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.26% chance of exploitation in 30 days (percentile 10, 2026-11-26)
- CWE
- CWE-362
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 952596b08c74e8fe9e2883d1dc8a8f54a37384ec; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < a3d864c901a300c295692d129159fc3001a56185; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < b7754d3aa7bf9f62218d096c0c8f6c13698fac8b; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < fe684290418ef9ef76630072086ee530b92f02b8; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 034a52b5ef57c9c8225d94e9067f3390bb33922f; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < a6bfeb97941a9187833b526bc6cc4ff5706d0ce9; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 1013af4f585fccc4d3e5c5824d174de2257f7d6d | — | cvelist |
| Linux | 2.6.20 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38085. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38085.md Affected: Linux >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 952596b08c74e8fe9e2883d1dc8a8f54a37384ec; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < a3d864c901a300c295692d129159fc3001a56185; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < b7754d3aa7bf9f62218d096c0c8f6c13698fac8b; >= 39dde65c9940c97fcd178a3… Fixed in: Linux 952596b08c74e8fe9e2883d1dc8a8f54a37384ec, Linux 034a52b5ef57c9c8225d94e9067f3390bb33922f, Linux 1013af4f585fccc4d3e5c5824d174de2257f7d6d Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/952596b08c74e8fe9e2883d1dc8a8f54a37384ec
- https://git.kernel.org/stable/c/a3d864c901a300c295692d129159fc3001a56185
- https://git.kernel.org/stable/c/b7754d3aa7bf9f62218d096c0c8f6c13698fac8b
- https://git.kernel.org/stable/c/fe684290418ef9ef76630072086ee530b92f02b8
- https://git.kernel.org/stable/c/034a52b5ef57c9c8225d94e9067f3390bb33922f
- https://git.kernel.org/stable/c/a6bfeb97941a9187833b526bc6cc4ff5706d0ce9
- https://git.kernel.org/stable/c/1013af4f585fccc4d3e5c5824d174de2257f7d6d
FAQ
Is CVE-2025-38085 being exploited?
There is no confirmed exploitation: CVE-2025-38085 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38085?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38085?
Linux >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 952596b08c74e8fe9e2883d1dc8a8f54a37384ec; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < a3d864c901a300c295692d129159fc3001a56185; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < b7754d3aa7bf9f62218d096c0c8f6c13698fac8b; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < fe684290418ef9ef76630072086ee530b92f02b8; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 034a52b5ef57c9c8225d94e9067f3390bb33922f; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < a6bfeb97941a9187833b526bc6cc4ff5706d0ce9; >= 39dde65c9940c97fcd178a3d2b1c57ed8b7b68aa, < 1013af4f585fccc4d3e5c5824d174de2257f7d6d; Linux 2.6.20.
Is there a fix for CVE-2025-38085?
Yes. Fixed in Linux 952596b08c74e8fe9e2883d1dc8a8f54a37384ec, Linux 034a52b5ef57c9c8225d94e9067f3390bb33922f, Linux 1013af4f585fccc4d3e5c5824d174de2257f7d6d. Upgrade Linux to 1013af4f585fccc4d3e5c5824d174de2257f7d6d or later.
How do I check if I'm affected by CVE-2025-38085?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.