CVE-2025-21987 drm/amdgpu: init return value in amdgpu_ttm_clear_buffer
An uninitialized variable in the AMD GPU driver may leak kernel memory contents to userspace, requiring a kernel patch.
- 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-21987?
CVE-2025-21987 is a medium-severity vulnerability in Linux kernel, published on 2 Apr 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/amdgpu: init return value in amdgpu_ttm_clear_buffer
Otherwise an uninitialized value can be returned if amdgpu_res_cleared returns true for all regions.
Possibly closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3812
(cherry picked from commit 7c62aacc3b452f73a1284198c81551035fac6d71)
Weakness: CWE-908
Which versions are affected by CVE-2025-21987?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21987?
Apply the vendor's patch.
Is CVE-2025-21987 being exploited?
There is no known exploitation of CVE-2025-21987 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2025-21987, DEBIAN-CVE-2025-21987, GHSA-f332-pxgf-g3gr, UBUNTU-CVE-2025-21987.