Look up another CVE · open CVE-2026-89755 in the interactive tracker
CVE-2026-89755
mm/migrate_device: clear stale mapping after freeing swapcache
Published 2026-09-11 (37 days ago) by the Linux kernel CNA. Subsystem mm. Debian urgency: unimportant.
What to do, per Debian release
Debian's own status for CVE-2026-89755 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source
| Release | Status | Version | What this means |
|---|---|---|---|
| Debian 12bookworm | not affected | 6.1.190-1 | Nothing to do. bookworm never shipped the vulnerable code. |
| Debian 13trixie | fixedDSA-6528-1 · 2026-09-29 · text | 6.12.111-1 | Update the kernel and reboot. DSA-6528-1 shipped the fix on 2026-09-29, in 6.12.111-1. A running kernel keeps the old code until the machine restarts. |
| Debian 14forky | fixed | 7.2.6-1 | Update the kernel and reboot. Fixed in 7.2.6-1. A running kernel keeps the old code until the machine restarts. |
| Debian unstablesid | fixed | 7.2.6-1 | Update the kernel and reboot. Fixed in 7.2.6-1. A running kernel keeps the old code until the machine restarts. |
| Debian 12bookworm · linux-6.12 | fixedDLA-4817-1 · 2026-10-04 · text | 6.12.111-1~deb12u1 | Update the kernel and reboot. DLA-4817-1 shipped the fix on 2026-10-04, in 6.12.111-1~deb12u1. A running kernel keeps the old code until the machine restarts. |
The vulnerability
What the bug is
__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.
Where it lives
The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.
mm/migrate_device.c
- What this is
- MEMORY MANAGEMENT - MEMORY POLICY AND MIGRATIONMAINTAINERS section matched on mm/migrate_device.c · linux-mm@kvack.org · Maintained
Check it on the machine
grep -w CONFIG_DEVICE_MIGRATION /boot/config-$(uname -r)Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.
Show whether Debian builds this, per release
Debian builds this, but not on every flavour. At least one release below builds the code on some of its kernel flavours and not on others, so the answer depends on the architecture and flavour installed.
- bookwormYnot built on arm64/arm64, arm64/cloud-arm64, arm64/rt/arm64, armhf/armmp, armhf/armmp-lpae, armhf/rt/armmp, i386/686, i386/686-pae, i386/rt/686-pae, ppc64el/powerpc64le
- trixieYnot built on armel/rpi, armhf/armmp, armhf/armmp-lpae, armhf/rt/armmp, s390x/s390x
- forky, sidYnot built on armhf/armmp, armhf/armmp-lpae
- bookworm · linux-6.12Ynot built on armhf/armmp, armhf/armmp-lpae, armhf/rt/armmp
- Y
- built in where it is built at all; some flavours do not build it
- Build switch
- CONFIG_DEVICE_MIGRATION
From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages
Signals
- Published
- 2026-09-11 (37 days ago)source
- CVSS
- 7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it - Attack vector
- local (AV:L)source
- EPSS
- 0.15%, higher than 4.2% of all CVEssource
- CISA KEV
- not listedthe KEV catalogue
- Debian urgency
- unimportantsource
- Subsystem
- mm
Upstream fixes
The versions the CNA records as introducing and fixing this, and the commit for each. source
| Introduced | Fixed in | Commit |
|---|---|---|
| 6.6 | 6.12.111 | 4fa91f7bbc41 |
| 6.6 | 7.2.4 | 8ffedc6573a6 |
| 6.6 | 7.3 | 34a00895d032 |
Debian advisories
| Advisory | Date | Shipped to | Debian |
|---|---|---|---|
| DLA-4817-1 | 2026-10-04 | bookworm 6.12.111-1~deb12u1 | tracker |
| DSA-6528-1 | 2026-09-29 | trixie 6.12.111-1 | tracker |
Why the CNA scored it this way
Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source
- AV:LAttack vector, local
- The bug is in __migrate_device_pages() on the migrate-to-device path (migrate_vma_pages), reached from local GPU HMM/SVM ioctls such as AMDKFD_IOC_SVM, DRM_NOUVEAU_SVM_BIND (DRM_RENDER_ALLOW), and Intel Xe drm_pagemap_migrate_to_devmem, not from network packets.
- AC:LAttack complexity, low
- The attacker controls both preconditions: anonymous pages in their VMA, optionally kept in swapcache via pageout/swapin, then a migrate-to-VRAM ioctl. folio_free_swap() succeeds on locked mapped swapcache folios with swap count 0, which the attacker can arrange; no victim timing or uncontrollable layout is required.
- PR:LPrivileges required, low
- Nouveau SVM bind is DRM_RENDER_ALLOW and KFD SVM/Xe pagemap paths have no capable() or DRM-master check. An unprivileged local user with typical render/video-group access to /dev/dri/renderD* or /dev/kfd on GPU systems can trigger the migration.
- UI:NUser interaction, none
- The attacker drives the whole sequence in their own process (anonymous mmap, optional madvise pageout, and GPU SVM migrate-to-device ioctls). No action by another user or administrator is required.
- S:UScope, unchanged
- Impact is host-kernel swap-cache and folio-refcount corruption, i.e. standard local privilege escalation in the same security authority, not a KVM/Xen guest-to-host escape or IOMMU/DMA boundary bypass.
- C:HConfidentiality impact, high
- After folio_free_swap() the stale mapping still points at swap_space, so folio_migrate_mapping() xas_store()s a device-private folio into the global swap cache and underflows the source refcount; that UAF/type confusion of swap_space.i_pages yields an arbitrary kernel read primitive.
- I:HIntegrity impact, high
- The same xarray insertion and refcount underflow corrupt shared MM metadata (swap cache and folio references), which is exploitable for heap reuse and arbitrary kernel writes or control-flow hijack, not a bounded integrity change.
- A:HAvailability impact, high
- Invalid reference accounting on swap_space.i_pages is documented to hit a folio reference-count BUG, and the resulting underflow/UAF also causes kernel oops or panic even without a completed exploit.