# CVE-2025-39754: mm/smaps: fix race between smaps_hugetlb_range and migration

- Severity: Medium 4.7 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-09-11T16:52:24.763Z
- Modified: 2026-11-05T22:17:30.210Z
- 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/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().

(As written by CVE List.)

## Affected

- Linux Linux: from 25ee01a2fca02dfb5a3ce316e77910c468108199 before 37ee0d97298b0547cb26b6957ccfea2d356bd0e7; from 25ee01a2fca02dfb5a3ce316e77910c468108199 before f76089018b34dbe0c2e9b67c5b7d8860668748bb; from 25ee01a2fca02dfb5a3ce316e77910c468108199 before 2a1f3663974162b8f1e098196f557cfc1d160138; from 25ee01a2fca02dfb5a3ce316e77910c468108199 before 09fc018f48871123ad5dbd7b03c956580232ed76; from 25ee01a2fca02dfb5a3ce316e77910c468108199 before b625883ccbcc2b57808db51d1375b1d7b9bcb3e5; from 25ee01a2fca02dfb5a3ce316e77910c468108199 before 45d19b4b6c2d422771c29b83462d84afcbb33f01; 4.4 (not affected: before 4.4; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.43 up to 6.12.*; from 6.15.11 up to 6.15.*; from 6.16.2 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 4.4 before 6.12.43; from 6.13 before 6.15.11; from 6.16 before 6.16.2; 6.17

## References

- <https://git.kernel.org/stable/c/37ee0d97298b0547cb26b6957ccfea2d356bd0e7>
- <https://git.kernel.org/stable/c/f76089018b34dbe0c2e9b67c5b7d8860668748bb>
- <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> (patch)

## Sources

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

---

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