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 DB25A1AAE37 for ; Fri, 13 Sep 2024 06:33:52 +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=1726209233; cv=none; b=ByhF8XQg+OlK15oeE6KI5VWz99CDlobfy2LE6nwvysgndzLcAHN/T3GGff9qxGQA4wFO9Zhn8Ik88Is3TlA0bzc1zDKnHk/VuUqLoVLGUOC7CI3988j0L/2WXcoB7UriXUK+5KBJlvrxDqhYCg+gVvnL68OUwizGEZ7GBHWGs3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726209233; c=relaxed/simple; bh=9levd0m8Bfkad2oKLleF5KKaHhRvoSYsl7kybwWqqA8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DL3GJT6BGF6oB6dIua9OHcnF7dYVhpNzFa+cMD/7VYXGjvBvqFk//3GN5wk1qdhujuAuCJyBov25rp7t8uSNUxKbsbdzl+8SDD5gqB3Is5+y2rPSGWjAP/qextlo5Hni85Nel5tdv+u9VxN1WL2dL2KUgiWESDYxXfCPT24zv7w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Lk1GhQNY; 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="Lk1GhQNY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0029CC4CEC0; Fri, 13 Sep 2024 06:33:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726209232; bh=9levd0m8Bfkad2oKLleF5KKaHhRvoSYsl7kybwWqqA8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Lk1GhQNY9lb8GoaxaagSdYP/qZsPEBJvMRMfWuZEGaWBJYyLskYIYUPMWIMkg8/cq Y2zij2EYz7llHXMVKJ++71gHFFwMWfK4n15H9ceN1xgCDlybK0f13Bn/kTNfUdRrcC q2rabYoR/Cdcjpw7+7g9t2VZhK+8UvPeN18HEzfM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46709: drm/vmwgfx: Fix prime with external buffers Date: Fri, 13 Sep 2024 08:33:49 +0200 Message-ID: <2024091347-CVE-2024-46709-2465@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=2463; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9levd0m8Bfkad2oKLleF5KKaHhRvoSYsl7kybwWqqA8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmP75y+w1Nsud/WgOXMkzT/q5NTQo3KP57gsI7g8Wnaz XTo3NZLHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRnfIM8zNmXNlTFH0ptupI nIX7ivS5L5kM+xkWzBYSYXgjxCwqXrbOK9tIlcNxs782AA== 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 prime with external buffers Make sure that for external buffers mapping goes through the dma_buf interface instead of trying to access pages directly. External buffers might not provide direct access to readable/writable pages so to make sure the bo's created from external dma_bufs can be read dma_buf interface has to be used. Fixes crashes in IGT's kms_prime with vgem. Regular desktop usage won't trigger this due to the fact that virtual machines will not have multiple GPUs but it enables better test coverage in IGT. The Linux kernel CVE team has assigned CVE-2024-46709 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.29 with commit 65674218b43f and fixed in 6.6.49 with commit 9a9716bbbf3d Issue introduced in 6.9 with commit b32233acceff and fixed in 6.10.8 with commit 5c12391ee1ab Issue introduced in 6.9 with commit b32233acceff and fixed in 6.11-rc6 with commit 50f119925091 Issue introduced in 6.8.8 with commit 2cdb71c975a1 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-46709 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_blit.c drivers/gpu/drm/vmwgfx/vmwgfx_drv.h drivers/gpu/drm/vmwgfx/vmwgfx_stdu.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/9a9716bbbf3dd6b6cbefba3abcc89af8b72631f4 https://git.kernel.org/stable/c/5c12391ee1ab59cb2f3be3f1f5e6d0fc0c2dc854 https://git.kernel.org/stable/c/50f1199250912568606b3778dc56646c10cb7b04