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 8E8F23090D9 for ; Thu, 18 Sep 2025 13:36:08 +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=1758202568; cv=none; b=kgSnWq+uVj3b8//ZPiWjoVTCY6Pf82xNjki7D+pfo12eTo+SFqEKUNFe5rPeA1edvzDYYUPAqCu5nBpjJop1QywJktgrLopcP+v8OEEfzds/RwSfngaJmpeJl6yqiPXliwwvjD26jEXkxlDmdDoPIrHH7zt/o1263erD+aVd0pc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758202568; c=relaxed/simple; bh=AZ6JAcPuJkdfaUZNN7acPWXkPJvAXnvacs7BTtxumqI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IKhdyDw1Pg4/UmPo7ormWbfd8QSBA7/fNi98QPsToFqZEUJuyUt+x60MV2m7coAJvkkRvCVOVx6C/A0J9NIWd6DY/8jnvvHwu42sVKr/O38R+7FX8LVX9ZwnDYqNWAQlEgjhJq19lxjalS8/l7y7/7aJhpGy0K7HQkqbNO2MPas= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xdFsx9g1; 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="xdFsx9g1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EDD64C4CEE7; Thu, 18 Sep 2025 13:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758202568; bh=AZ6JAcPuJkdfaUZNN7acPWXkPJvAXnvacs7BTtxumqI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xdFsx9g1fRISnU0li3MAocc3lqGBYRxerNK82VJTnDaK6DVKds0TFT1OfZZcCDsym ATibybJZk9UTKHWOHcyJOlr0TQqdUDuqXqA0RC3M8OMgWl2xT/iMTWDzrI/Q9kj3yJ Lm0CkuuqsNYuU7ApC+AffRd488MArrgzfTQyroTY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53389: drm/mediatek: dp: Only trigger DRM HPD events if bridge is attached Date: Thu, 18 Sep 2025 15:34:34 +0200 Message-ID: <2025091858-CVE-2023-53389-26a2@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=2677; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IinpaWjXqMh2Di9r+zKCVE05aW1HpBfHGj51qyRcbMg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlnuNyWJxQynXTqapzXsmOx1fIr4rrv4gSnPCm6Kndrh d0D7cmqHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARTjuG+XEzpm+IyBLR2Cmx p2vHThb2kLbSlwwLDjukFcuLs5Vr9CUckvDR8sxeWMwEAA== 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: dp: Only trigger DRM HPD events if bridge is attached The MediaTek DisplayPort interface bridge driver starts its interrupts as soon as its probed. However when the interrupts trigger the bridge might not have been attached to a DRM device. As drm_helper_hpd_irq_event() does not check whether the passed in drm_device is valid or not, a NULL pointer passed in results in a kernel NULL pointer dereference in it. Check whether the bridge is attached and only trigger an HPD event if it is. The Linux kernel CVE team has assigned CVE-2023-53389 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit f70ac097a2cf5d4b67b2c1bbb73196c573ffcb7b and fixed in 6.1.28 with commit 6524d3d58797975cc40b85be1e9b89721b4e8d0b Issue introduced in 6.1 with commit f70ac097a2cf5d4b67b2c1bbb73196c573ffcb7b and fixed in 6.2.15 with commit 3551789d0635dfb2df8ab8e7fdbf0647e9c1724c Issue introduced in 6.1 with commit f70ac097a2cf5d4b67b2c1bbb73196c573ffcb7b and fixed in 6.3.2 with commit d1c04e338016ae2517c641806a831b1f3eee2bed Issue introduced in 6.1 with commit f70ac097a2cf5d4b67b2c1bbb73196c573ffcb7b and fixed in 6.4 with commit 36b617f7e4ae663fcadd202ea061ca695ca75539 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-53389 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_dp.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/6524d3d58797975cc40b85be1e9b89721b4e8d0b https://git.kernel.org/stable/c/3551789d0635dfb2df8ab8e7fdbf0647e9c1724c https://git.kernel.org/stable/c/d1c04e338016ae2517c641806a831b1f3eee2bed https://git.kernel.org/stable/c/36b617f7e4ae663fcadd202ea061ca695ca75539