# CVE-2025-39754: mm/smaps: fix race between smaps\_hugetlb\_range and migration

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-09-11T16:52:24.763Z
- **Modified:** 2026-11-05T22:17:30.210Z

## Who should check

- Anyone running Linux \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< 37ee0d97298b0547cb26b6957ccfea2d356bd0e7; \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< f76089018b34dbe0c2e9b67c5b7d8860668748bb; \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< 2a1f3663974162b8f1e098196f557cfc1d160138; \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< 09fc018f48871123ad5dbd7b03c956580232ed76; \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< b625883ccbcc2b57808db51d1375b1d7b9bcb3e5; \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< 45d19b4b6c2d422771c29b83462d84afcbb33f01
- Anyone running Linux 4.4

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

- Linux: \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< 37ee0d97298b0547cb26b6957ccfea2d356bd0e7; \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< f76089018b34dbe0c2e9b67c5b7d8860668748bb; \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< 2a1f3663974162b8f1e098196f557cfc1d160138; \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< 09fc018f48871123ad5dbd7b03c956580232ed76; \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< b625883ccbcc2b57808db51d1375b1d7b9bcb3e5; \>= 25ee01a2fca02dfb5a3ce316e77910c468108199, \< 45d19b4b6c2d422771c29b83462d84afcbb33f01 (cvelist)
- Linux: 4.4 (cvelist)

## Mitigation

- Upgrade Linux to 45d19b4b6c2d422771c29b83462d84afcbb33f01 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- patch: <https://git.kernel.org/stable/c/2a1f3663974162b8f1e098196f557cfc1d160138>
- patch: <https://git.kernel.org/stable/c/09fc018f48871123ad5dbd7b03c956580232ed76>
- patch: <https://git.kernel.org/stable/c/b625883ccbcc2b57808db51d1375b1d7b9bcb3e5>
- patch: <https://git.kernel.org/stable/c/45d19b4b6c2d422771c29b83462d84afcbb33f01>
- other: <https://git.kernel.org/stable/c/37ee0d97298b0547cb26b6957ccfea2d356bd0e7>
- other: <https://git.kernel.org/stable/c/f76089018b34dbe0c2e9b67c5b7d8860668748bb>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-39754>

HTML: <https://flawdb.com/CVE-2025-39754> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-39754>
