drm/amdgpu: handle amdgpu_cgs_create_device() errors in amd_powerplay_create()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ b905090d2bae2e6189511714a7b88691b439c5a1 · < 1435e895d4fc967d64e9f5bf81e992ac32f5ac76| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's amd_powerplay_create() did not handle failures from amdgpu_cgs_create_device(), which could lead to a null pointer dereference. The input does not specify how an attacker could trigger the failure, whether authentication or local access is needed, or whether user interaction is required.
Engineers running Linux kernels with the affected drm/amdgpu code should check their versions; affected versions were not provided.