CVE-2023-52821
JSON

5.5medium

drm/panel: fix a possible null pointer dereference

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.24% (higher than 16% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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.*
CVE List
linux linux_kernelbefore 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.3NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/panel: corrige una posible desreferencia del puntero null. En versatile_panel_get_modes(), el valor de retorno de drm_mode_duplicate() se asigna al modo, lo que conducirá a una desreferencia del puntero NULL en caso de falla de drm_mode_duplicate(). Agregue una marca para evitar npd.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-52821 changed 2026-05-11CVE Terms of Use
NVDCVE-2023-52821 changed 2026-06-17Public domain