Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 85846519E14 for ; Thu, 17 Sep 2026 16:29:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662548; cv=none; b=OYDloWEKVMjq00oLW0ibdeXhuFIFT/ZeYU3kP+tCD9nL6co7qRivxb5dGh7lzJd1JvGBf+OhKDtkhjqkjaQRJY+st/6WF8NjRONj13R+YKsgen+tvAnEmUxusPiqjJQ2R4QtD24mQI3Hdxv3+gsgkgHVy93qa+yeWOpMz0gz+IQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662548; c=relaxed/simple; bh=IstXH+WQw4ySmzlBnG7EAEF3wj/I/4VD9tTdYkq+OrA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gxPVbYGeRPzhYbDGVNSCLZZVhfQNRxFBAam/+vrHAOsaqv3QNw+g5oKf6Hsz/PQ4OdBPeQy7MW4v0Y7LTZNq4BmqWdR2wKNyn3geIGWlqqrAE5A5ICBg0s7OZjoTtC1WFNVqjVLz1EE53Ny0ZM4HZKaJlbKtEzTGHkiggyUW2TI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QnxCkace; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QnxCkace" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98A9C1F000FF; Thu, 17 Sep 2026 16:29:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662546; bh=5uhKXS2RAOlV54d0PITR/XXC+YRZ0bCu5bWvCl3ovto=; h=From:To:Cc:Subject:Date:Reply-To; b=QnxCkaceVSI7UKnBT8pmQO8C396iFs+JKUZ6DRf/+4YG+7ofIe4WD+L65iTcgYe6M WKRR2iOVIiaQRcJQHufMMRG2AMFqfOkOwzJ4f6vqrlxDegidbU1s9L3poTgRbAlAcL EbW3VAh5+ugUpoctP5grEZrnDT1DIZhHqV3R40uI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90363: drm/msm: don't tear down KMS twice when KMS init fails Date: Thu, 17 Sep 2026 17:13:13 +0100 Message-ID: <2026091706-CVE-2026-90363-3389@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3743; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9evSJcte8bHjT+n0uyk0w12qsJqdWMEWjlt0aV5kwt8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBBaf27QghXOyYsFhretzDs7T8VVIqjjEOTN/vS2HC 4tOocLejlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIaXWGefq65cbPHc2aONyC onjmK3WteaX0kGGuvN7D9NO3d8zdo7VF0Fo76aC0UI89AA== 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: don't tear down KMS twice when KMS init fails When priv->kms_init() (mdp4_kms_init() / mdp5_kms_init()) fails partway through, both display drivers already tear their KMS state down via mdp4_destroy() / mdp5_kms_destroy() before returning the error. The common error path in msm_drm_init() then runs msm_drm_uninit() -> msm_drm_kms_uninit(), which tries to destroy the very same KMS a second time, which causes a use-after-free crash. Bring MDP4/MDP5 in line with the DPU driver whose dpu_kms_init() doesn't perform error cleanup on the failure. Let the common path own the cleanup, instead of freeing the KMS from their error paths. The crash trace for the reference: __lock_acquire from lock_acquire (kernel/locking/lockdep.c:5906 kernel/locking/lockdep.c:5863) lock_acquire from touch_wq_lockdep_map (kernel/workqueue.c:4094 (discriminator 1)) touch_wq_lockdep_map from __flush_workqueue (kernel/workqueue.c:4136) __flush_workqueue from msm_drm_kms_uninit (drivers/gpu/drm/msm/msm_kms.c:243 (discriminator 33)) msm_drm_kms_uninit from msm_drm_uninit (drivers/gpu/drm/msm/msm_drv.c:93) msm_drm_uninit from msm_drm_init (drivers/gpu/drm/msm/msm_drv.c:184) msm_drm_init from try_to_bring_up_aggregate_device (drivers/base/component.c:249 drivers/base/component.c:227) try_to_bring_up_aggregate_device from __component_add (drivers/base/component.c:269 drivers/base/component.c:748) __component_add from dsi_host_attach (drivers/gpu/drm/msm/dsi/dsi_host.c:1739) dsi_host_attach from mipi_dsi_attach (drivers/gpu/drm/drm_mipi_dsi.c:383) mipi_dsi_attach from sharp_nt_panel_probe (drivers/gpu/drm/panel/panel-sharp-ls043t1le01.c:247) Patchwork: https://patchwork.freedesktop.org/patch/742068/ The Linux kernel CVE team has assigned CVE-2026-90363 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 506efcba31296e9cbc4f8f148eec1e4b29039931 and fixed in 6.18.52 with commit 08827aa40f0ee9d37dcff8d6acb340b970051486 Issue introduced in 6.7 with commit 506efcba31296e9cbc4f8f148eec1e4b29039931 and fixed in 7.2.6 with commit e2a99fa93b400dfbb9598103249f71969501094a Issue introduced in 6.7 with commit 506efcba31296e9cbc4f8f148eec1e4b29039931 and fixed in 7.3-rc1 with commit 93c125e4ea98fb25f927ba5a334d85845127d667 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-2026-90363 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/disp/mdp4/mdp4_kms.c drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.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/08827aa40f0ee9d37dcff8d6acb340b970051486 https://git.kernel.org/stable/c/e2a99fa93b400dfbb9598103249f71969501094a https://git.kernel.org/stable/c/93c125e4ea98fb25f927ba5a334d85845127d667