# CVE-2026-98106: drm/pagemap: Prevent double migration of device pages

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-25 · Modified: 2026-10-19
- Aliases: UBUNTU-CVE-2026-98106, DEBIAN-CVE-2026-98106, CGA-3fc8-9p6x-5wg9, CGA-3fjv-fmw6-hpfv, CGA-3x74-q338-ch79, CGA-57cw-q33m-352v, CGA-5g4p-6p7p-v2q5, CGA-67v8-6ccp-5rf6, CGA-89fx-wmwr-6hv2, CGA-8f5f-ph4f-hqh9, CGA-fmx4-mqx3-2vj2, CGA-fv6v-mc65-h3gj, CGA-ghpc-prw6-v3j6, CGA-gp5h-cvqm-5pc9, CGA-jc7v-9rm5-7g8q, CGA-pf36-mfg7-8v4f, CGA-xffp-wqr8-vvw7, CGA-233c-2mg2-9vg2, CGA-26fp-7c8x-rcv8, CGA-2gg7-pqwj-jxrj, CGA-2q3m-ph75-x49x, CGA-33mv-wc8m-jv4r, CGA-39mp-3m8f-xvfg, CGA-3jqx-vx6g-5fwh, CGA-3p79-wph5-93f8, CGA-3r86-3cf2-cxjf, CGA-3rp5-g6h6-94cx, CGA-3wwx-99m9-rm37, CGA-44c6-wwq9-cw6p, CGA-48hx-v9vj-9g5f, CGA-56g4-jjhx-3q72, CGA-5m24-5rfw-xpm6, CGA-5p93-95x5-wgvm, CGA-5pvq-pwr9-jjrx, CGA-66qq-2ggv-hq5w, CGA-6f42-4hgw-4xgr, CGA-6m5f-7239-jrwh, CGA-72rm-pq3j-ffrx, CGA-7rr5-g758-6v44, CGA-848h-6fg7-9gx8, CGA-87vr-q3cq-83p4, CGA-87w4-7m2f-gxvw, CGA-9q69-wqp9-v572, CGA-9q6v-qr82-m8x6, CGA-9vr5-2vr5-phmx, CGA-c56f-rvr3-q244, CGA-c57m-xvjf-859r, CGA-c5fw-xj27-7qpc, CGA-c7jw-rm37-83p8, CGA-ch5j-63r9-4gwg, CGA-cw2j-4p79-hgvp, CGA-f2vp-cwfw-jg2j, CGA-f7wh-w4qg-cjqq, CGA-fm2h-vqpm-gcfq, CGA-fw6v-789h-2q73, CGA-fwfw-p62w-jxrm, CGA-g2j4-c8vf-mvg3, CGA-g3gw-wpp2-9c72, CGA-g4p8-vx72-pqr6, CGA-gq2j-wr5q-8fmh, CGA-gwmr-qm5q-hv7h, CGA-gx4m-9mxj-rvp3, CGA-h23r-cv63-pr5m, CGA-h3x7-hcw2-rv59, CGA-h63g-xvq6-p77p, CGA-h7rv-5m2w-hp29, CGA-j28v-vfvp-96cw, CGA-jv7f-j84h-3gw2, CGA-jv8v-xqpv-xq6p, CGA-m38j-cpjw-964p, CGA-m3xq-6h3w-gf9x, CGA-mg4j-mmr7-7677, CGA-mjgj-pf62-h9px, CGA-mmfw-f97m-3v4m, CGA-pcqv-9f86-wmhm, CGA-pfw7-2fm3-qxv3, CGA-ppv3-73xp-h6hx, CGA-pw8h-cg2h-v8qf, CGA-qh8w-6pp5-wf2r, CGA-qrw3-xx45-g46f, CGA-qw89-268c-wvqv, CGA-r9q5-jqhc-pq8p, CGA-rff7-hjpx-gw5w, CGA-rhq9-53f8-hfcx, CGA-rr4x-mvcf-54h8, CGA-v6fw-72r3-87h9, CGA-v923-j9gr-hvpc, CGA-vxw9-9f2j-7w96, CGA-w2qh-q97p-9wfm, CGA-w4w4-hrwq-v5v2, CGA-w5vr-7c7m-m5x7, CGA-w955-v963-h489, CGA-wjpj-f43j-vxcr, CGA-wm9r-ffmr-x5x2, CGA-wwxq-4p3f-w7h5, CGA-x66w-p7r2-q53w, CGA-xgw2-jjmp-p856, CGA-xqhq-hjrm-vghq, CGA-9v7x-h65j-g95q, CGA-r4pq-hh27-mjhr, CGA-v729-xgr2-vxg2, CGA-w4p7-vx59-2vcj, CGA-xpw9-w8q7-xrcr, CGA-q4px-rpqp-cwrq
- Record: https://cvemate.com/vulnerability/CVE-2026-98106 · JSON: https://cvemate.com/vulnerability/CVE-2026-98106/json

## Description

