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 1173212D1EB for ; Fri, 24 May 2024 15:11:29 +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=1716563490; cv=none; b=JmURNwh6Yk+YYNrnO+pcUWJITQ7lj10zBr1TTYdAcpVClDCGhqxm02gCHRajajRQbSsR2EJyUDUI5RWSxFtiI/4miy1LRR2+HJbQ2uy8MWVIqK7gfUTEb7PRWJulcIZrz2DMK0Jf9mbAVjEEhOKBa8uIjlmrYu07X/cb5Dvb2zs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716563490; c=relaxed/simple; bh=VDvJDAHUoxCn/w95I4pX4eQgN7oci45uDsDP4CziR7E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UesxSpWunGdCZJv1ApndpHmp+k9vebmWzaVMlg0CG9QsVvapeYQLU2wvNrGWDfquM10v6YXEJmOz23TmXXLlhgnWEokEULC1kilWk/39xu13uxz4Vaor9TidMx4JQ8IrBE+Q8jRa/RD4lu3CZsIGqVEBT5CflJSEg/q6BNy8C4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sskxM5VM; 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="sskxM5VM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C49DC4AF08; Fri, 24 May 2024 15:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716563489; bh=VDvJDAHUoxCn/w95I4pX4eQgN7oci45uDsDP4CziR7E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sskxM5VM2Ejb6i2RCQkuiYqX3A/Q706jygaLCA6vXCqcqUx9MBDNPRx8iFoWQ/pNc E3jWTzNTftKPbNRIEcz15NnM2r/CMbykPjG+XxLqAJ9XrkmgCI1J97Wk8OtdH9+EOz zdL/DnRaFJalS14ce9QxrWveqyFp45S2DYi+rNIk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47550: drm/amd/amdgpu: fix potential memleak Date: Fri, 24 May 2024 17:10:10 +0200 Message-ID: <2024052442-CVE-2021-47550-a5e1@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=1781; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VDvJDAHUoxCn/w95I4pX4eQgN7oci45uDsDP4CziR7E=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkBa7et4GBwu76zau9pLuMVaaoJNW7GNYJWzDNUbuTY9 z056vqgI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbyZRHD/AjzlW49ASebn4t2 G2359lk9p6E4gWG+7xvFp33pnqzbE9+vPd+1ZZLkhC4zAA== 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 potential memleak In function amdgpu_get_xgmi_hive, when kobject_init_and_add failed There is a potential memleak if not call kobject_put. The Linux kernel CVE team has assigned CVE-2021-47550 to this issue. Affected and fixed versions =========================== Fixed in 5.10.84 with commit c746945fb6bc Fixed in 5.15.7 with commit 75752ada77e0 Fixed in 5.16 with commit 27dfaedc0d32 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-47550 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_xgmi.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/c746945fb6bcbe3863c9ea6369c7ef376e38e5eb https://git.kernel.org/stable/c/75752ada77e0726327adf68018b9f50ae091baeb https://git.kernel.org/stable/c/27dfaedc0d321b4ea4e10c53e4679d6911ab17aa