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 331FF16F858 for ; Mon, 25 Mar 2024 09:09:01 +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=1711357741; cv=none; b=LpXNkPUS0G9nPVInL3XNfpoZmOKn1GxZUHlDQuiRTmPAQuw6jWsaSJZH/giHVT4qSH1IWPUZifInh1vXsW4RfzoqhM1jB+vITChNT/svvrUO6YloFS4WMKmEj+RLjLYclmTGGEYZlS9384QVPsoJygJx1jTVS0nIwxkvumvBaqs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711357741; c=relaxed/simple; bh=M01FnDA73h7zpO70eJQaZg/4+8JaLcL9k7JK5n0Tr24=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A2E+74UDmKpM/VUeSn9utz7O9c3mdSmVGP9+YBnoRj0IZFdZLzOpFe3dDHFgDw0pU1Q7FGn4gRoqjH9kEqalRhJP0eC5VFr+CTjs4qdRxRx25rMpfF6Ck2AefBSw46VsRjfvj3pi8U1buPVAmWVaZZ+3/TrIoPJqo9RZV0pukwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sNrJeVJE; 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="sNrJeVJE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AAE1FC433F1; Mon, 25 Mar 2024 09:09:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711357741; bh=M01FnDA73h7zpO70eJQaZg/4+8JaLcL9k7JK5n0Tr24=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sNrJeVJEVSqm9xF7EaIqCVbgz+B9prj024MTcHTjYSEk9pcD9NpD3R6VZZyJCWJPo n01oZzUtdKk9fNxgPNeLHIilBp1gjr2n38ZbtHeEdwCWH/ZlqnPGd8o3JH5tpHgVNQ 5L8PZbFbAeITcV36ErnJTxI3S1MwKlJ50uCLbFpY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47144: drm/amd/amdgpu: fix refcount leak Date: Mon, 25 Mar 2024 10:08:01 +0100 Message-ID: <2024032558-CVE-2021-47144-26d3@gregkh> X-Mailer: git-send-email 2.44.0 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=2101; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=M01FnDA73h7zpO70eJQaZg/4+8JaLcL9k7JK5n0Tr24=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMdu80b7g0/U9ZdT5kGduiZ4zL5h+cfEGsIPrQvjzG3 HtP+SfO6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJcD5iWNCxKS26/aRWrN6l tKoNe3X//+GSj2FYsC5+kVtd4P8rU/SOLnu/7ei6NsaTdwA= 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/amdgpu: fix refcount leak [Why] the gem object rfb->base.obj[0] is get according to num_planes in amdgpufb_create, but is not put according to num_planes [How] put rfb->base.obj[0] in amdgpu_fbdev_destroy according to num_planes The Linux kernel CVE team has assigned CVE-2021-47144 to this issue. Affected and fixed versions =========================== Fixed in 4.19.193 with commit 599e5d61ace9 Fixed in 5.4.124 with commit dde2656e0bbb Fixed in 5.10.42 with commit 9fdb8ed37a3a Fixed in 5.12.9 with commit 95a4ec905e51 Fixed in 5.13 with commit fa7e6abc75f3 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-47144 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_fb.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/599e5d61ace952b0bb9bd942b198bbd0cfded1d7 https://git.kernel.org/stable/c/dde2656e0bbb2ac7d83a7bd95a8d5c3c95bbc009 https://git.kernel.org/stable/c/9fdb8ed37a3a44f9c49372b69f87fd5f61cb3240 https://git.kernel.org/stable/c/95a4ec905e51a30c64cf2d78b04a7acbeae5ca94 https://git.kernel.org/stable/c/fa7e6abc75f3d491bc561734312d065dc9dc2a77