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 353CA3D6F for ; Thu, 1 May 2025 12:57:37 +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=1746104258; cv=none; b=U5+nrnZ8Acb+fjxMfV5cD1XEXTb9QtJFlrzN4OnSTAtZHNyDKybpfr3Z4xphGEKtPaZWEFURCl4t0Qo59DsGEXGm9por2TDHW9R3dQ+/479ESiqxpIN0mm05pXYE8V9Es+emspbHRQAd0ocMCtpyUhP+2Jyv7V6HGaHhLk85XWU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104258; c=relaxed/simple; bh=CA89ICMqOCOfcv3gUmOl1m6w4GPQnRqncVTg6J2gCdk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=biY0HtEVUe1Y33QUgEVbP4ipyBZ4CwDI/7xKrwF1NdKtffPdUOMwXFp0H/ua9Uzw4TeQoOhveBzX8mxKIriWh9tUvLKiHQrzPKZjl6jhPdJo9wfqs08MVuedd6knFVoaNdrwwFWLB9MBpCTgWU3ISLuNYNbeXMZTtvd1wRs0uSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HztkROLL; 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="HztkROLL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37B09C4CEE3; Thu, 1 May 2025 12:57:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104257; bh=CA89ICMqOCOfcv3gUmOl1m6w4GPQnRqncVTg6J2gCdk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HztkROLLJYsSLzWH/dJXLMR9O1+23dPbBS/tXnRBfIe5+gNxNF4cbqPqiEadbzKh+ F4+lFa9ntik0F4PyXOf1R0JYXzj+V6F9+oqsbSY41p3KJRe0KugviO77IfKvcAvbOu NyrtHO02aN9QMNyQUcih97aLSgrYW/Oap9rwqnsY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-23162: drm/xe/vf: Don't try to trigger a full GT reset if VF Date: Thu, 1 May 2025 14:56:42 +0200 Message-ID: <2025050132-CVE-2025-23162-fe44@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=3406; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X53Yx8CuTPOhUE9i0ho605eDbkm9OhMO9WnN2NYIBD4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnC+Q1c64x81S3XTLNJyvGaPPNkW0VOM09B48VO3o/fH dujmZU6YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCIXJjLMd0oIPFx78Z2HMo/V +RmOXR83v1XOYpgrv4mf6Z2Y+otvi68V3y3se8mb6s0OAA== 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/xe/vf: Don't try to trigger a full GT reset if VF VFs don't have access to the GDRST(0x941c) register that driver uses to reset a GT. Attempt to trigger a reset using debugfs: $ cat /sys/kernel/debug/dri/0000:00:02.1/gt0/force_reset or due to a hang condition detected by the driver leads to: [ ] xe 0000:00:02.1: [drm] GT0: trying reset from force_reset [xe] [ ] xe 0000:00:02.1: [drm] GT0: reset queued [ ] xe 0000:00:02.1: [drm] GT0: reset started [ ] ------------[ cut here ]------------ [ ] xe 0000:00:02.1: [drm] GT0: VF is trying to write 0x1 to an inaccessible register 0x941c+0x0 [ ] WARNING: CPU: 3 PID: 3069 at drivers/gpu/drm/xe/xe_gt_sriov_vf.c:996 xe_gt_sriov_vf_write32+0xc6/0x580 [xe] [ ] RIP: 0010:xe_gt_sriov_vf_write32+0xc6/0x580 [xe] [ ] Call Trace: [ ] [ ] ? show_regs+0x6c/0x80 [ ] ? __warn+0x93/0x1c0 [ ] ? xe_gt_sriov_vf_write32+0xc6/0x580 [xe] [ ] ? report_bug+0x182/0x1b0 [ ] ? handle_bug+0x6e/0xb0 [ ] ? exc_invalid_op+0x18/0x80 [ ] ? asm_exc_invalid_op+0x1b/0x20 [ ] ? xe_gt_sriov_vf_write32+0xc6/0x580 [xe] [ ] ? xe_gt_sriov_vf_write32+0xc6/0x580 [xe] [ ] ? xe_gt_tlb_invalidation_reset+0xef/0x110 [xe] [ ] ? __mutex_unlock_slowpath+0x41/0x2e0 [ ] xe_mmio_write32+0x64/0x150 [xe] [ ] do_gt_reset+0x2f/0xa0 [xe] [ ] gt_reset_worker+0x14e/0x1e0 [xe] [ ] process_one_work+0x21c/0x740 [ ] worker_thread+0x1db/0x3c0 Fix that by sending H2G VF_RESET(0x5507) action instead. The Linux kernel CVE team has assigned CVE-2025-23162 to this issue. Affected and fixed versions =========================== Fixed in 6.12.24 with commit 2eec2fa8666dcecebae33a565a818c9de9af8b50 Fixed in 6.13.12 with commit 90b16edb3213e4ae4a3138bb20703ae367e88a01 Fixed in 6.14.3 with commit a9bc61a61372897886f58fdaa5582e3f7bf9a50b Fixed in 6.15-rc1 with commit 459777724d306315070d24608fcd89aea85516d6 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-23162 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/xe/xe_gt.c drivers/gpu/drm/xe/xe_gt_sriov_vf.c drivers/gpu/drm/xe/xe_gt_sriov_vf.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/2eec2fa8666dcecebae33a565a818c9de9af8b50 https://git.kernel.org/stable/c/90b16edb3213e4ae4a3138bb20703ae367e88a01 https://git.kernel.org/stable/c/a9bc61a61372897886f58fdaa5582e3f7bf9a50b https://git.kernel.org/stable/c/459777724d306315070d24608fcd89aea85516d6