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 5636227147D for ; Wed, 1 Oct 2025 11:52: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=1759319522; cv=none; b=kib9RzzRin7TODi3Za4mplPrda7VfWghEN7p0DI4qLs36Q6KFvomiVLm4yIxvi+HopW/uzG654bGSIPnhff3/5s8Rv8+f8etPQ+kQQaCmjvCO1x+SKR1nrmtaCdkXp1fYoxTzt61523/aC8RrobZIphqMeeAGF1koqwJbBRTRw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319522; c=relaxed/simple; bh=atwCPuOAdJ2T9nxiNBJ5YsuKk+PbuNUYjaNf8CKJd2E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OrZL61EmLhE7/T11jUbqXuUAqq2qMZKi9on+L2RH+d7l4HUFD3r3dh7DNXmZ7K5FILtb5PpaBLRC6GWDkjeY/4LIP4mHTE1LEBtBf25Z4Mr7AHP5sEpjJdIAjcR3t2QgDBVtpWD8/MDQZwjj1J9J02cSMbTDj2Y2viZ6r6IckkE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xOJTCU8b; 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="xOJTCU8b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C46F7C4CEF4; Wed, 1 Oct 2025 11:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319522; bh=atwCPuOAdJ2T9nxiNBJ5YsuKk+PbuNUYjaNf8CKJd2E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xOJTCU8beDY6jxNje+f/mNZplYJjiYvh0g+k4yg72QTADoVZ5QQjWPpfHQVnxSwhN 5DAWwJMJR4RJw/XGNvPwZqhTuFeti1q4E/qaW0HiyrMYGIjoS7AhTW/3+8xG8Abp1c v2w1zcRhkU4JwXh8IyBjDYs//11SpyTYRUbFKFXw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50440: drm/vmwgfx: Validate the box size for the snooped cursor Date: Wed, 1 Oct 2025 13:42:13 +0200 Message-ID: <2025100101-CVE-2022-50440-1afd@gregkh> X-Mailer: git-send-email 2.51.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=3614; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=FE9BzhEGzBVkIYqahE9xlgMs+Qupq44le/l1dx4UUxw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hTvZs/R5rBM0umX6nl3d3L7Wqb9W0ybJpmmfurJq5 SIHv6qOWBYGQSYGWTFFli/beI7urzik6GVoexpmDisTyBAGLk4BmMi+rwzzsw3SddmPtznfPLOy letrp/2inulFDAsu/fxe7TB7m2zYjNB8pqRnGRdnGJcCAA== 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 the box size for the snooped cursor Invalid userspace dma surface copies could potentially overflow the memcpy from the surface to the snooped image leading to crashes. To fix it the dimensions of the copybox have to be validated against the expected size of the snooped cursor. The Linux kernel CVE team has assigned CVE-2022-50440 to this issue. Affected and fixed versions =========================== Issue introduced in 3.2 with commit 2ac863719e518ae1a8f328849e64ea26a222f079 and fixed in 4.9.337 with commit ee8d31836cbe7c26e207bfa0a4a726f0a25cfcf6 Issue introduced in 3.2 with commit 2ac863719e518ae1a8f328849e64ea26a222f079 and fixed in 4.14.303 with commit 50d177f90b63ea4138560e500d92be5e4c928186 Issue introduced in 3.2 with commit 2ac863719e518ae1a8f328849e64ea26a222f079 and fixed in 4.19.270 with commit 6b4e70a428b5a11f56db94047b68e144529fe512 Issue introduced in 3.2 with commit 2ac863719e518ae1a8f328849e64ea26a222f079 and fixed in 5.4.229 with commit 94b283341f9f3f0ed56a360533766377a01540e0 Issue introduced in 3.2 with commit 2ac863719e518ae1a8f328849e64ea26a222f079 and fixed in 5.10.163 with commit 439cbbc1519547f9a7b483f0de33b556ebfec901 Issue introduced in 3.2 with commit 2ac863719e518ae1a8f328849e64ea26a222f079 and fixed in 5.15.87 with commit 6948e570f54f2044dd4da444b10471373a047eeb Issue introduced in 3.2 with commit 2ac863719e518ae1a8f328849e64ea26a222f079 and fixed in 6.0.18 with commit 4d54d11b49860686331c58a00f733b16a93edfc4 Issue introduced in 3.2 with commit 2ac863719e518ae1a8f328849e64ea26a222f079 and fixed in 6.1.4 with commit 622d527decaac0eb65512acada935a0fdc1d0202 Issue introduced in 3.2 with commit 2ac863719e518ae1a8f328849e64ea26a222f079 and fixed in 6.2 with commit 4cf949c7fafe21e085a4ee386bb2dade9067316e 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-2022-50440 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_kms.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/ee8d31836cbe7c26e207bfa0a4a726f0a25cfcf6 https://git.kernel.org/stable/c/50d177f90b63ea4138560e500d92be5e4c928186 https://git.kernel.org/stable/c/6b4e70a428b5a11f56db94047b68e144529fe512 https://git.kernel.org/stable/c/94b283341f9f3f0ed56a360533766377a01540e0 https://git.kernel.org/stable/c/439cbbc1519547f9a7b483f0de33b556ebfec901 https://git.kernel.org/stable/c/6948e570f54f2044dd4da444b10471373a047eeb https://git.kernel.org/stable/c/4d54d11b49860686331c58a00f733b16a93edfc4 https://git.kernel.org/stable/c/622d527decaac0eb65512acada935a0fdc1d0202 https://git.kernel.org/stable/c/4cf949c7fafe21e085a4ee386bb2dade9067316e