# CVE-2023-52815: drm/amdgpu/vkms: fix a possible null pointer dereference

- 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.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:22.918Z
- Modified: 2026-06-17T06:43:39.020Z
- Weaknesses: CWE-476
- 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/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.

(As written by CVE List.)

## Affected

- Linux Linux: from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before eaa03ea366c85ae3cb69c8d4bbc67c8bc2167a27; from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before 33fb1a555354bd593f785935ddcb5d9dd4d3847f; from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before 8c6c85a073768df68c1a3fea143d013a38c66d34; from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before 70f831f21155c692bb336c434936fd6f24f3f81a; from d38ceaf99ed015f2a0b9af3499791bd3a3daae21 before cd90511557fdfb394bb4ac4c3b539b007383914c; 4.2 (not affected: before 4.2; from 5.15.140 up to 5.15.*; from 6.1.64 up to 6.1.*; from 6.5.13 up to 6.5.*; from 6.6.3 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: before 5.15.140; from 5.16 before 6.1.64; from 6.2 before 6.5.13; from 6.6 before 6.6.3

## References

- <https://git.kernel.org/stable/c/eaa03ea366c85ae3cb69c8d4bbc67c8bc2167a27> (patch)
- <https://git.kernel.org/stable/c/33fb1a555354bd593f785935ddcb5d9dd4d3847f> (patch)
- <https://git.kernel.org/stable/c/8c6c85a073768df68c1a3fea143d013a38c66d34> (patch)
- <https://git.kernel.org/stable/c/70f831f21155c692bb336c434936fd6f24f3f81a> (patch)
- <https://git.kernel.org/stable/c/cd90511557fdfb394bb4ac4c3b539b007383914c> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-52815 · Whole record: https://cve.day/CVE-2023-52815.json · Rebuilt by cve.day 2026-11-25T22:58:34.034Z
