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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.11% (percentile 0, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2026-09-25T10:35:55.743Z
- **Modified:** 2026-11-12T18:29:18.150Z

## Who should check

- Anyone running Linux \>= 99624bdff8670795b678eafa6509aaad3a5c0175, \< 62451f540c46bf5c51143a1c8681b472608bd54d; \>= 99624bdff8670795b678eafa6509aaad3a5c0175, \< c4126f1db36e6b2e1c79b0e30a8a2de91c568f4c
- Anyone running Linux 6.15

## Description

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---

## Affected and fixed versions

- Linux: \>= 99624bdff8670795b678eafa6509aaad3a5c0175, \< 62451f540c46bf5c51143a1c8681b472608bd54d; \>= 99624bdff8670795b678eafa6509aaad3a5c0175, \< c4126f1db36e6b2e1c79b0e30a8a2de91c568f4c (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98106. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98106.md
Affected: Linux >= 99624bdff8670795b678eafa6509aaad3a5c0175, < 62451f540c46bf5c51143a1c8681b472608bd54d; >= 99624bdff8670795b678eafa6509aaad3a5c0175, < c4126f1db36e6b2e1c79b0e30a8a2de91c568f4c; Linux 6.15
Fixed in: Linux 62451f540c46bf5c51143a1c8681b472608bd54d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98106 being exploited?

There is no confirmed exploitation: CVE-2026-98106 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.11% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98106?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-98106?

Linux \>= 99624bdff8670795b678eafa6509aaad3a5c0175, \< 62451f540c46bf5c51143a1c8681b472608bd54d; \>= 99624bdff8670795b678eafa6509aaad3a5c0175, \< c4126f1db36e6b2e1c79b0e30a8a2de91c568f4c; Linux 6.15.

### Is there a fix for CVE-2026-98106?

Yes. Fixed in Linux 62451f540c46bf5c51143a1c8681b472608bd54d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98106?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/62451f540c46bf5c51143a1c8681b472608bd54d>
- patch: <https://git.kernel.org/stable/c/c4126f1db36e6b2e1c79b0e30a8a2de91c568f4c>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98106>

HTML: <https://flawdb.com/CVE-2026-98106> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98106>
