CVE-2023-53837: drm/msm: fix NULL-deref on snapshot tear down
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/msm: fix NULL-deref on snapshot tear down
In case of early initialisation errors and on platforms that do not use the DPU controller, the deinitilisation code can be called with the kms pointer set to NULL.
Patchwork: https://patchwork.freedesktop.org/patch/525099/
The Linux kernel CVE team has assigned CVE-2023-53837 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.14 with commit 98659487b845c05b6bed85d881713545db674c7c and fixed in 5.15.112 with commit 8f0e1ad5327a3499e7f09157cb714302a856e8a4 Issue introduced in 5.14 with commit 98659487b845c05b6bed85d881713545db674c7c and fixed in 6.1.29 with commit 16e0e6fb4511c004a5a0987d5bd75d9bcfb2b175 Issue introduced in 5.14 with commit 98659487b845c05b6bed85d881713545db674c7c and fixed in 6.2.16 with commit 8eca32b5b92a0be956a8934d7eddf4f70c107927 Issue introduced in 5.14 with commit 98659487b845c05b6bed85d881713545db674c7c and fixed in 6.3.3 with commit 19fe79ae816a7e3400df1eb4d27530bf9b8ae258 Issue introduced in 5.14 with commit 98659487b845c05b6bed85d881713545db674c7c and fixed in 6.4 with commit a465353b9250802f87b97123e33a17f51277f0b1
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-53837
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/msm/msm_drv.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/8f0e1ad5327a3499e7f09157cb714302a856e8a4 https://git.kernel.org/stable/c/16e0e6fb4511c004a5a0987d5bd75d9bcfb2b175 https://git.kernel.org/stable/c/8eca32b5b92a0be956a8934d7eddf4f70c107927 https://git.kernel.org/stable/c/19fe79ae816a7e3400df1eb4d27530bf9b8ae258 https://git.kernel.org/stable/c/a465353b9250802f87b97123e33a17f51277f0b1