Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2254D36CE10 for ; Tue, 16 Sep 2025 16:15:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758039326; cv=none; b=eVxnjsRPIiPYmj27ZK4lJd2GNj2rhjeQ1+urLSOViV1n6axDJ+7ratowJqpJorQ+eSx3Nt+t/FhFegn7rcWx38KDLIiREe54u0Fp8gqoafG2tqOAMv1sBx4Ntrcx4MsucN6ZpGV2U0UYnzD7H1O1JSuESj5zpsdzZa7laFPGmyc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758039326; c=relaxed/simple; bh=l+VGiUQbJG7c7vLcfaSvxsgVvKKZjtVmaDGV7mQkXRs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EzU74O0npXjzHtVJ2VE2316nbTAZl73vBhm8ut2VQduxwNtEJf1vNUZM9CdWvBa8TRHMj21lfDdi7jikuDXzpy5bd+J0wn4x6vlWv9W04lTCuPgmROmDTma0g6WiAdP28wBDXtFevTDIr1JXeIa1qJF0J7KCgeyJl1WSr/3qqaE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f955XoMk; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="f955XoMk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68B7EC4CEF0; Tue, 16 Sep 2025 16:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758039326; bh=l+VGiUQbJG7c7vLcfaSvxsgVvKKZjtVmaDGV7mQkXRs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=f955XoMkneRnj1H7kOS1hqlteXhZLMjcrwxDBzrYr1UPKJe8gXhPDroYgv3UkXY+j BJ/TDgjnpPBDjVl78/7Z+K2Pd8QFowdzjZpxg7upFPmcKY8D26kBJ2+BCRZc+U12Im n58tl1RKJPlybtmzUv0FeNHfmCNJjEr8PVZR/jZ4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53316: drm/msm/dp: Free resources after unregistering them Date: Tue, 16 Sep 2025 18:12:01 +0200 Message-ID: <2025091643-CVE-2023-53316-fb3d@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3098; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=q+u4X4WqWfLu911o//+/GazeS2lqz6ucN6VRdpQ5Anc=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkne+xbnJ0NlARYilf3Zz3ff3jaPSe1vTdUwlUf/7v2/ t3lBS1uHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRRn+G+ZV57As//9vduZ3L Lf4eZ9BkLpfO2wzz/VK8jgTVqH+5aPF5z5RoruclU/cuBwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/msm/dp: Free resources after unregistering them The DP component's unbind operation walks through the submodules to unregister and clean things up. But if the unbind happens because the DP controller itself is being removed, all the memory for those submodules has just been freed. Change the order of these operations to avoid the many use-after-free that otherwise happens in this code path. Patchwork: https://patchwork.freedesktop.org/patch/542166/ The Linux kernel CVE team has assigned CVE-2023-53316 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit c943b4948b5848fc0e07f875edbd35a973879e22 and fixed in 5.10.188 with commit c67a55f7cc8d767d624235bf1bcd0947e56abe0f Issue introduced in 5.10 with commit c943b4948b5848fc0e07f875edbd35a973879e22 and fixed in 5.15.121 with commit 3c3f3d35f5e05c468b048eb42a4f8c62c6655692 Issue introduced in 5.10 with commit c943b4948b5848fc0e07f875edbd35a973879e22 and fixed in 6.1.39 with commit 4e9f1a2367aea7d61f6781213e25313cd983b0d7 Issue introduced in 5.10 with commit c943b4948b5848fc0e07f875edbd35a973879e22 and fixed in 6.3.13 with commit 5c3278db06e332fdc14f3f297499fb88ded264d2 Issue introduced in 5.10 with commit c943b4948b5848fc0e07f875edbd35a973879e22 and fixed in 6.4.4 with commit ca47d0dc00968358c136a1847cfed550cedfd1b5 Issue introduced in 5.10 with commit c943b4948b5848fc0e07f875edbd35a973879e22 and fixed in 6.5 with commit fa0048a4b1fa7a50c8b0e514f5b428abdf69a6f8 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-53316 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/dp/dp_display.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/c67a55f7cc8d767d624235bf1bcd0947e56abe0f https://git.kernel.org/stable/c/3c3f3d35f5e05c468b048eb42a4f8c62c6655692 https://git.kernel.org/stable/c/4e9f1a2367aea7d61f6781213e25313cd983b0d7 https://git.kernel.org/stable/c/5c3278db06e332fdc14f3f297499fb88ded264d2 https://git.kernel.org/stable/c/ca47d0dc00968358c136a1847cfed550cedfd1b5 https://git.kernel.org/stable/c/fa0048a4b1fa7a50c8b0e514f5b428abdf69a6f8