# CVE-2026-90047: drm/xe: Don't hand out the flat CCS storage as usable VRAM

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.17% (percentile 4, 2026-11-26)
- **Published:** 2026-09-16T10:33:43.851Z
- **Modified:** 2026-10-19T09:18:53.020Z

## Who should check

- Anyone running Linux \>= 37173392741c425191b959acb3adf70c9a4610c0, \< c96477e0cabf55bfbdf078078e9de1c8024f8060; \>= 37173392741c425191b959acb3adf70c9a4610c0, \< 348c3db4f1520d36764ac8cae2492f50599714f6; \>= 37173392741c425191b959acb3adf70c9a4610c0, \< 818bebeb63dd6bf5f4e07e145f6cdbace520a34c
- Anyone running Linux 6.13

## Description

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

drm/xe: Don't hand out the flat CCS storage as usable VRAM

get\_flat\_ccs\_offset() reads the base of the flat CCS storage from the
hardware, scales it by the number of enabled L3 nodes, and rounds the
result up to 128K.  Everything below that offset is then handed to the
VRAM allocator as usable memory.

Rounding a limit that means "usable memory ends here" upwards publishes
whatever lies between the real base and the rounded one as free memory,
and that memory belongs to the compression hardware.  The scaled value
has no reason to be 128K aligned, and on a Battlemage G21 with 16 GiB it
is not:

	flat CCS base: raw 0x3fafff800, rounded 0x3fb000000

so the last 2 KiB of page 0x3fafff000 is CCS storage, in the allocator's
pool.  Whatever is allocated there gets that tail overwritten by the
compression hardware, which needs no page-table entry, no buffer object
and no GPU submission to do it, and does it before userspace exists.

On this machine a Mesa VM's level-3 page table landed on that page on
every cold boot.  It lost the entry covering the compositor's
batch-buffer heap, so the compositor's first submission faulted fetching
its batch and gdm restarted it forever: a black screen on an otherwise
working machine.  Restarting gdm cleared it because the next VM's page
tables were allocated somewhere else.

Round down instead, to the page size the allocator works in.  On this
machine that excludes exactly one page.

Reading the reserved page afterwards shows what had been writing it:

	\[369\] 0xcccc000000000000
	\[371\] 0xcc77000000000000
	\[373\] 0xcccc000000000000
	\[375\] 0xcc77000000000000

compression metadata, two bytes per sixteen, sitting where the driver
used to hand out memory.

The assertion that should have caught this compares the offset against
GSMBASE - ccs\_size for equality.  That value is 128K aligned, so it
agrees with the rounded-up offset precisely when the base is not
aligned - the check cannot fail in the case it exists to catch, and is
compiled out unless CONFIG\_DRM\_XE\_DEBUG is set.  Replace it with one
that can fail: CCS storage must not run into GSM.

\[ And this was a debug session from hell, enormously helped by an AI
  doing much of the grunt-work.

  I'd like to call it my tireless helper, but the AI several times
  stated flat out that this was impossible and unsolvable and that we
  should just write a report about it.

  I suspect those things have been trained by people who may not be
  quite as stubborn as I am.

  But while the AI was ready to give up several times, it did keep
  adding debug code and analyzing it faithfully when I pushed. So credit
  where credit is due and I let the AI write the commit message above.

  This is basically a one-liner fixing a bogus "round\_up()" to a
  "round\_down()", but there were 24 patches adding more and more debug
  information to this, and 18 kernel boot to finally narrow it down to
  this.   - Linus \]

## Affected and fixed versions

- Linux: \>= 37173392741c425191b959acb3adf70c9a4610c0, \< c96477e0cabf55bfbdf078078e9de1c8024f8060; \>= 37173392741c425191b959acb3adf70c9a4610c0, \< 348c3db4f1520d36764ac8cae2492f50599714f6; \>= 37173392741c425191b959acb3adf70c9a4610c0, \< 818bebeb63dd6bf5f4e07e145f6cdbace520a34c (cvelist)
- Linux: 6.13 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-90047.md
Affected: Linux >= 37173392741c425191b959acb3adf70c9a4610c0, < c96477e0cabf55bfbdf078078e9de1c8024f8060; >= 37173392741c425191b959acb3adf70c9a4610c0, < 348c3db4f1520d36764ac8cae2492f50599714f6; >= 37173392741c425191b959acb3adf70c9a4610c0, < 818bebeb63dd6bf5f4e07e145f6cdbace520a34c; Linux 6.13
Fixed in: Linux 348c3db4f1520d36764ac8cae2492f50599714f6, Linux 818bebeb63dd6bf5f4e07e145f6cdbace520a34c

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 37173392741c425191b959acb3adf70c9a4610c0, \< c96477e0cabf55bfbdf078078e9de1c8024f8060; \>= 37173392741c425191b959acb3adf70c9a4610c0, \< 348c3db4f1520d36764ac8cae2492f50599714f6; \>= 37173392741c425191b959acb3adf70c9a4610c0, \< 818bebeb63dd6bf5f4e07e145f6cdbace520a34c; Linux 6.13.

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

Yes. Fixed in Linux 348c3db4f1520d36764ac8cae2492f50599714f6, Linux 818bebeb63dd6bf5f4e07e145f6cdbace520a34c. Upgrade Linux to 818bebeb63dd6bf5f4e07e145f6cdbace520a34c or later.

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

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/c96477e0cabf55bfbdf078078e9de1c8024f8060>
- other: <https://git.kernel.org/stable/c/348c3db4f1520d36764ac8cae2492f50599714f6>
- other: <https://git.kernel.org/stable/c/818bebeb63dd6bf5f4e07e145f6cdbace520a34c>

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

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