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 1EF3E19069B for ; Tue, 30 Jul 2024 07:50:46 +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=1722325846; cv=none; b=DYUpPRBq1MZe90bvCNNHSSQizLw4FJLF/brM4jRelMbaCtGzuC/ywFK3H/oV9DFcG5X5MJG+AOmZutdcCNaALsToxnAlhaxxIFHA2y6i2cr3eppzyQ6XBKwkmcYwwexSCrOKYAw9r4oO1FGh+SCquIoAq21HWEfaTOWrJ3uKWx8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722325846; c=relaxed/simple; bh=3+14WhyZb+wXp23nK7gYFHcOY97cDdPo3wg00vwlc68=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=URuVtwUXsKVIUGLim3XAFIpWTQD3qmDFBG/N5ayuElgmxzMtoZLIMm7It7A7AAL9cBC76MVDAfA8mcsnOxhS9afEmwuYUcrl0NWt/WkfZC5mxU7cbz44T/MoImYrYWWNIeZ1eU0Tyjz/2o1HL0KpRcfCRcFywL36oyOx+Vl2OTo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SlSGTwPJ; 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="SlSGTwPJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 827C1C4AF09; Tue, 30 Jul 2024 07:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1722325846; bh=3+14WhyZb+wXp23nK7gYFHcOY97cDdPo3wg00vwlc68=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SlSGTwPJxc3W4gknjRcmXcGiqDg+5u71/WrSh8u6ass4qyT2xqK7wnj42n88ryAIH Od/CGGes+dnWP+athNHav1MYLqK0YUntPCPnCgDKW7eMJeJFNjF+ARfV0QgTLOHVrd CMQ6LENdKbLP1P2MNZ1VR+RiSZYUHfvNVpWfRJHQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42118: drm/amd/display: Do not return negative stream id for array Date: Tue, 30 Jul 2024 09:47:36 +0200 Message-ID: <2024073024-CVE-2024-42118-537b@gregkh> X-Mailer: git-send-email 2.45.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=1860; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3+14WhyZb+wXp23nK7gYFHcOY97cDdPo3wg00vwlc68=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkrZvVcvyJVcXiV3HaRnYuCdizYMVFBx3Le+rIM7hVrQ 2eYHvn9ryOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmknSfYUGXxIbOzYWhYVKt S78/quBK2zm/opNhwYRPyTmzJ/w6EHD81KeMrFlySkv67QE= 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: Do not return negative stream id for array [WHY] resource_stream_to_stream_idx returns an array index and it return -1 when not found; however, -1 is not a valid array index number. [HOW] When this happens, call ASSERT(), and return a zero instead. This fixes an OVERRUN and an NEGATIVE_RETURNS issues reported by Coverity. The Linux kernel CVE team has assigned CVE-2024-42118 to this issue. Affected and fixed versions =========================== Fixed in 6.9.9 with commit a76fa9c4f0fc Fixed in 6.10 with commit 3ac31c9a707d 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-42118 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/core/dc_resource.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/a76fa9c4f0fc0aa6f517da3fa7d7c23e8a32c7d0 https://git.kernel.org/stable/c/3ac31c9a707dd1c7c890b95333182f955e9dcb57