# CVE-2026-98310: drm/xe/shrinker: Take a runtime PM ref before shrinking non-system memory

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-06T08:46:06.767Z
- **Modified:** 2026-10-19T10:18:33.053Z

## Who should check

- Anyone running Linux \>= 4e7ebff69aed345f65f590a17b3119c0cb5eadde, \< b7f4d2588b1342bb190c04b3d7a32560f206c74c; \>= 4e7ebff69aed345f65f590a17b3119c0cb5eadde, \< 985862be16c7e4da808c51f393d631fb60c0be5c
- Anyone running Linux 7.1

## Description

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

drm/xe/shrinker: Take a runtime PM ref before shrinking non-system memory

\_\_xe\_shrinker\_walk() walks the SYSTEM and TT LRUs without a runtime PM
reference.  Shrinking a bo outside system memory invalidates its GPU
mappings, which needs the device resumed, so while it is runtime
suspended the page table zap trips an assert and the TLB invalidation
returns -ENODEV:

  WARNING: drivers/gpu/drm/xe/xe\_bo.c:770 at xe\_bo\_move\_notify+0x1fc/0x450 \[xe\]
   xe\_bo\_shrink+0x20f/0x2b0 \[xe\]
   \_\_xe\_shrinker\_walk+0x174/0x410 \[xe\]
   xe\_shrinker\_scan+0x10c/0x1e0 \[xe\]
   do\_shrink\_slab+0x176/0x7e0
   drop\_caches\_sysctl\_handler+0x9c/0xf0

Take a reference before walking a memory type other than XE\_PL\_SYSTEM
and stop there if it cannot be acquired.  Reuse the shrinker's existing
acquire path, which resumes the device directly where reclaim allows
that and otherwise queues the PM worker for a later scan.  Stop the walk
once the scan target is met, so a satisfied scan does not wake the
device.  System memory is still reclaimed while the device is suspended.

Gate this on xe\_device\_is\_l2\_flush\_optimized(), the same condition under
which xe\_bo\_trigger\_rebind() issues the invalidation for a non-fault-mode
vm, so reclaim is unaffected elsewhere.  The System CCS copy already has
its own reference in xe\_bo\_shrink().

Only a non-fault-mode vm can reach this, since a fault-mode vm requires
LR mode and that holds a runtime PM reference for the vm's lifetime.

Reproduced with igt@xe\_madvise@dontneed-before-exec while the GPU is
runtime suspended.

v2: simplify needs\_rpm check. (Matt)
    retarget Fixes tag since the issue occurs with the non-fault-mode
    path added by 4e7ebff69aed.
v3: handle this in xe\_shrinker.c instead of xe\_bo.c (Thomas)
v4: stop the walk once the scan target is met. (Sashiko)
v5: rebase on the freed page accounting fix. (Sashiko)
v6: reuse the shrinker acquire path so runtime pm can be resumed
    directly instead of always queueing a worker. (Thomas)
v7: replace xe\_pm\_runtime\_put() with xe\_shrinker\_runtime\_pm\_put(). (Thomas)

(cherry picked from commit 628f92b28bf4c371c10207daf6fc4caee0c0db2e)

## Affected and fixed versions

- Linux: \>= 4e7ebff69aed345f65f590a17b3119c0cb5eadde, \< b7f4d2588b1342bb190c04b3d7a32560f206c74c; \>= 4e7ebff69aed345f65f590a17b3119c0cb5eadde, \< 985862be16c7e4da808c51f393d631fb60c0be5c (cvelist)
- Linux: 7.1 (cvelist)

## Mitigation

- Upgrade Linux to 985862be16c7e4da808c51f393d631fb60c0be5c or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98310.md
Affected: Linux >= 4e7ebff69aed345f65f590a17b3119c0cb5eadde, < b7f4d2588b1342bb190c04b3d7a32560f206c74c; >= 4e7ebff69aed345f65f590a17b3119c0cb5eadde, < 985862be16c7e4da808c51f393d631fb60c0be5c; Linux 7.1
Fixed in: Linux 985862be16c7e4da808c51f393d631fb60c0be5c

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-98310 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 4e7ebff69aed345f65f590a17b3119c0cb5eadde, \< b7f4d2588b1342bb190c04b3d7a32560f206c74c; \>= 4e7ebff69aed345f65f590a17b3119c0cb5eadde, \< 985862be16c7e4da808c51f393d631fb60c0be5c; Linux 7.1.

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

Yes. Fixed in Linux 985862be16c7e4da808c51f393d631fb60c0be5c. Upgrade Linux to 985862be16c7e4da808c51f393d631fb60c0be5c or later.

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

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

- other: <https://git.kernel.org/stable/c/b7f4d2588b1342bb190c04b3d7a32560f206c74c>
- other: <https://git.kernel.org/stable/c/985862be16c7e4da808c51f393d631fb60c0be5c>

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

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