{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-39754","id":"CVE-2025-39754","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                                   ","descriptionLong":"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().","published":"2025-09-11T16:52:24.763Z","updated":"2026-11-07T02:30:41.936139601Z","reserved":"2025-04-16T07:20:57.125Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":4.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","lessThan":"37ee0d97298b0547cb26b6957ccfea2d356bd0e7","status":"affected","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","lessThan":"f76089018b34dbe0c2e9b67c5b7d8860668748bb","status":"affected","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","lessThan":"2a1f3663974162b8f1e098196f557cfc1d160138","status":"affected","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","lessThan":"09fc018f48871123ad5dbd7b03c956580232ed76","status":"affected","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","lessThan":"b625883ccbcc2b57808db51d1375b1d7b9bcb3e5","status":"affected","versionType":"git"},{"version":"25ee01a2fca02dfb5a3ce316e77910c468108199","lessThan":"45d19b4b6c2d422771c29b83462d84afcbb33f01","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.4","status":"affected"},{"version":"0","lessThan":"4.4","status":"unaffected","versionType":"semver"},{"version":"6.1.191","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.43","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.11","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16.2","lessThanOrEqual":"6.16.*","status":"unaffected","versionType":"semver"},{"version":"6.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-362"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/37ee0d97298b0547cb26b6957ccfea2d356bd0e7","tags":["web"]},{"url":"https://git.kernel.org/stable/c/f76089018b34dbe0c2e9b67c5b7d8860668748bb","tags":["web"]},{"url":"https://git.kernel.org/stable/c/2a1f3663974162b8f1e098196f557cfc1d160138","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/09fc018f48871123ad5dbd7b03c956580232ed76","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b625883ccbcc2b57808db51d1375b1d7b9bcb3e5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/45d19b4b6c2d422771c29b83462d84afcbb33f01","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39754.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39754","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00147,"epssPercentile":0.03996,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-39754","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39754","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-39754","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-39754","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}