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 A1B75145A01 for ; Thu, 30 May 2024 15:04:23 +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=1717081463; cv=none; b=W5I5KtoxYvvdA7YKRNncerXoUowZCpIh5ltuirHHjo/92qd7nsyw5iknTAk5PIfb5hJIoiPijF1gSWRRHqtqYMtib5uyrTeNOD/AoU9yXqOH6zgKMtfbAtBC0RGFrh8MFNWPQePIU8N8Y78WZwIrw3wFuNIk02il2fUHL0mpkNs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717081463; c=relaxed/simple; bh=cI0sNv8+M4rqhPC2pY+PPKCl++kiZufK3+n5UutTQyo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MF8y04L57D6/fHfA8gNjdTmDw4oTYvH9OtnpHGbryoGfQ21Nsanm2l42D+22HXq2qi2nUeqsL1NzA7VtNsHw63aL6KnNscPei8DV1qZKa4hIf+k3m72WzaPbHtZBBE3TuM0u5KleQ7gAF63Q7uglXKfwIZ4LJNwrWF9Qv7LOZG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VkDJSt5R; 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="VkDJSt5R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFA9EC2BBFC; Thu, 30 May 2024 15:04:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717081463; bh=cI0sNv8+M4rqhPC2pY+PPKCl++kiZufK3+n5UutTQyo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VkDJSt5RNf6IpXw9rW+vDnLMLfTl7/IqxfxtFp8tEgPSYp+0IZ9mpiiZ0Qkj8pHsU XzR2TbjXoAfFYZLmMk6A0jfI/Uv0ByC+GYWIU2iGgWn7ELe129nmTwKdFjb8isMLDn VkDPQfQqrw7ggD7Jp98Ysgou2oyYC1k8UUJVO70s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36022: drm/amdgpu: Init zone device and drm client after mode-1 reset on reload Date: Thu, 30 May 2024 17:04:14 +0200 Message-ID: <2024053013-CVE-2024-36022-fe0e@gregkh> X-Mailer: git-send-email 2.45.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=2342; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cI0sNv8+M4rqhPC2pY+PPKCl++kiZufK3+n5UutTQyo=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRU3PbW6UmST+9oJmtpi803ZXJi9Nv89aKjwoTme+8E 92YcmVqRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk9g2GuSJbLN+5nI8/XPLB ZcZdkad7W5OWz2ZYcOS+9zGX90uinPoUP4VNrbl/6+qzAAA= 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: Init zone device and drm client after mode-1 reset on reload In passthrough environment, when amdgpu is reloaded after unload, mode-1 is triggered after initializing the necessary IPs, That init does not include KFD, and KFD init waits until the reset is completed. KFD init is called in the reset handler, but in this case, the zone device and drm client is not initialized, causing app to create kernel panic. v2: Removing the init KFD condition from amdgpu_amdkfd_drm_client_create. As the previous version has the potential of creating DRM client twice. v3: v2 patch results in SDMA engine hung as DRM open causes VM clear to SDMA before SDMA init. Adding the condition to in drm client creation, on top of v1, to guard against drm client creation call multiple times. The Linux kernel CVE team has assigned CVE-2024-36022 to this issue. Affected and fixed versions =========================== Fixed in 6.8.6 with commit 4f8154f77519 Fixed in 6.9 with commit f679fd6057fb 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-36022 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_amdkfd.c drivers/gpu/drm/amd/amdgpu/amdgpu_drv.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/4f8154f775197d0021b690c2945d6a4d8094c8f6 https://git.kernel.org/stable/c/f679fd6057fbf5ab34aaee28d58b7f81af0cbf48