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

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.

Classification

CVE ID: CVE-2023-52821

Affected Products

Vendor: Linux

Product: Linux

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.04% (probability of being exploited)

EPSS Percentile: 5.08% (scored less or equal to compared to others)

EPSS Date: 2025-02-04 (when was this score calculated)

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

Timeline