Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793187516; b=Kk4jGdgb3ZtAqg6KLU6CZa2syy9oeJFaJKI6ZQxI86QKuOgmUT4Wpo1DwfUSe2pa/9fh H6AFnSnN9zuceMHh7Q80UXmA5tQE9LuxbAGuPzVyWvzwmbz2WZmdZi85l4aK/kbRGqjEg BJf3FW/m6fE35HgxrFIunJYmuFLIX7LRzmHDUphIhAAWnKtrt9WFjbVm7oURKXAzwjQF8 kq6gVTL+/sTfepvfF9bl5/JPwP9Pv33N/gAuvXT97oFxrS3jJ8ISWtVafb2priDI4RlUp DN+3CSVcoKvft6MYgv+jco2MV1kn1HZyMuFCZfYHOIHfSAgyGAjEWHhyP03M6vCGDog== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187516; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=NkWaTSkgxc/z8yRM6rGgF11n20NcFthbRMtyKPIfByk=; b=sFkStVdatm909ft4tNTeHpTEcoLxmwTRmp+0Kq8wMry4IJtcBHzNm6NM7xg+gnKtb9mc 3J/UKIziqL0IpFRdpv7vw0N6S0TNgMLr6quigcRz2cMd6RRf8lOnUmGwG9Gw9Mr0Ka+Bp kL7JUnViqFQkA5sqbP+cVxD1tS+GaUqF+vofyJUa1R1DK8NirXXKSmn9XMkLkTQdPj6E4 +XWw3uSJrQsj7c29bk0TFdbgq5BhRFYJWBAob5YPMxYwzNHH7l9sGqGLHz2fIqGV4ZH2o UHeIo8kpGgV3ySry9bhqVNONIo8jdmxkuy6h/UaqT0zMhJiVvbkJR1SDTuMW/EJeXNA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=IimO6ZMg; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7C6F606A31A for ; Wed, 28 Oct 2026 11:38:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=IimO6ZMg Received: by smtp.kernel.org (Postfix) with ESMTPSA id A27941F01825; Wed, 28 Oct 2026 11:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187515; bh=NkWaTSkgxc/z8yRM6rGgF11n20NcFthbRMtyKPIfByk=; h=From:To:Cc:Subject:Date:Reply-To; b=IimO6ZMgaUYPbf+uOyBVFO2p7sK6ssGDMrJ+LgVwKYPAoNNFoFUN+5qS6/PKPcgUH hAPxeQKdtGlx73L9uUHPQLbuV/UTQYdEEc4SyEaCpXG1AaOFyZaV+mFyz9ZaH/EUNa xkcPucOlgWseXmIC21LD66X7knx8oXJVfkUUBQ6U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99145: drm/xe: Don't transfer shrinker pages for pinned bos on purgeable state change Date: Wed, 28 Oct 2026 11:35:32 +0100 Message-ID: <2026102802-CVE-2026-99145-4338@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2480; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6cB7qx252ZWxwX4/zAAoWIlx+HtBV2RZDE5TH0Yodh0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz1+b4Xn4ybwJL62VZvf83/Vyt79xd9fMhwo/Jqh7d i4ptXqwrCOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmwpfEMIdji/HkM/1tOTZv rVhuhqz13zply2eG+c7PXO+a3uVcdHn+b3bO3rsRLc0p6wA= 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: Don't transfer shrinker pages for pinned bos on purgeable state change Pinned bos have their pages removed from the shrinker's shrinkable / purgeable counts on pin, and added back on unpin according to the bo's purgeable state at that time. However, xe_bo_set_purgeable_shrinker() unconditionally transfers pages between the shrinkable and purgeable counts. If the purgeable state of a pinned bo changes, for example by userspace madvising DONTNEED on a VMA of a bo that is also pinned as a scanout buffer, this underflows one count and, after unpin, leaves the other one permanently inflated. Only update the purgeable flag for pinned bos, and leave the page accounting to unpin. (cherry picked from commit afe6bc012034123fd838328668e609bf57e46bd3) The Linux kernel CVE team has assigned CVE-2026-99145 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 536a2ead3a8f2048643da3e8340a4d73fdf71903 and fixed in 7.2.13 with commit 135e998dd1e66b8854db7bd356b6563baf8b9d51 Issue introduced in 7.1 with commit 536a2ead3a8f2048643da3e8340a4d73fdf71903 and fixed in 7.3 with commit ffbfd3f98f4393e91dffce3a46ccb7cf5329cf2f 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-2026-99145 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_bo.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/135e998dd1e66b8854db7bd356b6563baf8b9d51 https://git.kernel.org/stable/c/ffbfd3f98f4393e91dffce3a46ccb7cf5329cf2f