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 0A6F31E888 for ; Tue, 16 Jul 2024 12:28:00 +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=1721132881; cv=none; b=fnyynUSpSrAPuxgXdNrbgVgR20X1CPrmFSXt+/lcOqKx4dbbi+Vjc204SyZ2cdyBdHGCf5mxxO4axCClRhaVPF2A3sfXSeK+EBGHK+nDFtWGYOMwM/T3lVhtrrW4nMoGv/W4/aCXbVZeDO20VMs/VzI+pX6VqQS0AASJxiNiKiU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721132881; c=relaxed/simple; bh=xlgvvTX908LZofcDze5DKuoq1LIOto5VbD/+dYbL91o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lG+bw5p4AegbGrIQ6ptYhiBVLMrYUSLqxIyYeXZXqmw+cHdP9ojvSAEAF6N4jpDRQk4C/oYVSHSt2BJcpBL7yYCGpnZePjSlkrF9tqq2LvwYKYB1gyNEF6AdMcsgZf+jFYAgdaLGcSaVTbLnRT7Xbc3ZUw++p/frRguzyMl+FOQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H5c+wC9Y; 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="H5c+wC9Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF79FC116B1; Tue, 16 Jul 2024 12:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1721132880; bh=xlgvvTX908LZofcDze5DKuoq1LIOto5VbD/+dYbL91o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=H5c+wC9Ym0ct6FtyYnoVbyOTVaMM7KV0tAtXB2nIbh4zSXZkOd+oTnncPv6FKXWa8 Vl2C92qz60sKzsZUxTpi1poKS1UlK6aUPfqOJs3S4NE+8OXiVf+ttZZuc95dggC/vM Zbd28/uqb7d+lipDWzlKxqgHV9lf/sQXJv/cmd8Q= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48849: drm/amdgpu: bypass tiling flag check in virtual display case (v2) Date: Tue, 16 Jul 2024 14:27:34 +0200 Message-ID: <2024071624-CVE-2022-48849-3119@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=2223; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xlgvvTX908LZofcDze5DKuoq1LIOto5VbD/+dYbL91o=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnT0nX2vZDcfLy1iiOQzYtXPvHgwbenomayLz/sEJmR1 XtZU/BGRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEey7D/KjTYYYT12+dY7Ez 79XO2d/0XM6s/s6w4PrEE+WbpkQuE6tnDTG7IrHg3pNNGwE= 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/amdgpu: bypass tiling flag check in virtual display case (v2) vkms leverages common amdgpu framebuffer creation, and also as it does not support FB modifier, there is no need to check tiling flags when initing framebuffer when virtual display is enabled. This can fix below calltrace: amdgpu 0000:00:08.0: GFX9+ requires FB check based on format modifier WARNING: CPU: 0 PID: 1023 at drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:1150 amdgpu_display_framebuffer_init+0x8e7/0xb40 [amdgpu] v2: check adev->enable_virtual_display instead as vkms can be enabled in bare metal as well. The Linux kernel CVE team has assigned CVE-2022-48849 to this issue. Affected and fixed versions =========================== Fixed in 5.15.29 with commit fcd1d79aa943 Fixed in 5.16.15 with commit cb29021be498 Fixed in 5.17 with commit e2b993302f40 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-2022-48849 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/amdgpu/amdgpu_display.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/fcd1d79aa943fff4fbaa0cce1d576995a7960699 https://git.kernel.org/stable/c/cb29021be49858059138f75d6311a7c35a9379b2 https://git.kernel.org/stable/c/e2b993302f40c4eb714ecf896dd9e1c5be7d4cd7