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 9B21112D215 for ; Fri, 24 May 2024 15:11:32 +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=1716563492; cv=none; b=ihzZpTHjJJy28EHPQYh+OuMarHEG13ZjszYhXGPBdr1lgIrD3+XuU3sMlrDq6zwlmuZGBRxPLc8zmk7C0UMy3MsIH0ilC8KE69hPSv0ceZHNUNbHN/ASsABSEePtqWndlCjkZ4XtKmYDQAUYZiNb2hSVG+cSlXK5hew3eiW42YQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563492; c=relaxed/simple; bh=g8yhrjp4JLPw4V8zpH6hwVhlkeucrBGylCmVHLW5in0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=V5frCKuoobzUwZnW7g/rr9uZRRouPu/3DOnhuWJLspe151FdKgNhQG2FpYj/gYyNbHf43LeWonQWILYqtNwSFe6ShWDzxRs4wz8IjqVCstE/Q+iqB6ncCYDVIaVdNWTiCSxkgNvs7v+O8Od8PmysT/AOnrxCZaLioILvA32SlqA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KYy3Lu8/; 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="KYy3Lu8/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20B8AC4AF0A; Fri, 24 May 2024 15:11:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563492; bh=g8yhrjp4JLPw4V8zpH6hwVhlkeucrBGylCmVHLW5in0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KYy3Lu8/T0u9rANgCB7TKDEW6jK5m4vwNxVwcgd1Fy0KDGDlF5ZPpMmh7zlh+fIbt mmrWIajv7BS/ETtgr5RYdNr3QYEx5aHPfXdlw5mpENlXR7Bi6PcjwOHElYTfgyQK8Q 4qYO8NI7h1uSRBawWHl32wAr1ztnjH8HYzBFvXM8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47551: drm/amd/amdkfd: Fix kernel panic when reset failed and been triggered again Date: Fri, 24 May 2024 17:10:11 +0200 Message-ID: <2024052442-CVE-2021-47551-0318@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=1980; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=g8yhrjp4JLPw4V8zpH6hwVhlkeucrBGylCmVHLW5in0=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBa7etzL3GLGmyUrtSc9JJxmdnQ+de33k+cwrf7KlNL G7znns0dMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEIg4zzOFV6XgcdLHzd6VG z99U4S/Su3VDXzHMZskvTe7zv70gJCPc9tFF/lnRJ6v2AQA= 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/amdkfd: Fix kernel panic when reset failed and been triggered again In SRIOV configuration, the reset may failed to bring asic back to normal but stop cpsch already been called, the start_cpsch will not be called since there is no resume in this case. When reset been triggered again, driver should avoid to do uninitialization again. The Linux kernel CVE team has assigned CVE-2021-47551 to this issue. Affected and fixed versions =========================== Fixed in 5.10.84 with commit 74aafe99efb6 Fixed in 5.15.7 with commit 06c6f8f86ec2 Fixed in 5.16 with commit 2cf49e00d40d 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-2021-47551 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_queue_manager.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/74aafe99efb68f15e50be9f7032c2168512f98a8 https://git.kernel.org/stable/c/06c6f8f86ec243b89e52f0c3dc7062bcb9de74df https://git.kernel.org/stable/c/2cf49e00d40d5132e3d067b5aa6d84791929ab15