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 AF2FA143735 for ; Tue, 21 May 2024 15:06:57 +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=1716304017; cv=none; b=MrhOihSUsnMmUOkIz43Jls/RO7bCVEZfpeF6SlFAhNmlau6zjt+9lzsIrViS+eRuTMVq7rkJOXYo0TAarbqVKIV+TYiPy0nvjc9JPH1UZbSm1gtyq2scSmkzsxYKD6kkBnX5pRPzMFzLCuLQvVpMRd/jTjX0ofhi6h202xintF4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716304017; c=relaxed/simple; bh=HvH8BaRR08A2R8Fl8Lozv5I3LYKpi6uMixRUnRxczhs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BDg6scaXYAZN7wXvI/zZ/eO498jg4teS4qooIZQenSbq1G2fO2Gz8eKRSA59lpAtccg1s7EH/bSwn7LrgLSVyWjyaQGB68VxwwaCCTwt2BU5qD3ANZN6Xjv8of3GS6hzIdeIilAdLWSlXzbIavRjNOIlQsHBY5eV70WumQw+y7A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TsRhO0zA; 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="TsRhO0zA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 382C8C2BD11; Tue, 21 May 2024 15:06:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716304017; bh=HvH8BaRR08A2R8Fl8Lozv5I3LYKpi6uMixRUnRxczhs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TsRhO0zArkXA8qAgA3cgDubJxP2Di4oxyF1zF9RMTWXFnDBlFih2eQQGVkJJQXZG2 0fv5iwUigr9ryT/+nw0NqL0x2eAYeMzjog4eEH1HssjaSPdPSRmbRxnHKdzZXIl8Uo NCtzKmZ2OaLZNFC8UsVDkR+3m3pBI0MJLavtHGgk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47420: drm/amdkfd: fix a potential ttm->sg memory leak Date: Tue, 21 May 2024 17:04:37 +0200 Message-ID: <2024052155-CVE-2021-47420-939e@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=1801; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HvH8BaRR08A2R8Fl8Lozv5I3LYKpi6uMixRUnRxczhs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+22//3XJa95xpzxSFfC+HujNfra9dO7+6qMe778Sv0 ORsM6MpHTEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR0mCG6d5a2Yccxf877UjJ tYuKVNWoYZjPsKBX/tU917aPV5/+dGJiXx28ba/jpEYA 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 potential ttm->sg memory leak Memory is allocated for ttm->sg by kmalloc in kfd_mem_dmamap_userptr, but isn't freed by kfree in kfd_mem_dmaunmap_userptr. Free it! The Linux kernel CVE team has assigned CVE-2021-47420 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 264fb4d332f5 and fixed in 5.14.12 with commit 7e5ce6029b62 Issue introduced in 5.14 with commit 264fb4d332f5 and fixed in 5.15 with commit b072ef1215ac 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-47420 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_gpuvm.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/7e5ce6029b627efb4a004746cfdc1eeff850e6eb https://git.kernel.org/stable/c/b072ef1215aca33186e3a10109e872e528a9e516