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 F25B81E767C for ; Mon, 21 Oct 2024 12:03:27 +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=1729512208; cv=none; b=dogH2fj2Rc5JqfXh5kqQVihjIUyYRdVwfO74XGuZrMix1G0W07kh1An2fSzrNeW4ms9j8rb1Yo8ARjRYhQ2EZr0iKbAE8I2AGjVjA+FFptj1uzJotr4Ey5rBrGzyZ9VFGYzk+S0PZChdwTuPMGColvSPvrKJbGqpdZjUVngxPRw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512208; c=relaxed/simple; bh=mZwkrnKeXlcVeWB1CSWMx42BGhaRkO09ess3NNstY8M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WCaGtQT8AypMol3vnj3iihC9Oi+v5B0ljCTt+xnxJHVUzCNZYCwKfa5WwBEsBPNe5BBNsw3s0mHIQ7fNm5lKDSLaMs0tIHrG3t9CG65+h7FpqA+MVVAMG2pma4TP2uIleUmlXKa2ulFg8YmrSkpQUPtGYkngP8+yJxw+VYrkrqs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=E0TWnHq2; 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="E0TWnHq2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E072C4CEC3; Mon, 21 Oct 2024 12:03:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512207; bh=mZwkrnKeXlcVeWB1CSWMx42BGhaRkO09ess3NNstY8M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=E0TWnHq2Gj/zhnDrRR7xuGAJsYfILEe2W8wMgVjKTSFYdmzqPGkjUA6Ze0ld5iOQN 6yZxiPeLYngyqtkbnVBBXaVGE1GKUnkB+fxuwg5nz+YXlMTJHVApX4R9QNEfQ37ZzF WJOqprByRtOumY9aWe6uFQHkamkWDoMF318Jy5Q4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47704: drm/amd/display: Check link_res->hpo_dp_link_enc before using it Date: Mon, 21 Oct 2024 14:00:32 +0200 Message-ID: <2024102116-CVE-2024-47704-d937@gregkh> X-Mailer: git-send-email 2.47.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=2069; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mZwkrnKeXlcVeWB1CSWMx42BGhaRkO09ess3NNstY8M=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliTgHlEjuT+Xa7bJdI3p64L3JDze7gYjet07t3Mdh43 5kc+eB5RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkjifDgratRxbyawcucH7i 6luvPyktIXPePoYF+35+LxeUieLceenbo307HyceOPaMEQA= 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/amd/display: Check link_res->hpo_dp_link_enc before using it [WHAT & HOW] Functions dp_enable_link_phy and dp_disable_link_phy can pass link_res without initializing hpo_dp_link_enc and it is necessary to check for null before dereferencing. This fixes 2 FORWARD_NULL issues reported by Coverity. The Linux kernel CVE team has assigned CVE-2024-47704 to this issue. Affected and fixed versions =========================== Fixed in 6.6.55 with commit be2ca7a2c156 Fixed in 6.10.14 with commit 530e29452b95 Fixed in 6.11.2 with commit 0508a4e95ac1 Fixed in 6.12-rc1 with commit 0beca868cde8 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-2024-47704 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/amd/display/dc/link/hwss/link_hwss_hpo_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/be2ca7a2c1561390d28bf2f92654d819659ba510 https://git.kernel.org/stable/c/530e29452b955c30cf2102fa4d07420dc6e0c953 https://git.kernel.org/stable/c/0508a4e95ac1aefd851ceb97ea050d8abb93262c https://git.kernel.org/stable/c/0beca868cde8742240cd0038141c30482d2b7eb8