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 59F3A187558 for ; Thu, 30 May 2024 15:36: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=1717083383; cv=none; b=igs2+MColcdvgwGWIwuHNnLUtNBs/w8vvRFzj8jxVW+xDUIlpwYQG2e+NjV2SeK1NvTWvXMg/t2CKvNbheuwLoad+hNtkQ7kXI2DlPiLXc2gCdxC0PYgXe4KjfdX0rbF8Pc4aE8xdzUVMfl8oYPr39sTwvphyFE+Wpea1ASwUeA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717083383; c=relaxed/simple; bh=ezgSNdW5ZinkkSGZkQpLVXB0mVJdiQSrUuRByOh2WgU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KEZefv8RMqBrlT+MKKJWryUx76cpPLCcOV/7nCpIkn1kF2Jx3bPCDs5uFRnAYYTvXobH9sCaKnjQ3yxUnhUFK92l5UZH+ljaJhGhf9iKG7knKO6rKkn7V/7j4UK0vWw2uHPc67DlDw1lfyQwwOtWtHg1Qz54ep7/QgNEwfrPNPY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ANm8oita; 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="ANm8oita" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBB73C2BBFC; Thu, 30 May 2024 15:36:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717083383; bh=ezgSNdW5ZinkkSGZkQpLVXB0mVJdiQSrUuRByOh2WgU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ANm8oitaS1zSUwF1hHGNCsGHj5CxkHu/PYlQ/mGlfT/EuJcNW+8xtTdJUIbw9EySw BDUC/isH5sfKWw/nLW0wbMWrtFRkzeqPqmppjQfLNwYi0UsiE9nQSEIkc87jdEZDZh a4E1i9JOo7u2zCzvOkzvuqbQdHsVI9ROB8PLQQNU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36949: amd/amdkfd: sync all devices to wait all processes being evicted Date: Thu, 30 May 2024 17:35:46 +0200 Message-ID: <2024053039-CVE-2024-36949-04a4@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=2035; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ezgSNdW5ZinkkSGZkQpLVXB0mVJdiQSrUuRByOh2WgU=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkRc05XTa38MY/v8UTFi7Mbqz+9mvDy6uMjV5yETirLH HieuiPnVEcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMJESYYcFhXqsDd/foyb96 8GFT2b9DJVNY78UwLGh0frJERv6daXcY7xuWzUrzWX/7vAAA 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: amd/amdkfd: sync all devices to wait all processes being evicted If there are more than one device doing reset in parallel, the first device will call kfd_suspend_all_processes() to evict all processes on all devices, this call takes time to finish. other device will start reset and recover without waiting. if the process has not been evicted before doing recover, it will be restored, then caused page fault. The Linux kernel CVE team has assigned CVE-2024-36949 to this issue. Affected and fixed versions =========================== Fixed in 6.6.31 with commit b6f6626528fe Fixed in 6.8.10 with commit ed28ef3840bb Fixed in 6.9 with commit d06af584be5a 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-36949 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/amdkfd/kfd_device.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/b6f6626528fe724b512c34f3fb5946c36a135f58 https://git.kernel.org/stable/c/ed28ef3840bbf93a64376ea7814ce39f86352e14 https://git.kernel.org/stable/c/d06af584be5a769d124b7302b32a033e9559761d