CVE-2023-53562: drm/msm: fix vram leak on bind errors
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/msm: fix vram leak on bind errors
Make sure to release the VRAM buffer also in a case a subcomponent fails to bind.
Patchwork: https://patchwork.freedesktop.org/patch/525094/
The Linux kernel CVE team has assigned CVE-2023-53562 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.11 with commit d863f0c7b536288e2bd40cbc01c10465dd226b11 and fixed in 6.1.29 with commit 544711591a67a6da4d9f0f70ba3c805eb2548729 Issue introduced in 5.11 with commit d863f0c7b536288e2bd40cbc01c10465dd226b11 and fixed in 6.2.16 with commit c02e8c1c5b3eb0b6193946194ac280f58f48b3b5 Issue introduced in 5.11 with commit d863f0c7b536288e2bd40cbc01c10465dd226b11 and fixed in 6.3.3 with commit e3401e07ba98a94b978164b7e873c25e5fc82b4b Issue introduced in 5.11 with commit d863f0c7b536288e2bd40cbc01c10465dd226b11 and fixed in 6.4 with commit 60d476af96015891c7959f30838ae7a9749932bf Issue introduced in 4.19.169 with commit 0680689c609c7b2a15e52a9b9ca58fc2a04b2eee Issue introduced in 5.4.91 with commit ba74e0f222c7394eae16cbe91233aa34ba5122ea Issue introduced in 5.10.9 with commit d565c626b4e14864be4f6886d73e86f3338f7bac
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-53562
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/544711591a67a6da4d9f0f70ba3c805eb2548729 https://git.kernel.org/stable/c/c02e8c1c5b3eb0b6193946194ac280f58f48b3b5 https://git.kernel.org/stable/c/e3401e07ba98a94b978164b7e873c25e5fc82b4b https://git.kernel.org/stable/c/60d476af96015891c7959f30838ae7a9749932bf