# CVE-2025-37852: drm/amdgpu: handle amdgpu_cgs_create_device() errors in amd_powerplay_create()

- 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.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-05-09T06:41:59.094Z
- Modified: 2026-06-17T09:15:34.077Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

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

drm/amdgpu: handle amdgpu_cgs_create_device() errors in amd_powerplay_create()

Add error handling to propagate amdgpu_cgs_create_device() failures
to the caller. When amdgpu_cgs_create_device() fails, release hwmgr
and return -ENOMEM to prevent null pointer dereference.

[v1]->[v2]: Change error code from -EINVAL to -ENOMEM. Free hwmgr.

(As written by CVE List.)

## Affected

- Linux Linux: from b905090d2bae2e6189511714a7b88691b439c5a1 before 55ef52c30c3e747f145a64de96192e37a8fed670; from b905090d2bae2e6189511714a7b88691b439c5a1 before f8693e1bae9c08233a2f535c3f412e157df32b33; from b905090d2bae2e6189511714a7b88691b439c5a1 before dc4380f34613eaae997b3ed263bd1cb3d0fd0075; from b905090d2bae2e6189511714a7b88691b439c5a1 before 22ea19cc089013b55c240134dbb2797700ff5a6a; from b905090d2bae2e6189511714a7b88691b439c5a1 before b784734811438f11533e2fb9e0deb327844bdb56; from b905090d2bae2e6189511714a7b88691b439c5a1 before 1435e895d4fc967d64e9f5bf81e992ac32f5ac76; 4.17 (not affected: before 4.17; from 6.1.135 up to 6.1.*; from 6.6.88 up to 6.6.*; from 6.12.24 up to 6.12.*; from 6.13.12 up to 6.13.*; from 6.14.3 up to 6.14.*; from 6.15 up to *)
- linux linux_kernel: before 6.1.135; from 6.2 before 6.6.88; from 6.7 before 6.12.24; from 6.13 before 6.13.12; from 6.14 before 6.14.3
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/55ef52c30c3e747f145a64de96192e37a8fed670> (patch)
- <https://git.kernel.org/stable/c/f8693e1bae9c08233a2f535c3f412e157df32b33> (patch)
- <https://git.kernel.org/stable/c/dc4380f34613eaae997b3ed263bd1cb3d0fd0075> (patch)
- <https://git.kernel.org/stable/c/22ea19cc089013b55c240134dbb2797700ff5a6a> (patch)
- <https://git.kernel.org/stable/c/b784734811438f11533e2fb9e0deb327844bdb56> (patch)
- <https://git.kernel.org/stable/c/1435e895d4fc967d64e9f5bf81e992ac32f5ac76> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html> (mailing-list)

## Sources

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

---

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