CVE-2023-52815Published May 21, 2024 · May 21Updated Oct 28
drm/amdgpu/vkms: fix a possible null pointer dereference
Linux
Medium5.5Fix available
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/vkms: fix a possible null pointer dereference
In amdgpu_vkms_conn_get_modes(), the return value of drm_cvt_mode() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_cvt_mode(). Add a check to avoid null pointer dereference.
From the CVE record · Linux
The Linux kernel's amdgpu VKMS code can dereference a null pointer in amdgpu_vkms_conn_get_modes() if drm_cvt_mode() fails. The input does not specify how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running Linux kernels with amdgpu VKMS should check their versions; affected versions were not provided.