# CVE-2025-21987: drm/amdgpu: init return value in amdgpu_ttm_clear_buffer

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-04-02T12:30:11.811Z
- Modified: 2026-06-17T08:44:46.763Z
- Weaknesses: CWE-908
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from a68c7eaa7a8ffdec9287ba1561a668d674c20a13 before d2c9625b0ade41f9917875d88173a0cc802b95fc; from a68c7eaa7a8ffdec9287ba1561a668d674c20a13 before 5bd98c2df4a0f2e2dcbdf563feb8d348406377b5; from a68c7eaa7a8ffdec9287ba1561a668d674c20a13 before d3c7059b6a8600fc62cd863f1ea203b8675e63e1; 6.10 (not affected: before 6.10; from 6.12.18 up to 6.12.*; from 6.13.6 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 6.10 before 6.12.18; from 6.13 before 6.13.6; 6.14

## References

- <https://git.kernel.org/stable/c/d2c9625b0ade41f9917875d88173a0cc802b95fc> (patch)
- <https://git.kernel.org/stable/c/5bd98c2df4a0f2e2dcbdf563feb8d348406377b5> (patch)
- <https://git.kernel.org/stable/c/d3c7059b6a8600fc62cd863f1ea203b8675e63e1> (patch)

## Sources

- CVE List: [CVE-2025-21987](https://www.cve.org/CVERecord?id=CVE-2025-21987), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-21987](https://nvd.nist.gov/vuln/detail/CVE-2025-21987), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-21987 · Whole record: https://cve.day/CVE-2025-21987.json · Rebuilt by cve.day 2026-11-25T22:58:55.951Z
