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 2FFC61957FC for ; Wed, 8 Jan 2025 17:49: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=1736358573; cv=none; b=XIZYS1w+S6+T/VQ+BGGk2dk+nthBueK5gnHvdrKnMvdScD2LnzcUWW6KjgITdnk/2BetrAj/l+WX3aYsLSvKtj1eWcq57WKEMuY2UDn/v8g2bD/+GOL7019YUajlAeFeNRwKVow1HuoI6skTgTuyJlDeB76H2TLkl+LsMXW3vsI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736358573; c=relaxed/simple; bh=U2yCurIT8U23x8EItIdOewIgypR3SmlbyoR71u3/nO4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TDuCZqkp/XaYddCy9B938EEP18qVSNQALGuO21jB8T7i1uJuQF2PBmUCmneDllgUmgVbrF7IP14S+4FVsrInaEbo05eER8MawoxZhm47kPkCWhKpyrV9OBsT2poyd1xf7H4d8xziU8fH4RaD4I/MlZLv+LWogYYaILXwyl6qbWE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aJgob0Wn; 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="aJgob0Wn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F937C4CED3; Wed, 8 Jan 2025 17:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736358572; bh=U2yCurIT8U23x8EItIdOewIgypR3SmlbyoR71u3/nO4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aJgob0Wnl8RngXyo8cDM+0DjKtTRrxG7eup815y3W/pAkJxJLCvJHZZdaKpJ0eLhZ xF+XXf5LehlRNWOhgVlmNjDjsU+64LK0SJfZOrxCthAyg35j884F75oi+UgDvSKqVp 8JBB7CrexFGGfug6i28nIpd97wSPgIdaDx4SG+MU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56775: drm/amd/display: Fix handling of plane refcount Date: Wed, 8 Jan 2025 18:49:13 +0100 Message-ID: <2025010811-CVE-2024-56775-b841@gregkh> X-Mailer: git-send-email 2.47.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=2017; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=U2yCurIT8U23x8EItIdOewIgypR3SmlbyoR71u3/nO4=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl1u6avSHoUyqbLsLkuOL14paWwNc+FRT9nbfrGMe2Dz 6p8tsTgjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIoxjD/IRneZkvWN5FRXLa tSv/FpfimvnagmHBgge1W07fuzrVWdq/qPJfH4fvEfl0AA== 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 handling of plane refcount [Why] The mechanism to backup and restore plane states doesn't maintain refcount, which can cause issues if the refcount of the plane changes in between backup and restore operations, such as memory leaks if the refcount was supposed to go down, or double frees / invalid memory accesses if the refcount was supposed to go up. [How] Cache and re-apply current refcount when restoring plane states. The Linux kernel CVE team has assigned CVE-2024-56775 to this issue. Affected and fixed versions =========================== Fixed in 6.12.4 with commit 8cb2f6793845f135b28361ba8e96901cae3e5790 Fixed in 6.13-rc1 with commit 27227a234c1487cb7a684615f0749c455218833a 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-2024-56775 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/dc/core/dc.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/8cb2f6793845f135b28361ba8e96901cae3e5790 https://git.kernel.org/stable/c/27227a234c1487cb7a684615f0749c455218833a