{"id":"CVE-2025-39754","summary":"mm/smaps: fix race between smaps_hugetlb_range and migration","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/smaps: fix race between smaps_hugetlb_range and migration\n\nsmaps_hugetlb_range() handles the pte without holdling ptl, and may be\nconcurrenct with migration, leaing to BUG_ON in pfn_swap_entry_to_page(). \nThe race is as follows.\n\nsmaps_hugetlb_range              migrate_pages\n  huge_ptep_get\n                                   remove_migration_ptes\n\t\t\t\t   folio_unlock\n  pfn_swap_entry_folio\n    BUG_ON\n\nTo fix it, hold ptl lock in smaps_hugetlb_range().","aliases":["ECHO-58f1-184e-4081"],"modified":"2026-04-14T18:48:47.464551029Z","published":"2025-09-11T16:52:24.763Z","related":["SUSE-SU-2025:03600-1","SUSE-SU-2025:03601-1","SUSE-SU-2025:03614-1","SUSE-SU-2025:03633-1","SUSE-SU-2025:03634-1","SUSE-SU-2025:20851-1","SUSE-SU-2025:20861-1","SUSE-SU-2025:20870-1","SUSE-SU-2025:20898-1","SUSE-SU-2025:21074-1","SUSE-SU-2025:21139-1","SUSE-SU-2025:21179-1","SUSE-SU-2025:3725-1","SUSE-SU-2025:3751-1","openSUSE-SU-2025:20081-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39754.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/09fc018f48871123ad5dbd7b03c956580232ed76"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a1f3663974162b8f1e098196f557cfc1d160138"},{"type":"WEB","url":"https://git.kernel.org/stable/c/45d19b4b6c2d422771c29b83462d84afcbb33f01"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b625883ccbcc2b57808db51d1375b1d7b9bcb3e5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39754.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39754"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"25ee01a2fca02dfb5a3ce316e77910c468108199"},{"fixed":"2a1f3663974162b8f1e098196f557cfc1d160138"},{"fixed":"09fc018f48871123ad5dbd7b03c956580232ed76"},{"fixed":"b625883ccbcc2b57808db51d1375b1d7b9bcb3e5"},{"fixed":"45d19b4b6c2d422771c29b83462d84afcbb33f01"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39754.json"}}],"schema_version":"1.7.5"}