CVE-2026-89755
mm/migrate_device: clear stale mapping after freeing swapcache
Check your servers for CVE-2026-89755
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-89755 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
mm/migrate_device: clear stale mapping after freeing swapcache
__migrate_device_pages() reads the folio mapping before calling folio_free_swap(). When folio_free_swap() succeeds, the folio is removed from the swap cache, but the saved mapping still points to swap_space.
Passing the stale mapping to folio_migrate_mapping() makes it use the mapped-folio path for a folio that is no longer in swapcache. It can then operate on swap_space.i_pages with invalid reference accounting, eventually triggering a folio reference count BUG.
After a successful split, nr still contains the number of pages in the original large folio, although each resulting page is now a separate order-0 folio. Reset nr to 1 so each split folio is processed separately, including its own swapcache removal and mapping lookup.
Refresh the saved mapping after folio_free_swap() so the current folio state is used during migration.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.25% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from df263d9a7dffee94ca5391120ee3b0587efa07f1, before 92db780dd644590c751246187e1229d5ac2e5544 affected from df263d9a7dffee94ca5391120ee3b0587efa07f1, before 4fa91f7bbc4135240b67daac03fc17d9e180a331 affected from df263d9a7dffee94ca5391120ee3b0587efa07f1, before c9c29481d5d4a985a57ece2090a324ba48e362a7 affected from df263d9a7dffee94ca5391120ee3b0587efa07f1, before 8ffedc6573a665cdc31ebe47eae7b32b78d0df83 affected from df263d9a7dffee94ca5391120ee3b0587efa07f1, before 34a00895d032a414830d41106a09329ae6c251b6
Other versions: unaffected
|
| Linux |
affected 6.6 unaffected before 6.6 unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.111 up to and including 6.12.* unaffected from 6.18.61 up to and including 6.18.* unaffected from 7.2.4 up to and including 7.2.* unaffected 7.3 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-89755 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89755
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-89755
trivy image --scanners vuln IMAGE | grep CVE-2026-89755
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/92db780dd644590c751246187e1229d5ac2e5544 git.kernel.org
- https://git.kernel.org/stable/c/4fa91f7bbc4135240b67daac03fc17d9e180a331 git.kernel.org
- https://git.kernel.org/stable/c/c9c29481d5d4a985a57ece2090a324ba48e362a7 git.kernel.org
- https://git.kernel.org/stable/c/8ffedc6573a665cdc31ebe47eae7b32b78d0df83 git.kernel.org
- https://git.kernel.org/stable/c/34a00895d032a414830d41106a09329ae6c251b6 git.kernel.org
Source: the record CVE-2026-89755 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse