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 23BD816D4DC for ; Wed, 21 Aug 2024 06:13:54 +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=1724220834; cv=none; b=LCENR2gkBFjIxcfdZNfc+hVxpc9nUYwiRzBPxHPWLXV4iBm0EYscBguurbRziMLukMcDp0juGLZXeuZaMqWlMcJTea+Z+rlOII78qky7ssJZAxvzrLxdxg9jgYFM9a/eb13rstDD6bwKIcPZ561lqZewUbA5UyZYMGbH1jSve3Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724220834; c=relaxed/simple; bh=/Cscpvi48SinW84Bnh9XtCFYhVycqE5bX3GpBb3ccBI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=biy97NVi6RIp5hN7r6rOC3xSyni1HqIIal3mpOxwn1d4bkgChTWnSKJL8GHbAyH/YMiQC4Y9lwFXpEH781ZOLMiNdpY3Xe24VB1bfhhTarc/Fl8iwIgWC3xXnrwxMkt4PjI+4e59VEirUO6cD/VgG23P8pRnXPK5FszeyS1c2jQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YzxvO4Pl; 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="YzxvO4Pl" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA742C32782; Wed, 21 Aug 2024 06:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724220834; bh=/Cscpvi48SinW84Bnh9XtCFYhVycqE5bX3GpBb3ccBI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YzxvO4Pl+roMt6Y2kTmaiM1UY7I5/c9k143O6U/ZTw70N0FB872yVS1M80bSDHNZI VIT0Bl3kUhzUapS896mgmcgXWUwdBrRbx0aVBjXQNwqoF8w34Eh2sVSHSSQkin3DCo Qmex86KvmHAnA0r0MVMJPsi327uk1iiClp/IJcmA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48887: drm/vmwgfx: Remove rcu locks from user resources Date: Wed, 21 Aug 2024 14:11:21 +0800 Message-ID: <2024082109-CVE-2022-48887-4019@gregkh> X-Mailer: git-send-email 2.46.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=2330; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/Cscpvi48SinW84Bnh9XtCFYhVycqE5bX3GpBb3ccBI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlHW/7225Z3iWlumvpRPv9zc+mW5K5A9TVbAsO2XDtz9 o3MfrGIjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI7UqG+bVT9xibbJScMf2i /Yk7l7Ryu/aWrWVYcMhj/U3jlNzlKiFhG3u+rJo3JfzASQA= 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: Remove rcu locks from user resources User resource lookups used rcu to avoid two extra atomics. Unfortunately the rcu paths were buggy and it was easy to make the driver crash by submitting command buffers from two different threads. Because the lookups never show up in performance profiles replace them with a regular spin lock which fixes the races in accesses to those shared resources. Fixes kernel oops'es in IGT's vmwgfx execution_buffer stress test and seen crashes with apps using shared resources. The Linux kernel CVE team has assigned CVE-2022-48887 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit e14c02e6b699 and fixed in 6.1.7 with commit 7ac9578e45b2 Issue introduced in 4.20 with commit e14c02e6b699 and fixed in 6.2 with commit a309c7194e8a 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-48887 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/ttm_object.c drivers/gpu/drm/vmwgfx/ttm_object.h drivers/gpu/drm/vmwgfx/vmwgfx_bo.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c drivers/gpu/drm/vmwgfx/vmwgfx_resource.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/7ac9578e45b20e3f3c0c8eb71f5417a499a7226a https://git.kernel.org/stable/c/a309c7194e8a2f8bd4539b9449917913f6c2cd50