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 8C01A1FEFA0 for ; Mon, 21 Oct 2024 18:03:35 +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=1729533815; cv=none; b=NgNdmGQa+9iVmSTxIFwQp7r1VtXQWYms5ylPeFASro1HTrGBuk6JCnl7z3nEL6LDF1ykelCvyIyKT2vdKFW0XPpR+fIFu+k7upVTWt6bc3amGfLlA8rRa1TLP05vmqsN+lMumcIihb2boHFoeRIn2d5mxfhI2bYZYxpPozOdN9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729533815; c=relaxed/simple; bh=TUaFUYEuQ0eJXmjlLq/6C+Deu3YdhLAH5Sib0Gq1LOM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aDYvVTWBr8iYpUonvyG4uW8DTNsvxdaljzX4yup0To0Nylx6t5sHCxLScbO0Rra8qfeBL5iwi2hM79SZVV4PQjDUm2h+1TgA1RbCq7x0CAVKslNZpgi+bngAS9XUTIZe4tpMk+yKU8rVWD8w5j4B3i7tD1p7shpguVnbuLPciFw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2EXXXl57; 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="2EXXXl57" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F325FC4CEEC; Mon, 21 Oct 2024 18:03:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729533815; bh=TUaFUYEuQ0eJXmjlLq/6C+Deu3YdhLAH5Sib0Gq1LOM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2EXXXl57dhOhWwZtNbXxBZOt75odhdz+h2X9ZUan0W29eSHMFlMw35yxH6HoITKj5 HPLkjSQid1ZQ8IMOIsywQddhUcYt1orSAtFrKyypsvCMjL6R848NrOFVkS0YtVd0JD Asdnm7QmUzqBMjc1tdQ4N0AQaxlYlbJih98cL7yg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49899: drm/amd/display: Initialize denominators' default to 1 Date: Mon, 21 Oct 2024 20:01:47 +0200 Message-ID: <2024102119-CVE-2024-49899-3daa@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=1938; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TUaFUYEuQ0eJXmjlLq/6C+Deu3YdhLAH5Sib0Gq1LOM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli096zfHNaLeK/V9HFieGd5rG4b2ejC8TnNDivL9h/d OoFqbnrOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTEBDPjBwcQrARLxzGBYsC+G893nbdpeJ yd0iZQqJ2/t2XYxjWDB36b3eQycYl/9JFjA7YPx6xux7v1cDAA== 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: Initialize denominators' default to 1 [WHAT & HOW] Variables used as denominators and maybe not assigned to other values, should not be 0. Change their default to 1 so they are never 0. This fixes 10 DIVIDE_BY_ZERO issues reported by Coverity. The Linux kernel CVE team has assigned CVE-2024-49899 to this issue. Affected and fixed versions =========================== Fixed in 6.11.3 with commit 7f8e93b862ab Fixed in 6.12-rc1 with commit b995c0a6de6c 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-49899 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/dml/dcn20/display_rq_dlg_calc_20.c drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.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/7f8e93b862aba08d540f1e9e03e0ceb4d0cfd5fb https://git.kernel.org/stable/c/b995c0a6de6c74656a0c39cd57a0626351b13e3c