# CVE-2026-45947: drm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc()

- 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.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2026-05-27T12:18:04.117Z
- Modified: 2026-11-06T16:18:53.640Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

drm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc()

In amdgpu_acpi_enumerate_xcc(), if amdgpu_acpi_dev_init() returns -ENOMEM,
the function returns directly without releasing the allocated xcc_info,
resulting in a memory leak.

Fix this by ensuring that xcc_info is properly freed in the error paths.

Compile tested only. Issue found using a prototype static analysis tool
and code review.

(As written by CVE List.)

## Affected

- Linux Linux: from 4d5275ab0b18d17697392aafd93e206e6b9de647 before e87c73a80a12d337cf5f493c0956f6c2c9eafd80; from 4d5275ab0b18d17697392aafd93e206e6b9de647 before 18a7bbd11f17a7cd4c42fd5955d3675d68c692df; from 4d5275ab0b18d17697392aafd93e206e6b9de647 before d1370ef2ecf7d4df25e3e1e430cd191b1e7f8596; from 4d5275ab0b18d17697392aafd93e206e6b9de647 before 7e4b612fe7a960d610c20260c9ee220bddd1b215; from 4d5275ab0b18d17697392aafd93e206e6b9de647 before c9be63d565789b56ca7b0197e2cb78a3671f95a8; 6.5 (not affected: before 6.5; from 6.6.128 up to 6.6.*; from 6.12.75 up to 6.12.*; from 6.18.14 up to 6.18.*; from 6.19.4 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.5 before 6.6.128; from 6.7 before 6.12.75; from 6.13 before 6.18.14; from 6.19 before 6.19.4

## References

- <https://git.kernel.org/stable/c/e87c73a80a12d337cf5f493c0956f6c2c9eafd80> (patch)
- <https://git.kernel.org/stable/c/18a7bbd11f17a7cd4c42fd5955d3675d68c692df> (patch)
- <https://git.kernel.org/stable/c/d1370ef2ecf7d4df25e3e1e430cd191b1e7f8596> (patch)
- <https://git.kernel.org/stable/c/7e4b612fe7a960d610c20260c9ee220bddd1b215> (patch)
- <https://git.kernel.org/stable/c/c9be63d565789b56ca7b0197e2cb78a3671f95a8> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-45947 · Whole record: https://cve.day/CVE-2026-45947.json · Rebuilt by cve.day 2026-11-25T22:59:22.517Z
