CVE-2025-39754
mm/smaps: fix race between smaps_hugetlb_range and migration
Mitigation
- Upgrade Linux to 45d19b4b6c2d422771c29b83462d84afcbb33f01 or later.
Who should check
- Anyone running Linux >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 37ee0d97298b0547cb26b6957ccfea2d356bd0e7; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < f76089018b34dbe0c2e9b67c5b7d8860668748bb; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 2a1f3663974162b8f1e098196f557cfc1d160138; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 09fc018f48871123ad5dbd7b03c956580232ed76; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < b625883ccbcc2b57808db51d1375b1d7b9bcb3e5; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 45d19b4b6c2d422771c29b83462d84afcbb33f01
- Anyone running Linux 4.4
Vulnerability facts
- Affected
- Linux >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 37ee0d97298b0547cb26b6957ccfea2d356bd0e7; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < f76089018b34dbe0c2e9b67c5b7d8860668748bb; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 2a1f3663974162b8f1e098196f557cfc1d160138; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 09fc018f48871123ad5dbd7b03c956580232ed76; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < b625883ccbcc2b57808db51d1375b1d7b9bcb3e5; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 45d19b4b6c2d422771c29b83462d84afcbb33f01; Linux 4.4
- Fixed in
- Linux 37ee0d97298b0547cb26b6957ccfea2d356bd0e7, Linux 2a1f3663974162b8f1e098196f557cfc1d160138, Linux 09fc018f48871123ad5dbd7b03c956580232ed76, Linux 45d19b4b6c2d422771c29b83462d84afcbb33f01
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.7 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.15% chance of exploitation in 30 days (percentile 2, 2026-11-26)
- CWE
- CWE-362
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: mm/smaps: fix race between smaps_hugetlb_range and migration smaps_hugetlb_range() handles the pte without holdling ptl, and may be concurrenct with migration, leaing to BUG_ON in pfn_swap_entry_to_page(). The race is as follows. smaps_hugetlb_range migrate_pages huge_ptep_get remove_migration_ptes folio_unlock pfn_swap_entry_folio BUG_ON To fix it, hold ptl lock in smaps_hugetlb_range().
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 37ee0d97298b0547cb26b6957ccfea2d356bd0e7; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < f76089018b34dbe0c2e9b67c5b7d8860668748bb; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 2a1f3663974162b8f1e098196f557cfc1d160138; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 09fc018f48871123ad5dbd7b03c956580232ed76; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < b625883ccbcc2b57808db51d1375b1d7b9bcb3e5; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 45d19b4b6c2d422771c29b83462d84afcbb33f01 | — | cvelist |
| Linux | 4.4 | — | 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-39754. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-39754.md Affected: Linux >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 37ee0d97298b0547cb26b6957ccfea2d356bd0e7; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < f76089018b34dbe0c2e9b67c5b7d8860668748bb; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 2a1f3663974162b8f1e098196f557cfc1d160138; >= 25ee01a2fca02dfb5a3ce31… Fixed in: Linux 37ee0d97298b0547cb26b6957ccfea2d356bd0e7, Linux 2a1f3663974162b8f1e098196f557cfc1d160138, Linux 09fc018f48871123ad5dbd7b03c956580232ed76, Linux 45d19b4b6c2d422771c29b83462d84afcbb33f01 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
FAQ
Is CVE-2025-39754 being exploited?
There is no confirmed exploitation: CVE-2025-39754 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-39754?
Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2025-39754?
Linux >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 37ee0d97298b0547cb26b6957ccfea2d356bd0e7; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < f76089018b34dbe0c2e9b67c5b7d8860668748bb; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 2a1f3663974162b8f1e098196f557cfc1d160138; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 09fc018f48871123ad5dbd7b03c956580232ed76; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < b625883ccbcc2b57808db51d1375b1d7b9bcb3e5; >= 25ee01a2fca02dfb5a3ce316e77910c468108199, < 45d19b4b6c2d422771c29b83462d84afcbb33f01; Linux 4.4.
Is there a fix for CVE-2025-39754?
Yes. Fixed in Linux 37ee0d97298b0547cb26b6957ccfea2d356bd0e7, Linux 2a1f3663974162b8f1e098196f557cfc1d160138, Linux 09fc018f48871123ad5dbd7b03c956580232ed76, Linux 45d19b4b6c2d422771c29b83462d84afcbb33f01. Upgrade Linux to 45d19b4b6c2d422771c29b83462d84afcbb33f01 or later.
How do I check if I'm affected by CVE-2025-39754?
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.