CVE-2026-90047

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/09/2026
Last modified:
19/10/2026

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> drm/xe: Don&amp;#39;t hand out the flat CCS storage as usable VRAM<br /> <br /> get_flat_ccs_offset() reads the base of the flat CCS storage from the<br /> hardware, scales it by the number of enabled L3 nodes, and rounds the<br /> result up to 128K. Everything below that offset is then handed to the<br /> VRAM allocator as usable memory.<br /> <br /> Rounding a limit that means "usable memory ends here" upwards publishes<br /> whatever lies between the real base and the rounded one as free memory,<br /> and that memory belongs to the compression hardware. The scaled value<br /> has no reason to be 128K aligned, and on a Battlemage G21 with 16 GiB it<br /> is not:<br /> <br /> flat CCS base: raw 0x3fafff800, rounded 0x3fb000000<br /> <br /> so the last 2 KiB of page 0x3fafff000 is CCS storage, in the allocator&amp;#39;s<br /> pool. Whatever is allocated there gets that tail overwritten by the<br /> compression hardware, which needs no page-table entry, no buffer object<br /> and no GPU submission to do it, and does it before userspace exists.<br /> <br /> On this machine a Mesa VM&amp;#39;s level-3 page table landed on that page on<br /> every cold boot. It lost the entry covering the compositor&amp;#39;s<br /> batch-buffer heap, so the compositor&amp;#39;s first submission faulted fetching<br /> its batch and gdm restarted it forever: a black screen on an otherwise<br /> working machine. Restarting gdm cleared it because the next VM&amp;#39;s page<br /> tables were allocated somewhere else.<br /> <br /> Round down instead, to the page size the allocator works in. On this<br /> machine that excludes exactly one page.<br /> <br /> Reading the reserved page afterwards shows what had been writing it:<br /> <br /> [369] 0xcccc000000000000<br /> [371] 0xcc77000000000000<br /> [373] 0xcccc000000000000<br /> [375] 0xcc77000000000000<br /> <br /> compression metadata, two bytes per sixteen, sitting where the driver<br /> used to hand out memory.<br /> <br /> The assertion that should have caught this compares the offset against<br /> GSMBASE - ccs_size for equality. That value is 128K aligned, so it<br /> agrees with the rounded-up offset precisely when the base is not<br /> aligned - the check cannot fail in the case it exists to catch, and is<br /> compiled out unless CONFIG_DRM_XE_DEBUG is set. Replace it with one<br /> that can fail: CCS storage must not run into GSM.<br /> <br /> [ And this was a debug session from hell, enormously helped by an AI<br /> doing much of the grunt-work.<br /> <br /> I&amp;#39;d like to call it my tireless helper, but the AI several times<br /> stated flat out that this was impossible and unsolvable and that we<br /> should just write a report about it.<br /> <br /> I suspect those things have been trained by people who may not be<br /> quite as stubborn as I am.<br /> <br /> But while the AI was ready to give up several times, it did keep<br /> adding debug code and analyzing it faithfully when I pushed. So credit<br /> where credit is due and I let the AI write the commit message above.<br /> <br /> This is basically a one-liner fixing a bogus "round_up()" to a<br /> "round_down()", but there were 24 patches adding more and more debug<br /> information to this, and 18 kernel boot to finally narrow it down to<br /> this. - Linus ]