{"id":"CVE-2025-39754","state":"PUBLISHED","title":"mm/smaps: fix race between smaps_hugetlb_range and migration","description":"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().","publishedAt":"2025-09-11T16:52:24.763Z","updatedAt":"2026-10-30T12:22:25.688Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"37ee0d97298b0547cb26b6957ccfea2d356bd0e7","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"f76089018b34dbe0c2e9b67c5b7d8860668748bb","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"2a1f3663974162b8f1e098196f557cfc1d160138","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"09fc018f48871123ad5dbd7b03c956580232ed76","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"b625883ccbcc2b57808db51d1375b1d7b9bcb3e5","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"45d19b4b6c2d422771c29b83462d84afcbb33f01","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/proc/task_mmu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.4","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.43","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.11","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.2","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/proc/task_mmu.c"]}],"references":["https://git.kernel.org/stable/c/37ee0d97298b0547cb26b6957ccfea2d356bd0e7","https://git.kernel.org/stable/c/f76089018b34dbe0c2e9b67c5b7d8860668748bb","https://git.kernel.org/stable/c/2a1f3663974162b8f1e098196f557cfc1d160138","https://git.kernel.org/stable/c/09fc018f48871123ad5dbd7b03c956580232ed76","https://git.kernel.org/stable/c/b625883ccbcc2b57808db51d1375b1d7b9bcb3e5","https://git.kernel.org/stable/c/45d19b4b6c2d422771c29b83462d84afcbb33f01"],"weaknesses":[],"ingestedAt":"2026-10-30T12:38:04.623Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/39xxx/CVE-2025-39754.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-39754","state":"PUBLISHED","datePublished":"2025-09-11T16:52:24.763Z","dateUpdated":"2026-10-30T12:22:25.688Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:20:57.125Z"},"containers":{"cna":{"title":"mm/smaps: fix race between smaps_hugetlb_range and migration","descriptions":[{"lang":"en","value":"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()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"37ee0d97298b0547cb26b6957ccfea2d356bd0e7","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"f76089018b34dbe0c2e9b67c5b7d8860668748bb","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"2a1f3663974162b8f1e098196f557cfc1d160138","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"09fc018f48871123ad5dbd7b03c956580232ed76","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"b625883ccbcc2b57808db51d1375b1d7b9bcb3e5","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","status":"affected","lessThan":"45d19b4b6c2d422771c29b83462d84afcbb33f01","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/proc/task_mmu.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.4","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.43","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.11","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16.2","status":"unaffected","lessThanOrEqual":"6.16.*","versionType":"semver"},{"version":"6.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/proc/task_mmu.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/37ee0d97298b0547cb26b6957ccfea2d356bd0e7"},{"url":"https://git.kernel.org/stable/c/f76089018b34dbe0c2e9b67c5b7d8860668748bb"},{"url":"https://git.kernel.org/stable/c/2a1f3663974162b8f1e098196f557cfc1d160138"},{"url":"https://git.kernel.org/stable/c/09fc018f48871123ad5dbd7b03c956580232ed76"},{"url":"https://git.kernel.org/stable/c/b625883ccbcc2b57808db51d1375b1d7b9bcb3e5"},{"url":"https://git.kernel.org/stable/c/45d19b4b6c2d422771c29b83462d84afcbb33f01"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:22:25.688Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.12.43"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.15.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.16.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.4","versionEndExcluding":"6.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}