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 29E27145A02 for ; Tue, 21 May 2024 15:37:22 +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=1716305842; cv=none; b=tay4OXf/h1VAGi526R1F+tWjZzWPiGAGX3WguF8BQIKXD6CYM4jD7gBvnKVoAd67D++i/L5ZskQSx4c7jM+nLpw2X158r5jAb01tq3jzRX7Y3DZWoDq1j81uO5hdZ6kAd5KnkP8MoKzWqp8pH1LnR1QkIjSxz1ynAQ9pKtTmqTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305842; c=relaxed/simple; bh=28nRfjw2l+JFun1phNsvY3LyOMvRnxkhs3EGKbvxecs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nBci9EzrRXZ9+0r57NYvu6KYvWmxGJ3E5yAEJjtju6nNaU0lvn8tbDxmv6OXyKX5sVhq19+/H3YO+rUylkksQxqjzS8XTVKGIB5HRxudL7SHioBmpoZtM3vH9ADBpjVUeDcAsRobmmLma9fslEKe3LTI9hPlzUI7m6d1U9vaViU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VzhyWZV0; 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="VzhyWZV0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6ECCC2BD11; Tue, 21 May 2024 15:37:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305842; bh=28nRfjw2l+JFun1phNsvY3LyOMvRnxkhs3EGKbvxecs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VzhyWZV0eyGzXE+ZVEsijUk5RjnWXIo1hkjpxCrx7RlgrzYdwNDadbGFk62SoGp4E QMbkcHJcDaZ1UnYhMr2qYSfIv5Obiwc7/diNFqbPPJUBDerGUfsNxFIgmE85oTO7Xf HoKkHDK95oOApYUnOM3XqoQ4FeMMZHmImYB/nU28= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52825: drm/amdkfd: Fix a race condition of vram buffer unref in svm code Date: Tue, 21 May 2024 17:32:01 +0200 Message-ID: <2024052106-CVE-2023-52825-0696@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=2119; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=28nRfjw2l+JFun1phNsvY3LyOMvRnxkhs3EGKbvxecs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++6wOMn4sbb3xZZ+H6of3qo7FJeYZeXdEpT6FT/rJG fBn8VmrjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIpi/DgqP6Eap2Gvcu7+vK 2MAdG/dFn89nB8M8nd5g0xVZhzY5KnmJVfCenXbuhcpiAA== 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/amdkfd: Fix a race condition of vram buffer unref in svm code prange->svm_bo unref can happen in both mmu callback and a callback after migrate to system ram. Both are async call in different tasks. Sync svm_bo unref operation to avoid random "use-after-free". The Linux kernel CVE team has assigned CVE-2023-52825 to this issue. Affected and fixed versions =========================== Fixed in 5.15.140 with commit 7d43cdd22cd8 Fixed in 6.1.64 with commit 50f35a907c4f Fixed in 6.5.13 with commit c772eacbd6d0 Fixed in 6.6.3 with commit fc0210720127 Fixed in 6.7 with commit 709c34826161 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-2023-52825 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_svm.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/7d43cdd22cd81a2b079e864c4321b9aba4c6af34 https://git.kernel.org/stable/c/50f35a907c4f9ed431fd3dbb8b871ef1cbb0718e https://git.kernel.org/stable/c/c772eacbd6d0845fc922af8716bb9d29ae27b8cf https://git.kernel.org/stable/c/fc0210720127cc6302e6d6f3de48f49c3fcf5659 https://git.kernel.org/stable/c/709c348261618da7ed89d6c303e2ceb9e453ba74