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 E60C928F3 for ; Thu, 1 May 2025 13:07:56 +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=1746104877; cv=none; b=iUcJWCYraBf1nYXc58ABqFF1z7Xve6FOJHsmC/RsL5BU1hHMA/VwIWAsFPV+S1G8WGkU8m16xt0+g661WwI+yftdV3pw50qrdpZ2X7j3snVQclWndTQxiWTmNOcBbT86F+uMYlHGXyuhVAhWwDJfxI8Ui0EyGMm8k9D6FP/Vu14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104877; c=relaxed/simple; bh=SWcolYETceEnmJYFRvbReM4bKqs5z7NJ0YUk5sAD/lw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KIFfWA18IjQeijHmYs5hp5N0iTwHUYNXr5hHOyw61ZEZQoqiZkRAbiDn+MYorLOe4JIv5KBQmx1n1T0hSdlDrE07r9IsLk4oXZtjbMcd4hNRfI36lmUJO+dA/74b6QJxtoRXLJ9P0JLvaSMb9ju6qFiTUAF0jN4sg+UPAuowCAM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PhsR+OXd; 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="PhsR+OXd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64EB5C4CEE3; Thu, 1 May 2025 13:07:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104876; bh=SWcolYETceEnmJYFRvbReM4bKqs5z7NJ0YUk5sAD/lw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PhsR+OXdlm2mQS4jsAmCINkBk5+ISGdbHOzIADNF6Iq7yqY/x/sM+FtMc6vMd86qp 85PpUh5vLuubd07QzppOD1pBvlEmmLFRplrndhlZgLBHlvSEAt1a54ifNmMvZlOuEg v4InttijmEYZrxDJunX6et1oGxvlHGDbmeP1Jh5Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37763: drm/imagination: take paired job reference Date: Thu, 1 May 2025 15:07:11 +0200 Message-ID: <2025050110-CVE-2025-37763-7fc5@gregkh> X-Mailer: git-send-email 2.49.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=2637; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kCyUMKZk97cF8Z4DWbX2rvYshLO8BwlUekNer4a3skE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnChf+333qhm1ZcvvxXxZwiB9cLLRbs587qHpj9/Ufk8 ssdj/TCO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAis34zLLhxfNbaj52FX7a8 vLA/QrknsOLKnp0MCyZeWXgsdlL7shpuv8uzdX5dn784LA4A X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/imagination: take paired job reference For paired jobs, have the fragment job take a reference on the geometry job, so that the geometry job cannot be freed until the fragment job has finished with it. The geometry job structure is accessed when the fragment job is being prepared by the GPU scheduler. Taking the reference prevents the geometry job being freed until the fragment job no longer requires it. Fixes a use after free bug detected by KASAN: [ 124.256386] BUG: KASAN: slab-use-after-free in pvr_queue_prepare_job+0x108/0x868 [powervr] [ 124.264893] Read of size 1 at addr ffff0000084cb960 by task kworker/u16:4/63 The Linux kernel CVE team has assigned CVE-2025-37763 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit eaf01ee5ba28b97f96a3d3eec4c5fbfb37ee4cde and fixed in 6.12.25 with commit c90b95e12eb88d23740e5ea2c43d71675d17ac8d Issue introduced in 6.8 with commit eaf01ee5ba28b97f96a3d3eec4c5fbfb37ee4cde and fixed in 6.14.4 with commit b5a6f97a78e2fc008fd6503b7040cb7e1120b873 Issue introduced in 6.8 with commit eaf01ee5ba28b97f96a3d3eec4c5fbfb37ee4cde and fixed in 6.15-rc2 with commit 4ba2abe154ef68f9612eee9d6fbfe53a1736b064 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-2025-37763 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_job.c drivers/gpu/drm/imagination/pvr_queue.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/c90b95e12eb88d23740e5ea2c43d71675d17ac8d https://git.kernel.org/stable/c/b5a6f97a78e2fc008fd6503b7040cb7e1120b873 https://git.kernel.org/stable/c/4ba2abe154ef68f9612eee9d6fbfe53a1736b064