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 2B58518A95D for ; Fri, 27 Sep 2024 12:36:38 +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=1727440598; cv=none; b=uvcAN5FXZq6ncLB5VIcLigxGNtJnTmh+lKYtYfkEvCLlXwm8cbrSKa1jrpChOJanYtynENbrkbRktOwtZoJfsQ2gripTbyc8ZSYGujgErOhQN4aWIuVJD86Pxjo8G/Y+J3x8Q5iAlgBNTA6lDSwIMpX9u4NY5GHtF3bFwK2L/vo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440598; c=relaxed/simple; bh=/YW07q8sPKPQSP3KGrlYkcwty0JcUQAOizXhhxzYVWE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QMNziEaD6hbwaAelIbfYk2nFsOccGl5ZJsG1utYQZ0mFR2+vKKlnD8IVS3NhQ18yMOsl/j8xxyu/XUKiIF84yA+XXeRZmIafQ0bqXOohMKvweDcHMlR4jCAiGwPqSUh1VeltgVAlHMzPhW5rsF6aV5yRG63jtOUN1d5QdEqjoNA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=z3t5DGBw; 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="z3t5DGBw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3142C4CEC4; Fri, 27 Sep 2024 12:36:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440598; bh=/YW07q8sPKPQSP3KGrlYkcwty0JcUQAOizXhhxzYVWE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=z3t5DGBwF6UsepA6oJdZb5JPOVWbmX58fX7K0ZiUrS8961cuvaII95zl99U0nb3e3 tcnPOfOgKMtQ3sm2lie8+AWMeZm17cR2hmNBLnsypIc9ABoRzaPTcZj8z916WN7XCk twRTmR1IV4NEpYnkJm764+YyCH40sfbPatlcKPNA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46815: drm/amd/display: Check num_valid_sets before accessing reader_wm_sets[] Date: Fri, 27 Sep 2024 14:36:20 +0200 Message-ID: <2024092711-CVE-2024-46815-fce2@gregkh> X-Mailer: git-send-email 2.46.2 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=2366; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/YW07q8sPKPQSP3KGrlYkcwty0JcUQAOizXhhxzYVWE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnflu1+uefY1S/TEi/0t61nm3/Q73TOxAaRr53BE21XP a3ZsEr7akcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMxO8VwzwNTXvbeqO6eSyN DQ/kLxkdvei5awPDgvZpRxwljhnmqh/vK2Cbu/aP761DxwA= 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 num_valid_sets before accessing reader_wm_sets[] [WHY & HOW] num_valid_sets needs to be checked to avoid a negative index when accessing reader_wm_sets[num_valid_sets - 1]. This fixes an OVERRUN issue reported by Coverity. The Linux kernel CVE team has assigned CVE-2024-46815 to this issue. Affected and fixed versions =========================== Fixed in 5.4.284 with commit a72d49964095 Fixed in 5.10.226 with commit 7c47dd2e9234 Fixed in 5.15.167 with commit c4a7f7c0062f Fixed in 6.1.109 with commit b36e9b3104c4 Fixed in 6.6.50 with commit 21f9cb44f8c6 Fixed in 6.10.9 with commit 6a4a08e45e61 Fixed in 6.11 with commit b38a4815f79b 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-46815 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/clk_mgr/dcn21/rn_clk_mgr.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/a72d4996409569027b4609414a14a87679b12267 https://git.kernel.org/stable/c/7c47dd2e92341f2989ab73dbed07f8894593ad7b https://git.kernel.org/stable/c/c4a7f7c0062fe2c73f70bb7e335199e25bd71492 https://git.kernel.org/stable/c/b36e9b3104c4ba0f2f5dd083dcf6159cb316c996 https://git.kernel.org/stable/c/21f9cb44f8c60bf6c26487d428b1a09ad3e8aebf https://git.kernel.org/stable/c/6a4a08e45e614cfa7a56498cdfaeb7fae2f07fa0 https://git.kernel.org/stable/c/b38a4815f79b87efb196cd5121579fc51e29a7fb