# CVE-2023-52821: drm/panel: 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 16% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:26.888Z
- Modified: 2026-06-17T06:43:39.963Z
- 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/panel: fix a possible null pointer dereference

In versatile_panel_get_modes(), the return value of drm_mode_duplicate()
is assigned to mode, which will lead to a NULL pointer dereference
on failure of drm_mode_duplicate(). Add a check to avoid npd.

(As written by CVE List.)

## Affected

- Linux Linux: from f40f5b87d974655984ce545515e5c9e57b371b3c before c7dc0aca5962fb37dbea9769dd26ec37813faae1; from f40f5b87d974655984ce545515e5c9e57b371b3c before 2381f6b628b3214f07375e0adf5ce17093c31190; from f40f5b87d974655984ce545515e5c9e57b371b3c before 79813cd59398015867d51e6d7dcc14d287d4c402; from f40f5b87d974655984ce545515e5c9e57b371b3c before 4fa930ba046d20fc1899770396ee11e905fa96e4; from f40f5b87d974655984ce545515e5c9e57b371b3c before 8a9dd36fcb4f3906982b82593393578db4479992; from f40f5b87d974655984ce545515e5c9e57b371b3c before 924e5814d1f84e6fa5cb19c6eceb69f066225229; 4.17 (not affected: before 4.17; from 5.10.202 up to 5.10.*; 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.10.202; from 5.11 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/c7dc0aca5962fb37dbea9769dd26ec37813faae1> (patch)
- <https://git.kernel.org/stable/c/2381f6b628b3214f07375e0adf5ce17093c31190> (patch)
- <https://git.kernel.org/stable/c/79813cd59398015867d51e6d7dcc14d287d4c402> (patch)
- <https://git.kernel.org/stable/c/4fa930ba046d20fc1899770396ee11e905fa96e4> (patch)
- <https://git.kernel.org/stable/c/8a9dd36fcb4f3906982b82593393578db4479992> (patch)
- <https://git.kernel.org/stable/c/924e5814d1f84e6fa5cb19c6eceb69f066225229> (patch)

## Sources

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

---

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