# CVE-2023-52821: drm/panel: fix a possible null pointer dereference

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-21 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2023-52821, DEBIAN-CVE-2023-52821
- Record: https://cvemate.com/vulnerability/CVE-2023-52821 · JSON: https://cvemate.com/vulnerability/CVE-2023-52821/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.241%, percentile 16.244%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 116)

- debian linux (Debian): \< 6.1.64-1 \| \< 6.6.8-1
- ubuntu linux (Ubuntu): \< 5.4.0-204.224 \| \< 5.15.0-100.110
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 5.4.0-1137.147 \| \< 5.15.0-1056.61
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1056.61~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1137.147~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 5.4.0-1137.147+fips1 \| All versions (No fix recorded) \| \< 5.15.0-1056.61+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1142.149 \| \< 5.15.0-1058.66
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.15 (Ubuntu): \< 5.15.0-1058.66~20.04.2
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/c7dc0aca5962fb37dbea9769dd26ec37813faae1>
- <https://git.kernel.org/stable/c/2381f6b628b3214f07375e0adf5ce17093c31190>
- <https://git.kernel.org/stable/c/79813cd59398015867d51e6d7dcc14d287d4c402>
- <https://git.kernel.org/stable/c/4fa930ba046d20fc1899770396ee11e905fa96e4>
- <https://git.kernel.org/stable/c/8a9dd36fcb4f3906982b82593393578db4479992>
- <https://git.kernel.org/stable/c/924e5814d1f84e6fa5cb19c6eceb69f066225229>
- <https://ubuntu.com/security/CVE-2023-52821>
- <https://www.cve.org/CVERecord?id=CVE-2023-52821>
- <https://git.kernel.org/linus/924e5814d1f84e6fa5cb19c6eceb69f066225229>
- <https://ubuntu.com/security/notices/USN-7173-1>
- <https://ubuntu.com/security/notices/USN-7173-2>
- <https://ubuntu.com/security/notices/USN-7195-1>
- <https://ubuntu.com/security/notices/USN-7195-2>
- <https://ubuntu.com/security/notices/USN-7173-3>
- <https://ubuntu.com/security/notices/USN-7413-1>
- <https://security-tracker.debian.org/tracker/CVE-2023-52821>

---

Data as of 2026-12-05T04:43:53.702Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
