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 0638012F593 for ; Tue, 21 May 2024 14:21: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=1716301293; cv=none; b=Y5VvJX+A3UpyhmMrp+SPQBTzHkujFI8EYCzyOb5K/VHzTzwj0JdhQlc7H1Ab+5HCWKEVNp4mU1YIPQ8fcTCMS/tRuqSBE4fN59kPoIJn9rVr3c8k54gbXupcCRitPDuIBrtMRCg9YQMzySFm+2X8BKP2G6x7/A3rZBtTeGMEbn4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301293; c=relaxed/simple; bh=islRlH08NzKpqPYXxFaRcvyvZulFJJ/+lhPVwbanbTA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VNCQkuOUada/hiLZ2UBPS4l42H6sMKDT+VZG+bvOzN+OHLV11YcEdFJgSfpIPmHmUD0v0GK+KeD6ZMpr6hUnC0nSKXgGHLK+FMscRDh3eqcwGGdneNiVlZlhmg3YEN7c+yNSAWBF/+Kz5S+idJE3HBPWiU9mBI35EPvQAierf4A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YvQiQUnf; 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="YvQiQUnf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 069D0C32786; Tue, 21 May 2024 14:21:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301292; bh=islRlH08NzKpqPYXxFaRcvyvZulFJJ/+lhPVwbanbTA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YvQiQUnfOkbOp3RAcg6oJzHKONOhE/S0XxahJp/o6g0w0b4i1IwOoYqvxr30i4Bg8 23j7WFGnCOnOISnU0jejgAKN6uGq2FVdsEMkzTzdRPdXJlJ1/VumUySRfYZRWa5m2w On2CGx++v54+0eXnr2TDt9jtNnqYdLKRsksNdHSU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47253: drm/amd/display: Fix potential memory leak in DMUB hw_init Date: Tue, 21 May 2024 16:20:07 +0200 Message-ID: <2024052145-CVE-2021-47253-d6c6@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=2006; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=islRlH08NzKpqPYXxFaRcvyvZulFJJ/+lhPVwbanbTA=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+axvnSbVw/fRQYzx6WmJZ5A9BpeNFgcqVBjs6Nq5J2 mT2yOhYRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEuZ9hwdUeXjejWIaNx2uy DBh+p7Tw32g5xDCTUWWLp6adi1vghtDMWYcXaEokxkwBAA== 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/display: Fix potential memory leak in DMUB hw_init [Why] On resume we perform DMUB hw_init which allocates memory: dm_resume->dm_dmub_hw_init->dc_dmub_srv_create->kzalloc That results in memory leak in suspend/resume scenarios. [How] Allocate memory for the DC wrapper to DMUB only if it was not allocated before. No need to reallocate it on suspend/resume. The Linux kernel CVE team has assigned CVE-2021-47253 to this issue. Affected and fixed versions =========================== Fixed in 5.10.45 with commit 9e8c2af01046 Fixed in 5.12.12 with commit aa000f828e60 Fixed in 5.13 with commit c5699e2d863f 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-47253 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/display/amdgpu_dm/amdgpu_dm.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/9e8c2af010463197315fa54a6c17e74988b5259c https://git.kernel.org/stable/c/aa000f828e60ac15d6340f606ec4a673966f5b0b https://git.kernel.org/stable/c/c5699e2d863f58221044efdc3fa712dd32d55cde