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 52E612BCF6F for ; Sat, 16 Aug 2025 10:59:05 +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=1755341945; cv=none; b=MbDCPA5mXszJgqwsjEnAInvdK+8K4MpIFtOiBX6KhhfyZXOTiM+T2NTweSFGFYwaCb8oaXR0HrLKU6yxc6vja0YfGPW7Nx5lEZeb6fVu8YKjDIv8n6cDKrPHHF7JYR+M7ECt0I2NIWVg7yTufw13dV1A52fVFWKf3CqNcBtuHFc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755341945; c=relaxed/simple; bh=YlTUwUvS2dvnqW4DBDLEVX/s4+qJ69WX0c+e7PRS1Zs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KC/7n8cvKiGm4tthLOW8EFAtgBYdcpWMdh3+x7aRJPrTXVryvAWCEtNj3hLuLTgVPj1Dw1V7qvysZmuIevhWpGGt12p0mUVLMftiDSDYXxDpZXvTIQ71yEqV4lZ796E8B1wO2Ec8PUC/9l+gRCHdKv46ywzMfp0boA5U17//i7Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x4KlBsd9; 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="x4KlBsd9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD8F1C4CEEF; Sat, 16 Aug 2025 10:59:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755341945; bh=YlTUwUvS2dvnqW4DBDLEVX/s4+qJ69WX0c+e7PRS1Zs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=x4KlBsd9+MF2OuPv0bW8JqKAh97ClQlg+yhP70/mmSd1215pOZ04rSuEwPU5q0lvu i7b5kmP3hzq4h+x3EsSONPrpupyEqqqnypgGCwo7p0YyJjpKiGjwZsoRy/X1AROPy8 lW61Wtjdg4JjH2+6m2cIwP3P1jN75qpXIcfg0z7o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38521: drm/imagination: Fix kernel crash when hard resetting the GPU Date: Sat, 16 Aug 2025 12:58:03 +0200 Message-ID: <2025081654-CVE-2025-38521-4543@gregkh> X-Mailer: git-send-email 2.50.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=2917; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/DwhFVJ+eRrPAjoMVPZer8igA+L0Ey1bFKVv3088EA4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkLUox0XW+nKzFaX2WRS9v3sedS1+6mxt+TS0SndUpzr tRxsXPuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkEZTDMs1N6U1ow+5uC1N2H e6R05cXmRDirMcx3Kdz9/imLT/yqvmcmgq/fX596YcVkAA== 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: Fix kernel crash when hard resetting the GPU The GPU hard reset sequence calls pm_runtime_force_suspend() and pm_runtime_force_resume(), which according to their documentation should only be used during system-wide PM transitions to sleep states. The main issue though is that depending on some internal runtime PM state as seen by pm_runtime_force_suspend() (whether the usage count is <= 1), pm_runtime_force_resume() might not resume the device unless needed. If that happens, the runtime PM resume callback pvr_power_device_resume() is not called, the GPU clocks are not re-enabled, and the kernel crashes on the next attempt to access GPU registers as part of the power-on sequence. Replace calls to pm_runtime_force_suspend() and pm_runtime_force_resume() with direct calls to the driver's runtime PM callbacks, pvr_power_device_suspend() and pvr_power_device_resume(), to ensure clocks are re-enabled and avoid the kernel crash. The Linux kernel CVE team has assigned CVE-2025-38521 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit cc1aeedb98ad347c06ff59e991b2f94dfb4c565d and fixed in 6.12.39 with commit 9f852d301f642223c4798f3c13ba15e91165d078 Issue introduced in 6.8 with commit cc1aeedb98ad347c06ff59e991b2f94dfb4c565d and fixed in 6.15.7 with commit e066cc6e0f094ca2120f1928d126d56f686cd73e Issue introduced in 6.8 with commit cc1aeedb98ad347c06ff59e991b2f94dfb4c565d and fixed in 6.16 with commit d38376b3ee48d073c64e75e150510d7e6b4b04f7 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-38521 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_power.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/9f852d301f642223c4798f3c13ba15e91165d078 https://git.kernel.org/stable/c/e066cc6e0f094ca2120f1928d126d56f686cd73e https://git.kernel.org/stable/c/d38376b3ee48d073c64e75e150510d7e6b4b04f7