From mboxrd@z Thu Jan 1 00:00:00 1970 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 B36706025E for ; Mon, 4 Mar 2024 18:18:42 +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=1709576322; cv=none; b=q/k05dHPQ3+Li1pwTzwt1L9CIwMz5E4oejRvqUMqiS8QujhyfUT37N1K1och51JWH+dyi0zUMVZSbugHekU0NXndI8qHc55H+6nX4crX3EWDB3WMMWIdsXBqvgjZZWu+NSM0XovF0K2teujewqyx0QNN150GX3pfrv4aKbkhsy8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709576322; c=relaxed/simple; bh=lhzDW8MYLB55c0r9CGt1YHAjDJ2cjVGKByn3Bvr2U14=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AoLDEyW0TFifsoNL6ioBKgftwQZjM1KHqj8Z00ufNl8AlzXccz/wdbHCtY9MorHbHKZ154I5qhUBl0eL4k6GoFwh0qVfvhcr0gXQXDjfZC4ubMejPWns09hq4pQp62gJcgoFmvdxQjrME5PXidZZm6qWZECUanKSY0kMVfJmTTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uyiOGvk/; 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="uyiOGvk/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9028AC433F1; Mon, 4 Mar 2024 18:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709576322; bh=lhzDW8MYLB55c0r9CGt1YHAjDJ2cjVGKByn3Bvr2U14=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uyiOGvk/QcVwULdoTnk7ooO06G+fGwoVUt1KuiBw7aTWJ8QSh0o9t2d4atmtvyBuL XJ6C6c93geUEHbNQXb3FjhE+d8VwbuDJx0SRzuTDE8z+Qdi3RgF6oQ9bz6XIU8/waC kD6gTzU8aKRh4vcXAKVjJBLpW6FPRc4PLfWB3BxI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47108: drm/mediatek: hdmi: Perform NULL pointer check for mtk_hdmi_conf Date: Mon, 4 Mar 2024 19:17:49 +0100 Message-ID: <2024030445-CVE-2021-47108-252a@gregkh> X-Mailer: git-send-email 2.44.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=2429; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lhzDW8MYLB55c0r9CGt1YHAjDJ2cjVGKByn3Bvr2U14=; b=owGbwMvMwCRo6H6F97bub03G02pJDKnPBDyP8F4tONRz56zt/lstHdejC7RTL/OYZLF6FfTrR a+drfSwI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZi28EwT/WJN1dvgU7MhZPa tc5pdebzNx1MYViw9Ymq7pruUxZiDufNmXdtX5F39pMyAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/mediatek: hdmi: Perform NULL pointer check for mtk_hdmi_conf In commit 41ca9caaae0b ("drm/mediatek: hdmi: Add check for CEA modes only") a check for CEA modes was added to function mtk_hdmi_bridge_mode_valid() in order to address possible issues on MT8167; moreover, with commit c91026a938c2 ("drm/mediatek: hdmi: Add optional limit on maximal HDMI mode clock") another similar check was introduced. Unfortunately though, at the time of writing, MT8173 does not provide any mtk_hdmi_conf structure and this is crashing the kernel with NULL pointer upon entering mtk_hdmi_bridge_mode_valid(), which happens as soon as a HDMI cable gets plugged in. To fix this regression, add a NULL pointer check for hdmi->conf in the said function, restoring HDMI functionality and avoiding NULL pointer kernel panics. The Linux kernel CVE team has assigned CVE-2021-47108 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit c91026a938c2 and fixed in 5.15.12 with commit 71d07ebc5000 Issue introduced in 5.14 with commit c91026a938c2 and fixed in 5.16 with commit 3b8e19a0aa39 Please see https://www.kernel.org or 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-2021-47108 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_hdmi.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/71d07ebc5000b9c1d140e99e7493b0bafa954776 https://git.kernel.org/stable/c/3b8e19a0aa3933a785be9f1541afd8d398c4ec69