{"id":"CVE-2025-39754","aliases":["CVE-2025-39754"],"related":[],"kind":"vulnerability","state":"published","title":"mm/smaps: fix race between smaps_hugetlb_range and migration","summary":"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().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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().","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmm/smaps: corrección de una condición de carrera entre smaps_hugetlb_range y migration\n\nsmaps_hugetlb_range() maneja el pte sin mantener ptl, y puede ser concurrente con migration, lo que lleva a un BUG_ON en pfn_swap_entry_to_page(). La condición de carrera es la siguiente.\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\nPara solucionarlo, mantener el bloqueo ptl en smaps_hugetlb_range().","source":"nvd"}],"published":"2025-09-11T16:52:24.763Z","modified":"2026-11-05T22:17:30.210Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"25ee01a2fca02dfb5a3ce316e77910c468108199","fixed":"37ee0d97298b0547cb26b6957ccfea2d356bd0e7","status":"affected"},{"type":"git","introduced":"25ee01a2fca02dfb5a3ce316e77910c468108199","fixed":"f76089018b34dbe0c2e9b67c5b7d8860668748bb","status":"affected"},{"type":"git","introduced":"25ee01a2fca02dfb5a3ce316e77910c468108199","fixed":"2a1f3663974162b8f1e098196f557cfc1d160138","status":"affected"},{"type":"git","introduced":"25ee01a2fca02dfb5a3ce316e77910c468108199","fixed":"09fc018f48871123ad5dbd7b03c956580232ed76","status":"affected"},{"type":"git","introduced":"25ee01a2fca02dfb5a3ce316e77910c468108199","fixed":"b625883ccbcc2b57808db51d1375b1d7b9bcb3e5","status":"affected"},{"type":"git","introduced":"25ee01a2fca02dfb5a3ce316e77910c468108199","fixed":"45d19b4b6c2d422771c29b83462d84afcbb33f01","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.4","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.4","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.43","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.11","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.2","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.4","fixed":"6.12.43"},{"status":"affected","introduced":"6.13","fixed":"6.15.11"},{"status":"affected","introduced":"6.16","fixed":"6.16.2"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/37ee0d97298b0547cb26b6957ccfea2d356bd0e7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f76089018b34dbe0c2e9b67c5b7d8860668748bb","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2a1f3663974162b8f1e098196f557cfc1d160138","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/09fc018f48871123ad5dbd7b03c956580232ed76","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b625883ccbcc2b57808db51d1375b1d7b9bcb3e5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/45d19b4b6c2d422771c29b83462d84afcbb33f01","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T21:10:55.460Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39754","url":"https://www.cve.org/CVERecord?id=CVE-2025-39754","licence":"CVE Terms of Use","modified":"2026-11-05T21:12:56.972Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39754","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39754","licence":"Public domain","modified":"2026-11-05T22:17:30.210Z"}],"updatedAt":"2026-11-25T22:59:04.549Z","epss":{"score":0.00147,"percentile":0.041,"date":"2026-12-01T12:00:22.000Z"}}