```text
In the Linux kernel, the following vulnerability has been resolved:

drm/pagemap: Prevent double migration of device pages

A device-private folio migrated to system memory by a CPU fault can
remain reachable through the raw-PFN eviction path until migration
finalization drops the source reference.

If eviction selects the same device-private folio during this window,
it can attempt to migrate the folio again. The second migration can leave
an uncharged folio on an LRU list, causing folio_lruvec_lock_irqsave() to
retry indefinitely and resulting in a soft lockup and RCU stall.

Mark successfully migrated device-private folios using a low bit of
their zone_device_data before migration finalization. Make both CPU-fault
and raw-PFN migration paths skip device-private folios carrying this
flag.

Mask the flag when retrieving the drm_pagemap_zdd pointer and preserve
it when a device-private folio is split. Keeping the state on the physical
folio also avoids depending on a virtual address that may change before a
fault occurs.

v2:
- Replace the retired-PFN XArray with an embedded bitmap. (Matthew Brost)
- Mark every base page covered by a migrated folio so retirement remains
  valid if the folio is later split.

v3:
- Store the migrated state in a low bit of zone_device_data instead of
  adding virtual-range and bitmap tracking to the ZDD. (Matthew Brost)
- Mask the flag when retrieving the ZDD and preserve it when splitting
  a folio.
- Drop the pre-existing fixes already covered by Matthew Brost's series:
  https://patchwork.freedesktop.org/series/171651/

v4:
- Advance by the folio size only for migration entries marked with
  MIGRATE_PFN_COMPOUND. (Sashiko)

v5:
- Simplify ZDD flag updates and folio iteration. (Matthew Brost)
- Skip retired device-private folios in the CPU-fault path. (Matthew Brost)
- Preserve flag bits while taking a new ZDD reference for split folios.

v6:
- Restore MIGRATE_PFN_COMPOUND-aware stepping so non-compound migration
  entries are processed one at a time. (Sashiko)
- Drop the pre-existing fixes already covered by Matthew Brost's series:
  https://patchwork.freedesktop.org/series/171651/

The lockup was observed as:
[10109.860465] watchdog: BUG: soft lockup - CPU#9 stuck for 26s! [kworker/u65:5:6557]
[10109.860524] Tainted: [S]=CPU_OUT_OF_SPEC, [O]=OOT_MODULE
[10109.860524] Hardware name: ASUS System Product Name/PRIME Z790-P WIFI, BIOS 0812 02/24/2023
[10109.860525] Workqueue: xe_page_fault_work_queue xe_pagefault_queue_work [xe]
[10109.860644] RIP: 0010:_raw_spin_unlock_irqrestore+0x57/0x80
[10109.860655] Call Trace:
[10109.860655]  <TASK>
[10109.860657]  folio_lruvec_lock_irqsave+0x216/0x220
[10109.860661]  ? __pfx_lru_add+0x10/0x10
[10109.860665]  folio_batch_move_lru+0xc8/0x450
[10109.860670]  ? lock_acquire+0xc4/0x2d0
[10109.860674]  ? __folio_batch_add_and_move+0x60/0x2e0
[10109.860677]  ? folio_migrate_mapping+0xa6/0x110
[10109.860679]  ? folio_migrate_flags+0x13b/0x1b0
[10109.860681]  ? __pfx_lru_add+0x10/0x10
[10109.860683]  __folio_batch_add_and_move+0xe7/0x2e0
[10109.860685]  ? dma_iova_try_alloc+0xb0/0x140
[10109.860689]  folio_add_lru+0x64/0x80
[10109.860691]  __migrate_device_finalize+0x12c/0x270
[10109.860695]  migrate_device_finalize+0x10/0x20
[10109.860698]  drm_pagemap_evict_to_ram+0x185/0x370 [drm_gpusvm_helper]
[10109.860704]  ? drm_pagemap_evict_to_ram+0x96/0x370 [drm_gpusvm_helper]
[10109.860709]  xe_svm_bo_evict+0x15/0x20 [xe]
[10109.860819]  ? xe_svm_bo_evict+0x15/0x20 [xe]
[10109.860921]  xe_bo_move+0x107e/0x1570 [xe]
[10109.860992]  ? xe_ttm_tt_create+0x168/0x340 [xe]
[10109.861059]  ? __up_read+0x98/0x2b0
[10109.861061]  ? lock_is_held_type+0xa3/0x130
[10109.861067]  ttm_bo_handle_move_mem+0xe8/0x1e0 [ttm]
[10109.861075]  ttm_bo_evict+0x141/0x1c0 [ttm]
[10109.861081]  ttm_bo_evict_cb+0x9f/0x100 [ttm]
[10109.861086]  ttm_lru_walk_for_evict+0x84/0x190 [ttm]
[10109.861091]  ? xe_ttm_vram_mgr_new+0x258/0x3a0 [xe]
[10109.861198]  ttm_bo_alloc_resource+0x219/0
---truncated---
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.083%, percentile 0.241%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 170)

- chainguard hyperv-daemons-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-aws-6.18-nestkvm-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-fips-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-azure-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-6.18-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-firecracker-6.18 (Chainguard): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/62451f540c46bf5c51143a1c8681b472608bd54d>
- <https://git.kernel.org/stable/c/c4126f1db36e6b2e1c79b0e30a8a2de91c568f4c>
- <https://ubuntu.com/security/CVE-2026-98106>
- <https://www.cve.org/CVERecord?id=CVE-2026-98106>
- <https://security-tracker.debian.org/tracker/CVE-2026-98106>
- <https://ubuntu.com/security/notices/USN-8959-1>
- <https://ubuntu.com/security/notices/USN-8960-1>
- <https://ubuntu.com/security/notices/USN-9020-1>
- <https://ubuntu.com/security/notices/USN-9019-1>
- <https://ubuntu.com/security/notices/USN-9021-1>
- <https://ubuntu.com/security/notices/USN-9160-1>

---

Data as of 2026-12-05T03:23:53.015Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
