# CVE-2026-99000: drm/xe: Fix shrinker accounting double-subtraction on nested external pins

> 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.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-23T12:20:20.753Z
- **Modified:** 2026-10-23T13:17:22.297Z

## Who should check

- Anyone running Linux \>= 00c8efc3180f0cf919b53980e969430657e01685, \< 993c952e6832ad0aa4be82e11f0760b1f532090a; \>= 00c8efc3180f0cf919b53980e969430657e01685, \< ab39bc55cf08208b8511b1c09926b1b646a8befc; \>= 00c8efc3180f0cf919b53980e969430657e01685, \< 83d5acca1f4f6132038ea88c72c5844f62e42d44
- Anyone running Linux 6.15

## Description

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

drm/xe: Fix shrinker accounting double-subtraction on nested external pins

xe\_bo\_pin\_external() and xe\_bo\_unpin\_external() support nested pins,
since the underlying ttm\_bo\_pin()/ttm\_bo\_unpin() maintain a pin\_count
refcount rather than a boolean. However, the shrinker accounting calls
xe\_ttm\_tt\_account\_subtract() and xe\_ttm\_tt\_account\_add() are invoked
unconditionally on every pin\_external()/unpin\_external() call, instead
of only on the transition into and out of the pinned state.

An external BO (dma-buf) can be pinned more than once while already
pinned, for example when it has multiple attachments/importers, each
independently calling xe\_bo\_pin\_external(). Each such nested pin
subtracts the BO's pages from the shrinker's accounting again, even
though the BO's pages were already removed from consideration by the
first pin. Symmetrically, each nested unpin adds them back again
before the BO is actually unpinned. This desynchronizes the
shrinker's page and object counts from reality, and since they are
declared as signed long but interpreted as unsigned long in
xe\_shrinker\_count(), the underflow can turn into an enormous
shrinkable/purgeable page count, causing the shrinker to be invoked
excessively under memory pressure.

Guard the accounting calls with the same pin-count transition checks
already used to guard the pinned\_link list maintenance, so accounting
is only updated on the outermost pin and the final unpin.

While centralizing this logic into xe\_bo\_account\_pin()/
xe\_bo\_account\_unpin(), also close a second, related accounting gap
affecting imported dma-bufs. For an imported bo's ttm\_tt, xe's
ttm\_tt\_populate hook (xe\_ttm\_tt\_populate()) early-returns without
calling xe\_ttm\_tt\_account\_add(), since TTM\_TT\_FLAG\_EXTERNAL is set
without TTM\_TT\_FLAG\_EXTERNAL\_MAPPABLE. However, TTM core's
ttm\_tt\_populate() wrapper unconditionally marks the tt as populated
on driver-hook success, so ttm\_tt\_is\_populated() still reports true
for it. xe\_bo\_account\_pin()/xe\_bo\_account\_unpin() trusted
ttm\_tt\_is\_populated() as a proxy for "these pages are accounted for
by the shrinker", and would subtract/add pages for such a tt that
were never added in the first place, again underflowing the
shrinker's counts. This is reachable today via xe\_bo\_pin\_external(),
and would have become newly reachable via the fb-pin path once this
patch routes \_\_xe\_pin\_fb\_vma() through xe\_bo\_pin\_account() below, so
fix it here rather than in a later patch, to avoid a commit in this
series that introduces the regression before fixing it. Skip the
accounting for imported bos, using the same EXTERNAL &&
!EXTERNAL\_MAPPABLE test xe\_ttm\_tt\_populate()/xe\_ttm\_tt\_unpopulate()
use to decide whether to act, via a new xe\_ttm\_bo\_is\_imported()
helper (hoisted up from its only prior use site).

v2:
- Fix the critical issue caught by Sashiko AI review: the pin-count
  transition check introduced here was still bypassed by the fb-pin
  path (\_\_xe\_pin\_fb\_vma()/\_\_xe\_unpin\_fb\_vma()), which could leave a
  stale pinned\_link entry and a permanent shrinker accounting leak
  when the fb-unpin performed the true last unpin. Addressed in a
  separate follow-up patch in this series rather than folded in here,
  since it is a distinct bug with its own Fixes: tag.
- Drop the unneeded local "last\_unpin" variable in
  xe\_bo\_unpin\_external(), restoring the original inline
  bo-\>ttm.pin\_count == 1 check; it was a no-op rename not used by any
  of the new accounting helpers, and was going to be deleted again by
  the follow-up patch anyway.

v3:
- Exclude imported dma-bufs from the pin/unpin shrinker accounting,
  fixing another underflow caught by Sashiko AI review.
- Add a short comment on the backup-object pin site noting it's
  already populated/accounted at pin time, addressing (as a
  false-positive clarification, no code fix needed) a separate
  Medium-severity accounting-leak concern also caught by Sashiko AI
  
---truncated---

## Affected and fixed versions

- Linux: \>= 00c8efc3180f0cf919b53980e969430657e01685, \< 993c952e6832ad0aa4be82e11f0760b1f532090a; \>= 00c8efc3180f0cf919b53980e969430657e01685, \< ab39bc55cf08208b8511b1c09926b1b646a8befc; \>= 00c8efc3180f0cf919b53980e969430657e01685, \< 83d5acca1f4f6132038ea88c72c5844f62e42d44 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

- Upgrade Linux to 83d5acca1f4f6132038ea88c72c5844f62e42d44 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-99000. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99000.md
Affected: Linux >= 00c8efc3180f0cf919b53980e969430657e01685, < 993c952e6832ad0aa4be82e11f0760b1f532090a; >= 00c8efc3180f0cf919b53980e969430657e01685, < ab39bc55cf08208b8511b1c09926b1b646a8befc; >= 00c8efc3180f0cf919b53980e969430657e01685, < 83d5acca1f4f6132038ea88c72c5844f62e42d44; Linux 6.15
Fixed in: Linux 993c952e6832ad0aa4be82e11f0760b1f532090a, Linux 83d5acca1f4f6132038ea88c72c5844f62e42d44

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 00c8efc3180f0cf919b53980e969430657e01685, \< 993c952e6832ad0aa4be82e11f0760b1f532090a; \>= 00c8efc3180f0cf919b53980e969430657e01685, \< ab39bc55cf08208b8511b1c09926b1b646a8befc; \>= 00c8efc3180f0cf919b53980e969430657e01685, \< 83d5acca1f4f6132038ea88c72c5844f62e42d44; Linux 6.15.

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

Yes. Fixed in Linux 993c952e6832ad0aa4be82e11f0760b1f532090a, Linux 83d5acca1f4f6132038ea88c72c5844f62e42d44. Upgrade Linux to 83d5acca1f4f6132038ea88c72c5844f62e42d44 or later.

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

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/993c952e6832ad0aa4be82e11f0760b1f532090a>
- other: <https://git.kernel.org/stable/c/ab39bc55cf08208b8511b1c09926b1b646a8befc>
- other: <https://git.kernel.org/stable/c/83d5acca1f4f6132038ea88c72c5844f62e42d44>

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

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