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 422C618A95D for ; Fri, 27 Sep 2024 12:36:40 +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=1727440601; cv=none; b=udRA+nWVmeakJb+3MDuvUlv9vyhss2tMZtHF1brJMHIhCeJ9Vcxq5dU4LOeiW/DKPxH6Wvk6XDFXZbepCFoEwX6aTDFDZE/TcN7oos8YX817esBnoFXL2giON4DxxAfmwCzWWVJnZYbO+ya87RyBRtq0OOFe2ATBmvF6hmR2xQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440601; c=relaxed/simple; bh=dRUaVrdIVjPf9XcBI5zQt7BbbeSx4Za68cto3vI05Us=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aTJR9sSgHEaU5EBWtSet+F0ix0Qx5xcRjZJfzm51qt8vVYBTuW7vQXkWzVLqP9HlQrrCNS9/xB80uKm1/4j3nA9dkhtAcjXHjSOSQBNYx8S6C26Ag1ysJPCXSbVLWdpEQSJF5Ade0f/nIa7jsvygse6RSHGpOsC7cvw08Y0ICpk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vHPQXe7h; 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="vHPQXe7h" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A072C4CEC4; Fri, 27 Sep 2024 12:36:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440600; bh=dRUaVrdIVjPf9XcBI5zQt7BbbeSx4Za68cto3vI05Us=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vHPQXe7hzkYr+HoDLEvYpS8PwjMJuezCSJAVlK3z5p7A45jBrISFaR/9hPziNV3YH VcnWIClr14GsF72upqoReo7laEUAVuLCrHtUo76gFTKIK1I3Ds5tF4Cx+YuhXdVgUg xXmVrAXmuBJQUFcWJB429smlbObbSggb1dMfXYLI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46816: drm/amd/display: Stop amdgpu_dm initialize when link nums greater than max_links Date: Fri, 27 Sep 2024 14:36:21 +0200 Message-ID: <2024092711-CVE-2024-46816-0526@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=1793; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dRUaVrdIVjPf9XcBI5zQt7BbbeSx4Za68cto3vI05Us=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnflu0JWM7TxJz8bHHwiV3MqXEJgrLf/yys3HBmfpd1t NjOeDnPjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIT2GGBdt3fpwX721RlpWn mMh7T05qUubReIb5gZvaVwoeN/pX+Czig5d0Jk/ZzT3iAA== 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: Stop amdgpu_dm initialize when link nums greater than max_links [Why] Coverity report OVERRUN warning. There are only max_links elements within dc->links. link count could up to AMDGPU_DM_MAX_DISPLAY_INDEX 31. [How] Make sure link count less than max_links. The Linux kernel CVE team has assigned CVE-2024-46816 to this issue. Affected and fixed versions =========================== Fixed in 6.10.9 with commit 36c39a8dcce2 Fixed in 6.11 with commit cf8b16857db7 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-46816 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/amdgpu_dm/amdgpu_dm.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/36c39a8dcce210649f2f45f252abaa09fcc1ae87 https://git.kernel.org/stable/c/cf8b16857db702ceb8d52f9219a4613363e2b1cf