CVE-2023-53085: drm/edid: fix info leak when failing to get panel id
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/edid: fix info leak when failing to get panel id
Make sure to clear the transfer buffer before fetching the EDID to avoid leaking slab data to the logs on errors that leave the buffer unchanged.
The Linux kernel CVE team has assigned CVE-2023-53085 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 69c7717c20cc87105b8b54ba43d12ca4e432a1a5 and fixed in 6.2.8 with commit 598c42c78919117dc0d235ae22d17ad642377483 Issue introduced in 6.2 with commit 69c7717c20cc87105b8b54ba43d12ca4e432a1a5 and fixed in 6.3 with commit 4d8457fe0eb9c80ff7795cf8a30962128b71d853
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2023-53085
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/gpu/drm/drm_edid.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/598c42c78919117dc0d235ae22d17ad642377483 https://git.kernel.org/stable/c/4d8457fe0eb9c80ff7795cf8a30962128b71d853