Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 625D03E8C56 for ; Sat, 15 Aug 2026 12:28:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786796920; cv=none; b=JsbT/gDN3JDlPVqsqTQ7Vd9PYX0lWkZInWG2dt6NqixsMdEzcpMfuVd/i6vhYYUNvTqceVkx4WaDEoh+8xRjVtUog16Q3SOFwJe7IBwcMzeEkVnNU1U4WB6uUzxOL3ZwynalS9AiADZZVj7Elk+EdVrWrHgeaODhCpbJqYf0HyA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786796920; c=relaxed/simple; bh=P6G3hGu/yDLr5ieJ0RbGFQ6bnR/5/vIS+7xQBk8Zhb4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Gzk0xNQ/VjWr0KwfFsg4lT7ig4lZGups4g8NkGpat9YSPbddjQsFT2fJhsLUsjmAaxjv3mdyAkOmcSbtoANPYRG1pgTfjt+nMg31+zXGZh8hnFtlyTiIc1aBPA8xHjt957KIFZmaP0tge9SnilJ2t+FQTwkLCdRQeWf6jNlvo84= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1CRqWcKy; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1CRqWcKy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB0611F000E9; Sat, 15 Aug 2026 12:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786796919; bh=5m9HhvbTa/+69F4CVz2wZlVzMPMKsGnnEUO5r7oA8ro=; h=From:To:Cc:Subject:Date:Reply-To; b=1CRqWcKy2QVX+WmFuS3e7voF7sW9WLoZ1tc16BYFGMhPyyKhBzGiuECzEA5fA0ua3 VrdRRtvwWqCghUrBk4g6eqQUTtFXqrwrNYPKwHoNKvL5JiFUGorV4apTYGDMnHus7L ecl9IeioVvJ2MCd+5oO9r9B7smO7TpOnGuYkRxcc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74449: drm/amd/display: Fix divide-by-zero in calculate_mcache_setting on zero viewport Date: Sat, 15 Aug 2026 21:25:30 +0900 Message-ID: <2026081530-CVE-2026-74449-8eae@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2267; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uGD5i1NRIyQCrbzZJRKTUMZhKWz6eEW3RnqZaBVFcWY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNUbsuH7atmXRTNjRUSl93c3rz3fn/kyxKlqy9HKzde uygrrFbRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkzzWGeTYty9oKH79qlN8a YZv94lCAeJKvOMOCbtmIjPdCqeF/Z2aGrpscI6dTqPURAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Fix divide-by-zero in calculate_mcache_setting on zero viewport If a plane reaches calculate_mcache_setting with a zero-area viewport, calculate_mcache_setting exits early with num_mcaches == 0 and mvmpg_width/height == 0. This will cause a divide-by-zero panic and can also cause an underflow on num_mcaches. Fix this by changing calculate_mcache_setting to bool and adding guards after each calculate_mcache_row_bytes call. If num_mcaches or mvmpg_width/height is zero, return a false. Callers will propagate the failure as a rejected mode, which prevents the panic. (cherry picked from commit 29c0f7c655f47bcbd575ff75e58480df6ec3c9da) The Linux kernel CVE team has assigned CVE-2026-74449 to this issue. Affected and fixed versions =========================== Fixed in 7.1.8 with commit 1f93537881fd22712732a60ad12572a3fd40c0ec Fixed in 7.2-rc6 with commit f327e389c07cfc3a2f6ff54f6214e1a52d457edc 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-2026-74449 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/dml2_0/dml21/src/dml2_core/dml2_core_dcn4_calcs.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/1f93537881fd22712732a60ad12572a3fd40c0ec https://git.kernel.org/stable/c/f327e389c07cfc3a2f6ff54f6214e1a52d457edc