CVE-2025-38511 drm/xe/pf: Clear all LMTT pages on alloc
A malicious virtual function could read stale memory from the physical function or other virtual functions due to uncleared LMTT pages in the Linux kernel.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-38511?
CVE-2025-38511 is a high-severity vulnerability in Linux kernel, published on 16 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
drm/xe/pf: Clear all LMTT pages on alloc
Our LMEM buffer objects are not cleared by default on alloc and during VF provisioning we only setup LMTT PTEs for the actually provisioned LMEM range. But beyond that valid range we might leave some stale data that could either point to some other VFs allocations or even to the PF pages.
Explicitly clear all new LMTT page to avoid the risk that a malicious VF would try to exploit that gap.
While around add asserts to catch any undesired PTE overwrites and low-level debug traces to track LMTT PT life-cycle.
(cherry picked from commit 3fae6918a3e27cce20ded2551f863fb05d4bef8d)
Which versions are affected by CVE-2025-38511?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-38511?
Apply the vendor's patch.
Is CVE-2025-38511 being exploited?
There is no known exploitation of CVE-2025-38511 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-38511, DEBIAN-CVE-2025-38511, GHSA-59vp-pw3x-2g3w, ROOT-OS-DEBIAN-13-CVE-2025-38511, ROOT-OS-UBUNTU-2404-CVE-2025-38511, UBUNTU-CVE-2025-38511.