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 B3CCD1D26F6 for ; Tue, 19 Nov 2024 17:45: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=1732038341; cv=none; b=c8PU7t2+TU6INuq9qOawOgAryusNcgigP8gjh7c+SydXepjQS4z7PsIM/gMNbbjTxz/gbTzHMtSmC2JUVCeIBUfx8GuZwFUVSYJ7+uMH+jsNRcFNsn8XRGAvB+5h7Kmnc0UJzolmt6pRPSqr2Y0DC/vQg0yttiK1N867cCil3pQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732038341; c=relaxed/simple; bh=/6ym3Vm3dEaOccyJXCpP17yiMEUsdeMlD1p3VnGHchg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=JiQ0C1/+khpviBzO7magrD9VWBP/YXb1RP/nGgt1aKea0cXmD7WqGafci5Go7ScDaCPoICO1/SWjboHS+3A/aBTe4Lit1ErlnZCSRcexoy2JoxNL7wkUpjY69tLidaG557VZQcsPRFHmRIk8qcqIKLvEV9SCPkQzLADzI7XxcwU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZQOLELvx; 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="ZQOLELvx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4EC6EC4CECF; Tue, 19 Nov 2024 17:45:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1732038341; bh=/6ym3Vm3dEaOccyJXCpP17yiMEUsdeMlD1p3VnGHchg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZQOLELvxGvirC2I7aQfb0GgQdWqV5BTY4Y22M2kqK21lQJw7Q6WlJuzQN3/DWx9MI baXmcEsxsIS/LdmrfE2s6HCU5GoHL8wT5yWLjadg3TviGd7GdfhjxmxmSPQR8SqSPc fIXroaJ76vncclCCTdMJNon3YQGvDysnn2w+puTw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53084: drm/imagination: Break an object reference loop Date: Tue, 19 Nov 2024 18:45:04 +0100 Message-ID: <2024111905-CVE-2024-53084-1021@gregkh> X-Mailer: git-send-email 2.47.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=2551; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/6ym3Vm3dEaOccyJXCpP17yiMEUsdeMlD1p3VnGHchg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk25xZODN27u3XyBLULgu17uiZILX96nSM8+MGee7ry+ R82Om3c3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATeeTNsGBhcMEE5nsbvs1s DtGrSQs5fvxvZTHDXGG3abvOTspPSNy0WHGajYLJTmu7EgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/imagination: Break an object reference loop When remaining resources are being cleaned up on driver close, outstanding VM mappings may result in resources being leaked, due to an object reference loop, as shown below, with each object (or set of objects) referencing the object below it: PVR GEM Object GPU scheduler "finished" fence GPU scheduler “scheduled” fence PVR driver “done” fence PVR Context PVR VM Context PVR VM Mappings PVR GEM Object The reference that the PVR VM Context has on the VM mappings is a soft one, in the sense that the freeing of outstanding VM mappings is done as part of VM context destruction; no reference counts are involved, as is the case for all the other references in the loop. To break the reference loop during cleanup, free the outstanding VM mappings before destroying the PVR Context associated with the VM context. The Linux kernel CVE team has assigned CVE-2024-53084 to this issue. Affected and fixed versions =========================== Fixed in 6.11.8 with commit cb86db12b290 Fixed in 6.12 with commit b04ce1e718bd 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-53084 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/imagination/pvr_context.c drivers/gpu/drm/imagination/pvr_context.h drivers/gpu/drm/imagination/pvr_vm.c drivers/gpu/drm/imagination/pvr_vm.h 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/cb86db12b290ed07d05df00d99fa150bb123e80e https://git.kernel.org/stable/c/b04ce1e718bd55302b52d05d6873e233cb3ec7a1