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 A834F145B11 for ; Tue, 21 May 2024 15:37:10 +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=1716305830; cv=none; b=Ib4pCi8NSdMRBv88UT2SSJvYCit/hZ3cBVyQC3/yTNC5FiErn+9OmNxeCVCDL26NhYKO/WiQBQ38XyQJq/nUSyx+h46ZEFYuqIe4mdsn0nVClOuTrUXLAGDtGIkZdf/xx2/vWLLy2Vd0UNtHA7sC6OzVKDJ6vPSe0OOQjN+nhjw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305830; c=relaxed/simple; bh=y11Asp1Mdu+JhZpojTXQ5jXJMO0kLdBjRutNtRwfhZY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lzk/ONoS7i3VEbGwjCQqyoCmFPCgoO0MRRuFJzf/2sn/4QiVUenTMvnYI9E+g7h9B1CtlpyPdxbLHmVS0d3r9dB34pT7EJn0wcutUkvjgAIy1I0dyQBjrMDVurk/fO4hnARMhuwprUmYBaGra3gfguxgUKuNJlamuCZ2UDX8DSQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LxQRVcnk; 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="LxQRVcnk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3367FC2BD11; Tue, 21 May 2024 15:37:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305830; bh=y11Asp1Mdu+JhZpojTXQ5jXJMO0kLdBjRutNtRwfhZY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=LxQRVcnkhCtPbAZuDaxmiuZ9F4VI0RJLFoYBjM5l4j9zC//rVUfNFY8GoV6K6pJg9 GMyeX2gS9rdbZvEjn7OrnATsmo8IprUFs98Oow/SX1YiA9vRjm4ua5bxwG24VQyebu PW6B/JlwccxX6FQVogU9zJlr5Cn0pTGAx4FYEXJs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52822: drm: vmwgfx_surface.c: copy user-array safely Date: Tue, 21 May 2024 17:31:58 +0200 Message-ID: <2024052105-CVE-2023-52822-9e83@gregkh> X-Mailer: git-send-email 2.45.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=2074; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=y11Asp1Mdu+JhZpojTXQ5jXJMO0kLdBjRutNtRwfhZY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++6x+V39YrMPK8Txknr9wfd6PoJVb9d4Kf+6as2Hyh CdrnXRdOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAif4IY5nAkC1z/+PRZ8SbF kwnTitIcZHIn+TLMzz3MwFO30KXthAtT9irpvdtvMnvqAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: drm: vmwgfx_surface.c: copy user-array safely Currently, there is no overflow-check with memdup_user(). Use the new function memdup_array_user() instead of memdup_user() for duplicating the user-space array safely. The Linux kernel CVE team has assigned CVE-2023-52822 to this issue. Affected and fixed versions =========================== Fixed in 5.15.140 with commit 689b33b94f09 Fixed in 6.1.64 with commit 412ce8966934 Fixed in 6.5.13 with commit 1eacb4c96e73 Fixed in 6.6.3 with commit 21e29f1437b7 Fixed in 6.7 with commit 06ab64a0d836 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-2023-52822 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_surface.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/689b33b94f096e717cd8f140a8b5502e7e4fe759 https://git.kernel.org/stable/c/412ce89669341dfd8ed98a4746ad3dbe9653a7b8 https://git.kernel.org/stable/c/1eacb4c96e73225a2f6f276bade006abbe4d8341 https://git.kernel.org/stable/c/21e29f1437b7c36c76efa908589578eaf0f50900 https://git.kernel.org/stable/c/06ab64a0d836ac430c5f94669710a78aa43942cb