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 41138537ED for ; Fri, 17 May 2024 13:24:12 +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=1715952252; cv=none; b=OpXNFjs64qzmNR+Nt1DFfqIkYAdxVjENl0GL8gtaOXmnZ27WqiAGfYGGOQ9liyJnQeE6VcXMZBBqfY7TZ5WUvOR2be4Leov1OYxuSk0oigyBcAofx8MnWqRu6fMoZVnrFGZbAtA0AFXyRSddVW1aFnUPiyiDh+t4hAguqp9QzZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715952252; c=relaxed/simple; bh=6MhE57JBR0UF93vVTgHA6g5Y/52SqYDmMf9m2PnVc6U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fEaBY15hy/U2Cd6GqbtQwtWUddlW30UTlutX3GuJq74lS1R4P3/x45rZzfzQYB65/hosss2bATIMJhFWdlCN4rTPjToGM3G5bYgt1g1WPiskvw+EePzYFN2v9Cji0XLj3lDuILX3J/RWvFyiGIzt328pOLccY8e2n/5mJN6uxXU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WULhXQWF; 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="WULhXQWF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA56DC2BD10; Fri, 17 May 2024 13:24:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715952252; bh=6MhE57JBR0UF93vVTgHA6g5Y/52SqYDmMf9m2PnVc6U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=WULhXQWFlMEsixt6lGj0Y5g/M4IlFhiOwHA7hJUMWJd+TdxZMr6p/1bydzrykGjKt 270l1CAr1PWjWqIAH5ea4nbmqyWDO5vzgDtXqGVLB4w6PtdvcqJ1Jg4KKCjE/22o2Q iYdEhfTAC/kzjEj9teSrZUQpM1gu48/RV9pKgz5U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35810: drm/vmwgfx: Fix the lifetime of the bo cursor memory Date: Fri, 17 May 2024 15:23:50 +0200 Message-ID: <2024051741-CVE-2024-35810-1b33@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=2522; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6MhE57JBR0UF93vVTgHA6g5Y/52SqYDmMf9m2PnVc6U=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuUbHm/eEPZk6qm3jyU591asX7B2z7akwmVxxvOKrC/ XBm0dyHHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRSw0MC2Z3Xj/et3vW3u0B /3MvGy2p5r2xUIRhnnko8+SK5XkTvO8+a6t/m8d0RLLuDQA= 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: Fix the lifetime of the bo cursor memory The cleanup can be dispatched while the atomic update is still active, which means that the memory acquired in the atomic update needs to not be invalidated by the cleanup. The buffer objects in vmw_plane_state instead of using the builtin map_and_cache were trying to handle the lifetime of the mapped memory themselves, leading to crashes. Use the map_and_cache instead of trying to manage the lifetime of the buffer objects held by the vmw_plane_state. Fixes kernel oops'es in IGT's kms_cursor_legacy forked-bo. The Linux kernel CVE team has assigned CVE-2024-35810 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit bb6780aa5a1d and fixed in 6.6.24 with commit 86cb706a40b7 Issue introduced in 6.2 with commit bb6780aa5a1d and fixed in 6.7.12 with commit 104a5b2772bc Issue introduced in 6.2 with commit bb6780aa5a1d and fixed in 6.8.3 with commit ed381800ea6d Issue introduced in 6.2 with commit bb6780aa5a1d and fixed in 6.9 with commit 9a9e8a7159ca 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-2024-35810 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/86cb706a40b7e6b2221ee49a298a65ad9b46c02d https://git.kernel.org/stable/c/104a5b2772bc7c0715ae7355ccf9d294a472765c https://git.kernel.org/stable/c/ed381800ea6d9a4c7f199235a471c0c48100f0ae https://git.kernel.org/stable/c/9a9e8a7159ca09af9b1a300a6c8e8b6ff7501c76