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 EF3A6283125 for ; Wed, 18 Jun 2025 09:35:02 +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=1750239303; cv=none; b=XLz2eo4TMsMK4BwOAxawqiGLjefL2AmNUYudZNKY6h/is1CUHTnA9npWJl1spwSRqlxUlntDUPE+9nf6IpuHvUT2YNgaK9IG9BxsVRq8n9pyvKquXdlsOSc0+OsMCbwwonsxHkw1tuWJcKL1iCwM9ewrf/mfXi90iG8crCwEOfQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750239303; c=relaxed/simple; bh=GIbyUR7AKwoi2NJr2XXb8R+PjWlwiqEUoEry3LQ/xSY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fBIoR93WDakjszeih0URw18K16HCV4mZarafcNJoVLoSbwOeunzdFw7eM6gQ/zVn4XmPVZzIsr0mdyXy3WsVv0ofrQ6lDlvmt1GBYS2ACADihjZU+i3WwJgDbg3hBrrSEHUwr6t+2wbeGVNDp/5eItQZPZJDdxUrE9pMRvXGZzs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IbLUkxlp; 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="IbLUkxlp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12610C4CEE7; Wed, 18 Jun 2025 09:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750239302; bh=GIbyUR7AKwoi2NJr2XXb8R+PjWlwiqEUoEry3LQ/xSY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IbLUkxlpM3aPt+Gdf32x4GgxnXlmzL5dKAIXpfG6VVbo6yj+num3XB8aUimxgqYhc MxgsJMzzHLP7e51QbbpunNuqtfegNq1AzH/c67RrgVpu1CGCXkU8ZqDFdAJIpoeoFs nc8OWc719xvjLGUe/P9PfjHj263pRNWKhhTkE1C4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38036: drm/xe/vf: Perform early GT MMIO initialization to read GMDID Date: Wed, 18 Jun 2025 11:33:32 +0200 Message-ID: <2025061826-CVE-2025-38036-0063@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=2412; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IeuQnDHKe9Ae8Qd6RMSLzA4ont6EqqJuO7F9xirioZ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlB7c/C3HRfG3kzK32QDF9xNJDlVt/0N25a1qlue45/P T1L6UZ3RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk6jGGBdP+rjvdtHpCgHRF 5Xz26qX21Y3H9jAsWKrzY7XDnbUP5O18JX6t1LjGfen+VgA= 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: Perform early GT MMIO initialization to read GMDID VFs need to communicate with the GuC to obtain the GMDID value and existing GuC functions used for that assume that the GT has it's MMIO members already setup. However, due to recent refactoring the gt->mmio is initialized later, and any attempt by the VF to use xe_mmio_read|write() from GuC functions will lead to NPD crash due to unset MMIO register address: [] xe 0000:00:02.1: [drm] Running in SR-IOV VF mode [] xe 0000:00:02.1: [drm] GT0: sending H2G MMIO 0x5507 [] BUG: unable to handle page fault for address: 0000000000190240 Since we are already tweaking the id and type of the primary GT to mimic it's a Media GT before initializing the GuC communication, we can also call xe_gt_mmio_init() to perform early setup of the gt->mmio which will make those GuC functions work again. The Linux kernel CVE team has assigned CVE-2025-38036 to this issue. Affected and fixed versions =========================== Fixed in 6.14.9 with commit ef6e950aea76a5009ccc79ebfa955ecc66cd85a2 Fixed in 6.15 with commit 13265fe7426ec9ba5aa86baab913417ca361e8a4 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-38036 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_pci.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/ef6e950aea76a5009ccc79ebfa955ecc66cd85a2 https://git.kernel.org/stable/c/13265fe7426ec9ba5aa86baab913417ca361e8a4