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 4F43F304962 for ; Thu, 18 Sep 2025 13:36:05 +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=1758202565; cv=none; b=EqakS3uezbXZ3kQaMdacEP2z6a8AvUuHyxfoL1XWa1tieNXOjoQPd0/Yk0PNpyinL4P6Ib6C17tzP6B6wUndeQ+AoXd2uqJGvtWtohVbr+Yfi1xTHAX+0UutUAf1Cp37ygKntR2qyyuh8VneX9+gEOyA/2Pj+2G49c3mTTz07b0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202565; c=relaxed/simple; bh=LaMPLYzYDP2dzfZ6lNIKsnLA626m2/xzTnPUaWWZ+Y8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eHfW5P6Q8S8kQsJZTiFjDNkD1YkDv2WmVnVDeNRJiTVTA5TmD8jyDWKA1T0AOVR0HotMQK9r95oDU9rqt4JfmUmDLba7aensyAfURAJRkamEVHjLE3KzuA3srVJqoev86t+HqaNs0f94o2IEEe5uKm6kgklJgwNYzWSJeDSwIaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MEiQVZGb; 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="MEiQVZGb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C058FC4CEE7; Thu, 18 Sep 2025 13:36:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202565; bh=LaMPLYzYDP2dzfZ6lNIKsnLA626m2/xzTnPUaWWZ+Y8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=MEiQVZGbRpm3zSiUxQz/Kr+cF089jouf4LxINNbktwl72J/T8tnaA5oiIwNm0/ws7 hjmK+hQBHPyU2KB5gBfLJIA2YbvzxpO5xupE9QK8AA58OC6IkXknsuPaYWnU5VroS8 v03DgIKdQ3xUKYQvXg1rDw0F7flktog5/sqJTEOE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53388: drm/mediatek: Clean dangling pointer on bind error path Date: Thu, 18 Sep 2025 15:34:33 +0200 Message-ID: <2025091858-CVE-2023-53388-657a@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=3315; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=C0/cvr0JsC1nOor5HuzjYFTbsLaG8+6EvWueMVXLMdM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuNyqmETrzy1ftHf331lJc2aHCdipVa6OOPM/vXQ65 2/94un8HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRpASGuZJm5RZ2rXnH/mw4 0OD8K3qqXDHzL4YFh6a3+Jfd//3d7mrh2QPuig/S1d8pAgA= 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/mediatek: Clean dangling pointer on bind error path mtk_drm_bind() can fail, in which case drm_dev_put() is called, destroying the drm_device object. However a pointer to it was still being held in the private object, and that pointer would be passed along to DRM in mtk_drm_sys_prepare() if a suspend were triggered at that point, resulting in a panic. Clean the pointer when destroying the object in the error path to prevent this from happening. The Linux kernel CVE team has assigned CVE-2023-53388 to this issue. Affected and fixed versions =========================== Issue introduced in 4.7 with commit 119f5173628aa7a0c3cf9db83460d40709e8241d and fixed in 4.19.276 with commit 9a48f99aa7bea15e0b1d8b0040c46b4792eddf3b Issue introduced in 4.7 with commit 119f5173628aa7a0c3cf9db83460d40709e8241d and fixed in 5.4.235 with commit a161f1d92aabb3b8463f752bdc3474dc3a5ec0e5 Issue introduced in 4.7 with commit 119f5173628aa7a0c3cf9db83460d40709e8241d and fixed in 5.10.173 with commit 6a89ddee1686a8872384aaa9f0bcfa6b675acd86 Issue introduced in 4.7 with commit 119f5173628aa7a0c3cf9db83460d40709e8241d and fixed in 5.15.99 with commit 49cf87919daeeeeeb9e924c39bdd9203af434461 Issue introduced in 4.7 with commit 119f5173628aa7a0c3cf9db83460d40709e8241d and fixed in 6.1.16 with commit 7b551a501fa714890e55bae73efede1185728d72 Issue introduced in 4.7 with commit 119f5173628aa7a0c3cf9db83460d40709e8241d and fixed in 6.2.3 with commit f3887c771576c5d740c5c5b8bf654a8ab8020b7d Issue introduced in 4.7 with commit 119f5173628aa7a0c3cf9db83460d40709e8241d and fixed in 6.3 with commit 36aa8c61af55675ed967900fbe5deb32d776f051 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-53388 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/mediatek/mtk_drm_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/9a48f99aa7bea15e0b1d8b0040c46b4792eddf3b https://git.kernel.org/stable/c/a161f1d92aabb3b8463f752bdc3474dc3a5ec0e5 https://git.kernel.org/stable/c/6a89ddee1686a8872384aaa9f0bcfa6b675acd86 https://git.kernel.org/stable/c/49cf87919daeeeeeb9e924c39bdd9203af434461 https://git.kernel.org/stable/c/7b551a501fa714890e55bae73efede1185728d72 https://git.kernel.org/stable/c/f3887c771576c5d740c5c5b8bf654a8ab8020b7d https://git.kernel.org/stable/c/36aa8c61af55675ed967900fbe5deb32d776f051