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 9D7E71AC884 for ; Fri, 13 Sep 2024 06:34:00 +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=1726209240; cv=none; b=hkpgg8F9F/1LtZRmPG2fUM3oOTdKpUCXaeMm6oJsB0KZpl4+GGewZ8/fhF2pm37wC3K6D1RlWWnTWqCyauuh9lQ0B7Ju0OcDXnRCqAdzE5mfDlC4GV+m5bjtDVbCGPfLxPhmGRm9XabcZXHqugJeKuK8ClqcWsRIny1oDpeUw64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726209240; c=relaxed/simple; bh=frEOI7Tau9EFpBUix6PTYQeLrSbGRxC2FUN9vh7Boow=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VOcbcKjpyRXViwpEennFD8ko+8BJRG//YzFn0TI6OA7oN4d6p1mWjyTnYVYRa8o+t0dyQTFLoX6NfOdkfjOGX8V9gH1Srj4Z5UcWr50EjNpF65X3RQyv4SW9rD/D0rDoIlP72YQVXI3kqdBlR58cqqqgjmsTwuT9iDRBcMf5blQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=t41wSpqm; 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="t41wSpqm" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CCC73C4CEC0; Fri, 13 Sep 2024 06:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726209240; bh=frEOI7Tau9EFpBUix6PTYQeLrSbGRxC2FUN9vh7Boow=; h=From:To:Cc:Subject:Date:Reply-to:From; b=t41wSpqmkegQ5yKSSqnB/Qz5RmlM+6dlafitgrZJTXKAEhZWW06FxrqGIvfwwJK90 d4/keqkSqs8R0d+BtDFeJr+nYMk3aUYYwe/sLF+Dpz5d/77x1RFGFHl/fCYHYT/+hl WeZnucna35HsO9MY9izMwtIU/AxIE6DkwGQ8G5ho= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46710: drm/vmwgfx: Prevent unmapping active read buffers Date: Fri, 13 Sep 2024 08:33:50 +0200 Message-ID: <2024091347-CVE-2024-46710-cd88@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=2231; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=frEOI7Tau9EFpBUix6PTYQeLrSbGRxC2FUN9vh7Boow=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmP75z+Nnlv3X7Hied5ntSGlvx9vC9m3R7VfUL7lvD8W ay5VnuGXEcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMRCqKYa5cX8OeLR2MCZL3 N2z+53P+d6m2LjvDgptFq2/FT90rP3/by8AZ071nWR7cKwIA 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: Prevent unmapping active read buffers The kms paths keep a persistent map active to read and compare the cursor buffer. These maps can race with each other in simple scenario where: a) buffer "a" mapped for update b) buffer "a" mapped for compare c) do the compare d) unmap "a" for compare e) update the cursor f) unmap "a" for update At step "e" the buffer has been unmapped and the read contents is bogus. Prevent unmapping of active read buffers by simply keeping a count of how many paths have currently active maps and unmap only when the count reaches 0. The Linux kernel CVE team has assigned CVE-2024-46710 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 485d98d472d5 and fixed in 6.10.8 with commit d5228d158e4c Issue introduced in 5.19 with commit 485d98d472d5 and fixed in 6.11-rc6 with commit aba07b9a0587 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-46710 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_bo.c drivers/gpu/drm/vmwgfx/vmwgfx_bo.h 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/d5228d158e4c0b1663b3983044913c15c3d0135e https://git.kernel.org/stable/c/aba07b9a0587f50e5d3346eaa19019cf3f86c0ea