{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-89755","id":"CVE-2026-89755","title":"mm/migrate_device: clear stale mapping after freeing swapcache","description":"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() make","descriptionLong":"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.","published":"2026-09-11T19:46:58.295Z","updated":"2026-11-15T17:28:02.307751456Z","reserved":"2026-09-11T19:38:34.763Z","status":"Received","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"df263d9a7dffee94ca5391120ee3b0587efa07f1","lessThan":"92db780dd644590c751246187e1229d5ac2e5544","status":"affected","versionType":"git"},{"version":"df263d9a7dffee94ca5391120ee3b0587efa07f1","lessThan":"4fa91f7bbc4135240b67daac03fc17d9e180a331","status":"affected","versionType":"git"},{"version":"df263d9a7dffee94ca5391120ee3b0587efa07f1","lessThan":"c9c29481d5d4a985a57ece2090a324ba48e362a7","status":"affected","versionType":"git"},{"version":"df263d9a7dffee94ca5391120ee3b0587efa07f1","lessThan":"8ffedc6573a665cdc31ebe47eae7b32b78d0df83","status":"affected","versionType":"git"},{"version":"df263d9a7dffee94ca5391120ee3b0587efa07f1","lessThan":"34a00895d032a414830d41106a09329ae6c251b6","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","lessThan":"6.6","status":"unaffected","versionType":"semver"},{"version":"6.6.160","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.111","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.4","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/92db780dd644590c751246187e1229d5ac2e5544","tags":["web"]},{"url":"https://git.kernel.org/stable/c/4fa91f7bbc4135240b67daac03fc17d9e180a331","tags":["web"]},{"url":"https://git.kernel.org/stable/c/c9c29481d5d4a985a57ece2090a324ba48e362a7","tags":["web"]},{"url":"https://git.kernel.org/stable/c/8ffedc6573a665cdc31ebe47eae7b32b78d0df83","tags":["web"]},{"url":"https://git.kernel.org/stable/c/34a00895d032a414830d41106a09329ae6c251b6","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89755.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89755","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00157,"epssPercentile":0.04953,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-89755","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89755","ok":true,"note":"Received"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-89755","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-2026-89755","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}