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 0B292198A05 for ; Wed, 4 Dec 2024 14:21:41 +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=1733322102; cv=none; b=nNcvNHAAnFDIXpCwkB/JlrR2yhZ2JQzXeOT7NbT4ydpnXlTSZg20eG0pi3RLpwzuoG3TwsLH9IPBtFMy7Nt4Mo55Yu9FS8iBdADeRAiHHzLLm2M1sO0Q8sg6bGLi7SuxLmp6CvKdSbuXBSgAwlAYHl4Atvz6cOh01jaQHWIe5eA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733322102; c=relaxed/simple; bh=sZQH7vmDNUXgBG/YjZfsHTQ2EFBx1AmU4YpGqk7mdno=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=H8j0/etbX1l4hYKw2kNE2XnyOwpkYMuA63eYHRpGS6egQdFupug/6RhaqNFKkjd89nA8SUCvC/Za2smpPOfCqp5UCEI0JMifCfz52RO8rHzkSsvGHJR/SVqj/F2V71zRwxUG3rL0ZDLbdkrQIJ1QD8uHFv70i7UjTFL4i1Z1vtU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KsEACx61; 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="KsEACx61" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1FB0FC4CECD; Wed, 4 Dec 2024 14:21:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1733322101; bh=sZQH7vmDNUXgBG/YjZfsHTQ2EFBx1AmU4YpGqk7mdno=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KsEACx619TIV3O3Sv6dstha4mKeWWMRd2OX/okicnzotECz16p0V4+eieR716g+X/ aSgGQpGaNqiq9OqFxaK8B6CYrmYHkp/d5u5O2+Qmo3U1TzPmIRwqzkTaMBB8DWzfUk AeKdkSkFisGGKfgP+GbJIOmcXuhR48NIrls5WkI0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53133: drm/amd/display: Handle dml allocation failure to avoid crash Date: Wed, 4 Dec 2024 15:20:56 +0100 Message-ID: <2024120451-CVE-2024-53133-b0b7@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=1988; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=sZQH7vmDNUXgBG/YjZfsHTQ2EFBx1AmU4YpGqk7mdno=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkBqc6zTW8Ezj1QUDzZ9U3fo3vNPY4Bb68GV9w01luye brloz/aHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRwOUMc2VkZzxZJ96i6DDP 5r75LDeto3sNfjAsWH4g1Ftn2iSRkJrQL311p0OLPBX2AwA= 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: Handle dml allocation failure to avoid crash [Why] In the case where a dml allocation fails for any reason, the current state's dml contexts would no longer be valid. Then subsequent calls dc_state_copy_internal would shallow copy invalid memory and if the new state was released, a double free would occur. [How] Reset dml pointers in new_state to NULL and avoid invalid pointer (cherry picked from commit bcafdc61529a48f6f06355d78eb41b3aeda5296c) The Linux kernel CVE team has assigned CVE-2024-53133 to this issue. Affected and fixed versions =========================== Fixed in 6.11.10 with commit 874ff59cde8f Fixed in 6.12 with commit 6825cb07b79f 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-53133 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_state.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/874ff59cde8fc525112dda26b501a1bac17dde9f https://git.kernel.org/stable/c/6825cb07b79ffeb1d90ffaa7a1227462cdca34ae