CVE-2023-53864: drm/mxsfb: Disable overlay plane in mxsfb_plane_overlay_atomic_disable()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/mxsfb: Disable overlay plane in mxsfb_plane_overlay_atomic_disable()
When disabling overlay plane in mxsfb_plane_overlay_atomic_update(), overlay plane's framebuffer pointer is NULL. So, dereferencing it would cause a kernel Oops(NULL pointer dereferencing). Fix the issue by disabling overlay plane in mxsfb_plane_overlay_atomic_disable() instead.
The Linux kernel CVE team has assigned CVE-2023-53864 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.19 with commit cb285a5348e768dbc8edfe28cc2be5ec0c7e1a33 and fixed in 6.1.54 with commit 8bf2d4ca521d3acb57fc1607386e749b3cc92aaf Issue introduced in 5.19 with commit cb285a5348e768dbc8edfe28cc2be5ec0c7e1a33 and fixed in 6.5.4 with commit 0f98de0a11d29821d9448114178ddc1b1fe32a18 Issue introduced in 5.19 with commit cb285a5348e768dbc8edfe28cc2be5ec0c7e1a33 and fixed in 6.6 with commit aa656d48e871a1b062e1bbf9474d8b831c35074c
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-53864
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/mxsfb/mxsfb_kms.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/8bf2d4ca521d3acb57fc1607386e749b3cc92aaf https://git.kernel.org/stable/c/0f98de0a11d29821d9448114178ddc1b1fe32a18 https://git.kernel.org/stable/c/aa656d48e871a1b062e1bbf9474d8b831c35074c