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 198DE29D278 for ; Sat, 16 Aug 2025 10:58:58 +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=1755341939; cv=none; b=AlWM5sUzsqqgkEwW/nT2w/adriH2WQKdnGzqRnr04Q7gi7J/HJhPCKlXo5Dm9is40kL/xsOt5Rj1eun87Z85FD1OJoYifAFVIJ8pEvoEaMAx4JdwToD5ZZfa0zZBH/+Q+UEDgYUkRxtwcuXQ9+dMmUR3cIY6iAkss4xP/FfHXEo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755341939; c=relaxed/simple; bh=JEn61SJ2x8Y4tbNgEzPHnMquOVfz9bMc4OSZ0jd5gc4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AQPbgAEkYDuEfi0C9NVyX60DlLsxaVcf2OxKwmK/Nu2+n1wQjxQqp0HTewQd5FWiufTFSIhW78DwH5r/gwfjkOANSqbALgFF4DpDzzMYaukNvXIfgCUoeh9g/dg6sJB7mxy2MlEW2RGrKJtXEc9bi70ycggvZ2YieDkHPxU05Zw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ahbo33jM; 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="ahbo33jM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47308C4CEEF; Sat, 16 Aug 2025 10:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755341938; bh=JEn61SJ2x8Y4tbNgEzPHnMquOVfz9bMc4OSZ0jd5gc4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ahbo33jMkIKhTC1GeWn2/O2snCEYyN7Pq065rS4QQtPVsktQa3bMF5ZqhW3AbfE1x rjU2DakZW1SIoWm7Zfe+lKCuVS4GWzAojdYB4uRyIgVS1YgupVWX322CniU/oyI69k 3AsA5U0oy6aKB8c7ZpQORwa8sZv/Xt1xb5V4Vwno= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38511: drm/xe/pf: Clear all LMTT pages on alloc Date: Sat, 16 Aug 2025 12:57:53 +0200 Message-ID: <2025081651-CVE-2025-38511-5370@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=2574; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cEZTu10xB9oDMVu8hfNssthUJfvuoeG+VGaws0Xz/0E=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkLUvRtMu7cli4pc14dIfHuMseegmafyLAiYVFfAclPJ RZb12d3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwERkNjPMs13E96rT8ktG9+Id Yo+fVGqEBtgdYZjvcO1TQfL7tR8SAvkXGntfy+9zMWkHAA== 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/pf: Clear all LMTT pages on alloc Our LMEM buffer objects are not cleared by default on alloc and during VF provisioning we only setup LMTT PTEs for the actually provisioned LMEM range. But beyond that valid range we might leave some stale data that could either point to some other VFs allocations or even to the PF pages. Explicitly clear all new LMTT page to avoid the risk that a malicious VF would try to exploit that gap. While around add asserts to catch any undesired PTE overwrites and low-level debug traces to track LMTT PT life-cycle. (cherry picked from commit 3fae6918a3e27cce20ded2551f863fb05d4bef8d) The Linux kernel CVE team has assigned CVE-2025-38511 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit b1d20405821812ad70d95eefe58cadc6d50b0917 and fixed in 6.12.39 with commit ff4b8c9ade1b82979fdd01e6f45b60f92eed26d8 Issue introduced in 6.8 with commit b1d20405821812ad70d95eefe58cadc6d50b0917 and fixed in 6.15.7 with commit 5d21892c2e15b6a27f8bc907693eca7c6b7cc269 Issue introduced in 6.8 with commit b1d20405821812ad70d95eefe58cadc6d50b0917 and fixed in 6.16 with commit 705a412a367f383430fa34bada387af2e52eb043 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-38511 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_lmtt.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/ff4b8c9ade1b82979fdd01e6f45b60f92eed26d8 https://git.kernel.org/stable/c/5d21892c2e15b6a27f8bc907693eca7c6b7cc269 https://git.kernel.org/stable/c/705a412a367f383430fa34bada387af2e52eb043