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 88D32194AD7 for ; Sat, 6 Dec 2025 21:52:31 +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=1765057951; cv=none; b=lrpsclRBigFoFliP8HQDY1/Yf4rfMIaakSVC0pCosE9gVG7XwZStHfWDz6DtKqIe44RrSFgdE31pfbGiCV7wCzoNYOe0Va3y20FzqDAhAFmvDd2nqbdro3YBk+awOiGmtfIRwCsA57+RDKRv/cjvC4ZeA4wES0jTguUGnkYuRL0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765057951; c=relaxed/simple; bh=tgeFbQuyp8HUhPJMIqqAqXwCk26n94HhaNxuUbj6BWU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OCEvfkOwaaJJW38CR36kZRfDc5w/r6Pb2ueR6hvJW9YyLZpYsR/vbm2IHokku5n6mT1McYaAANoB3LyRxw3pm4UcHLUtYF0XMtnnsO7YGhq1HjGszMlnXaqYf3ohr788YPnQgpYSVGi5jTSPENJaJciXl6O7uFlpHfRWUPDB7os= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zmn9lXSa; 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="zmn9lXSa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A9F70C4CEF5; Sat, 6 Dec 2025 21:52:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765057951; bh=tgeFbQuyp8HUhPJMIqqAqXwCk26n94HhaNxuUbj6BWU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=zmn9lXSarWaC8T0AAn40QlZ3PqIXsyeWPJ+99F60QgtqR7Y7fgrP7MEtxirti8Ugv xAfeQHQ+v6OIX6q3lgqYYKWw+mo5xETPmwR/KJ+mH7XF+Wx83Kpjgm098m9K416D34 B2+6eMlpVd5+Arxme/zhCFaWJU5chx2xkZ8uNfCM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40277: drm/vmwgfx: Validate command header size against SVGA_CMD_MAX_DATASIZE Date: Sun, 7 Dec 2025 06:52:24 +0900 Message-ID: <2025120717-CVE-2025-40277-d511@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3306; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qWwUcsKfINZv3tLUtFsp9GThk1SO7SJSfuZFPsbXeIE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkmSyc+LXbPV3vy3z6wJtFMklcqPID1ZNplfmYplp65R 76+NprWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMRaGWYH/U6ebvqdLY/l5fZ 3Lj5/GWdWLB+IsP8vPBws8/tfQ7/HVRX1Pus4T9+i4ELAA== 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/vmwgfx: Validate command header size against SVGA_CMD_MAX_DATASIZE This data originates from userspace and is used in buffer offset calculations which could potentially overflow causing an out-of-bounds access. The Linux kernel CVE team has assigned CVE-2025-40277 to this issue. Affected and fixed versions =========================== Issue introduced in 4.3 with commit 8ce75f8ab9044fe11caaaf2b2c82471023212f9f and fixed in 5.4.302 with commit e58559845021c3bad5e094219378b869157fad53 Issue introduced in 4.3 with commit 8ce75f8ab9044fe11caaaf2b2c82471023212f9f and fixed in 5.10.247 with commit 54d458b244893e47bda52ec3943fdfbc8d7d068b Issue introduced in 4.3 with commit 8ce75f8ab9044fe11caaaf2b2c82471023212f9f and fixed in 5.15.197 with commit 709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173 Issue introduced in 4.3 with commit 8ce75f8ab9044fe11caaaf2b2c82471023212f9f and fixed in 6.1.159 with commit a3abb54c27b2c393c44362399777ad2f6e1ff17e Issue introduced in 4.3 with commit 8ce75f8ab9044fe11caaaf2b2c82471023212f9f and fixed in 6.6.117 with commit b5df9e06eed3df6a4f5c6f8453013b0cabb927b4 Issue introduced in 4.3 with commit 8ce75f8ab9044fe11caaaf2b2c82471023212f9f and fixed in 6.12.59 with commit 5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc Issue introduced in 4.3 with commit 8ce75f8ab9044fe11caaaf2b2c82471023212f9f and fixed in 6.17.9 with commit f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0 Issue introduced in 4.3 with commit 8ce75f8ab9044fe11caaaf2b2c82471023212f9f and fixed in 6.18 with commit 32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af 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-40277 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/vmwgfx/vmwgfx_execbuf.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/e58559845021c3bad5e094219378b869157fad53 https://git.kernel.org/stable/c/54d458b244893e47bda52ec3943fdfbc8d7d068b https://git.kernel.org/stable/c/709e5c088f9c99a5cf2c1d1c6ce58f2cca7ab173 https://git.kernel.org/stable/c/a3abb54c27b2c393c44362399777ad2f6e1ff17e https://git.kernel.org/stable/c/b5df9e06eed3df6a4f5c6f8453013b0cabb927b4 https://git.kernel.org/stable/c/5aea2cde03d4247cdcf53f9ab7d0747c9dca1cfc https://git.kernel.org/stable/c/f3f3a8eb3f0ba799fae057091d8c67cca12d6fa0 https://git.kernel.org/stable/c/32b415a9dc2c212e809b7ebc2b14bc3fbda2b9af