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 493EA25A351 for ; Fri, 2 May 2025 15:58:31 +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=1746201511; cv=none; b=g3+Igt15FQNpfkHW+StXRVLz5dB0bVtdm+SwdZ3qr8nzODuZJihJ3c6u3gKPzi6OurCApNQ1NHU3sjH0YI6swSj57VDCYndzW4rbpeah4546X2WAonRrhPcvQYIalMrzwo1XSPz3r7GvALpeO66DgwDuiS6QX9lOfOtVcC4tbGQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746201511; c=relaxed/simple; bh=j5WQ3hNwZ5jfCj3uUjysm5tjBuPbVwTglzLz/b1VScY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bbdfjL3D0u6P6mKr/pPHMwfTjLvCsjgnbARJ5N/pFoiP9ERxJR7CT89ZNKtt9ijyB+/ZqHTnVxPjSWo7dZtxlkoJWh74XylB7cZ29QNhHTRubCme+Egl31j/Sr+5bnIwYbIHcIo4vdT27cgxQId6ALbpqSkHaMUhne/+HIw56s4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zC5HZY89; 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="zC5HZY89" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3DD1C4CEE4; Fri, 2 May 2025 15:58:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746201511; bh=j5WQ3hNwZ5jfCj3uUjysm5tjBuPbVwTglzLz/b1VScY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zC5HZY89upNknFz7Xb5vpmzcCkd7+88b8SdB4thA0kfcEwl4hHNq0XsaZUI10aZf1 Knskk9egsyo/wgcYQEFN2TK0fQH0EUv60JWLHXJC1hvqd7fzlam3qx/kVd5JvONgna /EEOlGX13JynKQOvkJ33dbxAmT3KHamcLZECUi7E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53077: drm/amd/display: fix shift-out-of-bounds in CalculateVMAndRowBytes Date: Fri, 2 May 2025 17:55:42 +0200 Message-ID: <2025050215-CVE-2023-53077-4075@gregkh> X-Mailer: git-send-email 2.49.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=2400; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DxzOXXkwiuqYfYlkHWk6t3Imp6iytNdnxbmHFn3ohFw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkirx5P/qG77sKRDevL1k7zFmg9EM/Qc/rIk4vTrrQKT /yyV0eupSOGhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm4tHFsOBYcIa9a+xskanm IaFGXu4S/CY7VBmmcO2en+AX+fJSyJO0beZMykscT5kDAA== 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 shift-out-of-bounds in CalculateVMAndRowBytes [WHY] When PTEBufferSizeInRequests is zero, UBSAN reports the following warning because dml_log2 returns an unexpected negative value: shift exponent 4294966273 is too large for 32-bit type 'int' [HOW] In the case PTEBufferSizeInRequests is zero, skip the dml_log2() and assign the result directly. The Linux kernel CVE team has assigned CVE-2023-53077 to this issue. Affected and fixed versions =========================== Fixed in 5.10.176 with commit 7257070be70e19a9138f39009c1a26c83a8a7cfa Fixed in 5.15.104 with commit bec1bea2fa974e63f6059c33edde669c7894d0bc Fixed in 6.1.21 with commit a16394b5d661afec9a264fecac3abd87aea439ea Fixed in 6.2.8 with commit e12b95680821b9880cd9992c0f3555389363604f Fixed in 6.3 with commit 031f196d1b1b6d5dfcb0533b431e3ab1750e6189 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-2023-53077 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/dcn30/display_mode_vba_30.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/7257070be70e19a9138f39009c1a26c83a8a7cfa https://git.kernel.org/stable/c/bec1bea2fa974e63f6059c33edde669c7894d0bc https://git.kernel.org/stable/c/a16394b5d661afec9a264fecac3abd87aea439ea https://git.kernel.org/stable/c/e12b95680821b9880cd9992c0f3555389363604f https://git.kernel.org/stable/c/031f196d1b1b6d5dfcb0533b431e3ab1750e6189