drm/amdgpu: Fix memory leak in amdgpu_acpi_enumerate_xcc()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's amdgpu_acpi_enumerate_xcc() can leak allocated memory if amdgpu_acpi_dev_init() returns -ENOMEM. The input does not establish whether an attacker can trigger this condition, or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the amdgpu component should check whether their kernel includes the fix; affected versions were not provided.