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 C3924AD5E for ; Mon, 2 Dec 2024 13:53:43 +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=1733147623; cv=none; b=FylicyVRk5D2vlfiQOexM4EKevJSbXBKdAVui4AxxxNIsJrL8M//JW1gaOiSlpD/yCiDHBTFrNcuKSHh4Ct9bTp8eREh9wmtsNAN9ET8J4e56Z6yMJvSg1L3Nlvc8gAzRwBzipctWGhWoyXSUYYakZ/MfsYY6IxsxXq90NgzSd0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733147623; c=relaxed/simple; bh=S8wI9fcBhVYoGkKd2nbwOMrg+y9ByVBoXp1yysHhPYM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iy0GvHStaZIVA4XraasZx1vRmhYVD+Cnz2SVlt7hqmS6+sZTgC/C9BTNFeGAvUZXgJGBlvSFMox3l5FYwBe0hDn7jThc6XajzqVdajgXsX9ftvbdnOO9e/PA48n4+aVImtpwAI22tQ1+s121dSVW5scUvnYZTBJPTAl41IW+2+U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=R+EwxHDX; 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="R+EwxHDX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C32E4C4CED1; Mon, 2 Dec 2024 13:53:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733147623; bh=S8wI9fcBhVYoGkKd2nbwOMrg+y9ByVBoXp1yysHhPYM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=R+EwxHDXOXFUE0bUd9JoPfQNTNEfv+MEAakPJp3Kpa3X13qmIOQ6f9F8HXuFtRd5t lJgJCX6tSypwn3nGZ6PonLTjvup2XtX6Hw1H+7cfLxIPcXNAWMobz85UGekoZPy7rR 2dIxCF1iDp076r0Sl5u3jiK84/BF2WZAE3vYRlJw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53108: drm/amd/display: Adjust VSDB parser for replay feature Date: Mon, 2 Dec 2024 14:52:47 +0100 Message-ID: <2024120247-CVE-2024-53108-effc@gregkh> X-Mailer: git-send-email 2.47.1 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=2883; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S8wI9fcBhVYoGkKd2nbwOMrg+y9ByVBoXp1yysHhPYM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOm+u9ev7txeyrskZM7l09Yen3SYo5/HycgxSCnuvFbS4 u70Oru7I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACby9gfD/PqUKj2OuWJLXvt9 dtgd/2vvTcOiOQxzeHS/1adLxQg63dj63vLJX4Z91x/fBgA= 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: Adjust VSDB parser for replay feature At some point, the IEEE ID identification for the replay check in the AMD EDID was added. However, this check causes the following out-of-bounds issues when using KASAN: [ 27.804016] BUG: KASAN: slab-out-of-bounds in amdgpu_dm_update_freesync_caps+0xefa/0x17a0 [amdgpu] [ 27.804788] Read of size 1 at addr ffff8881647fdb00 by task systemd-udevd/383 ... [ 27.821207] Memory state around the buggy address: [ 27.821215] ffff8881647fda00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.821224] ffff8881647fda80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.821234] >ffff8881647fdb00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.821243] ^ [ 27.821250] ffff8881647fdb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc [ 27.821259] ffff8881647fdc00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 27.821268] ================================================================== This is caused because the ID extraction happens outside of the range of the edid lenght. This commit addresses this issue by considering the amd_vsdb_block size. (cherry picked from commit b7e381b1ccd5e778e3d9c44c669ad38439a861d8) The Linux kernel CVE team has assigned CVE-2024-53108 to this issue. Affected and fixed versions =========================== Fixed in 6.6.63 with commit 0a326fbc8f72 Fixed in 6.11.10 with commit 8db867061f4c Fixed in 6.12 with commit 16dd2825c235 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-53108 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/0a326fbc8f72a320051f27328d4d4e7abdfe68d7 https://git.kernel.org/stable/c/8db867061f4c76505ad62422b65d666b45289217 https://git.kernel.org/stable/c/16dd2825c23530f2259fc671960a3a65d2af69bd