{"id":"CVE-2026-89755","aliases":["CVE-2026-89755"],"related":[],"kind":"vulnerability","state":"published","title":"mm/migrate_device: clear stale mapping after freeing swapcache","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/migrate_device: clear stale mapping after freeing swapcache\n\n__migrate_device_pages() reads the folio mapping before calling\nfolio_free_swap().  When folio_free_swap() succeeds, the folio is removed\nfrom the swap cache, but the saved mapping still points to swap_space.\n\nPassing the stale mapping to folio_migrate_mapping() makes it use the\nmapped-folio path for a folio that is no longer in swapcache.  It can then\noperate on swap_space.i_pages with invalid reference accounting,\neventually triggering a folio reference count BUG.\n\nAfter a successful split, nr still contains the number of pages in the\noriginal large folio, although each resulting page is now a separate\norder-0 folio.  Reset nr to 1 so each split folio is processed separately,\nincluding its own swapcache removal and mapping lookup.\n\nRefresh the saved mapping after folio_free_swap() so the current folio\nstate is used during migration.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/migrate_device: clear stale mapping after freeing swapcache\n\n__migrate_device_pages() reads the folio mapping before calling\nfolio_free_swap().  When folio_free_swap() succeeds, the folio is removed\nfrom the swap cache, but the saved mapping still points to swap_space.\n\nPassing the stale mapping to folio_migrate_mapping() makes it use the\nmapped-folio path for a folio that is no longer in swapcache.  It can then\noperate on swap_space.i_pages with invalid reference accounting,\neventually triggering a folio reference count BUG.\n\nAfter a successful split, nr still contains the number of pages in the\noriginal large folio, although each resulting page is now a separate\norder-0 folio.  Reset nr to 1 so each split folio is processed separately,\nincluding its own swapcache removal and mapping lookup.\n\nRefresh the saved mapping after folio_free_swap() so the current folio\nstate is used during migration.","source":"cvelist"}],"published":"2026-09-11T19:46:58.295Z","modified":"2026-11-06T18:18:23.547Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"df263d9a7dffee94ca5391120ee3b0587efa07f1","fixed":"92db780dd644590c751246187e1229d5ac2e5544","status":"affected"},{"type":"git","introduced":"df263d9a7dffee94ca5391120ee3b0587efa07f1","fixed":"4fa91f7bbc4135240b67daac03fc17d9e180a331","status":"affected"},{"type":"git","introduced":"df263d9a7dffee94ca5391120ee3b0587efa07f1","fixed":"c9c29481d5d4a985a57ece2090a324ba48e362a7","status":"affected"},{"type":"git","introduced":"df263d9a7dffee94ca5391120ee3b0587efa07f1","fixed":"8ffedc6573a665cdc31ebe47eae7b32b78d0df83","status":"affected"},{"type":"git","introduced":"df263d9a7dffee94ca5391120ee3b0587efa07f1","fixed":"34a00895d032a414830d41106a09329ae6c251b6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.111","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/92db780dd644590c751246187e1229d5ac2e5544","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4fa91f7bbc4135240b67daac03fc17d9e180a331","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c9c29481d5d4a985a57ece2090a324ba48e362a7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8ffedc6573a665cdc31ebe47eae7b32b78d0df83","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34a00895d032a414830d41106a09329ae6c251b6","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89755","url":"https://www.cve.org/CVERecord?id=CVE-2026-89755","licence":"CVE Terms of Use","modified":"2026-11-06T17:14:58.290Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89755","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89755","licence":"Public domain","modified":"2026-11-06T18:18:23.547Z"}],"updatedAt":"2026-11-25T22:59:38.138Z","epss":{"score":0.00183,"percentile":0.08254,"date":"2026-12-01T12:00:22.000Z"}}