CVE-2025-21987

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-21987
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21987.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21987
Downstream
Related
Published
2025-04-02T12:30:11Z
Modified
2025-10-10T08:07:41.657979Z
Summary
drm/amdgpu: init return value in amdgpu_ttm_clear_buffer
Details

In the Linux kernel, the following vulnerability has been resolved:

drm/amdgpu: init return value in amdgputtmclear_buffer

Otherwise an uninitialized value can be returned if amdgpurescleared returns true for all regions.

Possibly closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3812

(cherry picked from commit 7c62aacc3b452f73a1284198c81551035fac6d71)

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a68c7eaa7a8ffdec9287ba1561a668d674c20a13
Fixed
d2c9625b0ade41f9917875d88173a0cc802b95fc
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a68c7eaa7a8ffdec9287ba1561a668d674c20a13
Fixed
5bd98c2df4a0f2e2dcbdf563feb8d348406377b5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a68c7eaa7a8ffdec9287ba1561a668d674c20a13
Fixed
d3c7059b6a8600fc62cd863f1ea203b8675e63e1

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.11
v6.11-rc1
v6.11-rc2
v6.11-rc3
v6.11-rc4
v6.11-rc5
v6.11-rc6
v6.11-rc7
v6.12
v6.12-rc1
v6.12-rc2
v6.12-rc3
v6.12-rc4
v6.12-rc5
v6.12-rc6
v6.12-rc7
v6.12.1
v6.12.10
v6.12.11
v6.12.12
v6.12.13
v6.12.14
v6.12.15
v6.12.16
v6.12.17
v6.12.2
v6.12.3
v6.12.4
v6.12.5
v6.12.6
v6.12.7
v6.12.8
v6.12.9
v6.13
v6.13-rc1
v6.13-rc2
v6.13-rc3
v6.13-rc4
v6.13-rc5
v6.13-rc6
v6.13-rc7
v6.13.1
v6.13.2
v6.13.3
v6.13.4
v6.13.5
v6.14-rc1
v6.14-rc2
v6.14-rc3
v6.14-rc4
v6.9
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.10.0
Fixed
6.12.18
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.6