Skip to contentSkip to conversation

CVE-2023-53849: drm/msm: fix workqueue leak on bind errors

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 9, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

drm/msm: fix workqueue leak on bind errors

Make sure to destroy the workqueue also in case of early errors during bind (e.g. a subcomponent failing to bind).

Since commit c3b790ea07a1 ("drm: Manage drm_mode_config_init with drmm_") the mode config will be freed when the drm device is released also when using the legacy interface, but add an explicit cleanup for consistency and to facilitate backporting.

Patchwork: https://patchwork.freedesktop.org/patch/525093/

The Linux kernel CVE team has assigned CVE-2023-53849 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.15 with commit 060530f1ea6740eb767085008d183f89ccdd289c and fixed in 6.1.29 with commit 6e1476225ec02eeebc4b79f793506f80bc4bca8f
	Issue introduced in 3.15 with commit 060530f1ea6740eb767085008d183f89ccdd289c and fixed in 6.2.16 with commit 28e34db2f3e0130872e2384dd9df9f82bd89e967
	Issue introduced in 3.15 with commit 060530f1ea6740eb767085008d183f89ccdd289c and fixed in 6.3.3 with commit 8551c4b7c8ffb42f759547e5c39da5980abf2432
	Issue introduced in 3.15 with commit 060530f1ea6740eb767085008d183f89ccdd289c and fixed in 6.4 with commit a75b49db6529b2af049eafd938fae888451c3685
	Issue introduced in 3.14.41 with commit 3e796097404e325fa8d4f48a2af61f2e01e3ef02

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-53849

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/6e1476225ec02eeebc4b79f793506f80bc4bca8f
	https://git.kernel.org/stable/c/28e34db2f3e0130872e2384dd9df9f82bd89e967
	https://git.kernel.org/stable/c/8551c4b7c8ffb42f759547e5c39da5980abf2432
	https://git.kernel.org/stable/c/a75b49db6529b2af049eafd938fae888451c3685