CVE-2023-52861: drm: bridge: it66121: Fix invalid connector dereference
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm: bridge: it66121: Fix invalid connector dereference
Fix the NULL pointer dereference when no monitor is connected, and the sound card is opened from userspace.
Instead return an empty buffer (of zeroes) as the EDID information to the sound framework if there is no connector attached.
The Linux kernel CVE team has assigned CVE-2023-52861 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit e0fd83dbe924 and fixed in 6.1.63 with commit 2c80c4f0d284 Issue introduced in 5.19 with commit e0fd83dbe924 and fixed in 6.5.12 with commit 1669d7b21a66 Issue introduced in 5.19 with commit e0fd83dbe924 and fixed in 6.6.2 with commit 1374561a7cbc Issue introduced in 5.19 with commit e0fd83dbe924 and fixed in 6.7 with commit d0375f6858c4
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-52861
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/bridge/ite-it66121.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/2c80c4f0d2845645f41cbb7c9304c8efbdbd4331 https://git.kernel.org/stable/c/1669d7b21a664aa531856ce85b01359a376baebc https://git.kernel.org/stable/c/1374561a7cbc9a000b77bb0473bb2c19daf18d86 https://git.kernel.org/stable/c/d0375f6858c4ff7244b62b02eb5e93428e1916cd