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 A08637DA7F for ; Tue, 5 Nov 2024 17:05:34 +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=1730826334; cv=none; b=tLVVff6mKIQRB63G3kq4j+nELez3G8L5KClJ0W823aL1xXkRqgRv0F1D1c92/sfvvpjK0mpoWr44WDJI8sbmO1ac0p/IyEhQCI1jvRz7f2fFItsTD0oC60yrGRzCn1uPijm5w0nakiefsq87WSxiQQ9obRyW7JMEpjnylJZRfTY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730826334; c=relaxed/simple; bh=KQqEpyAgPx69mChYPsMTClXGjKFSXRhImOr6ufBOSVM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Pbbu7Ns9tNy6vA1JN7E4pcgtxj0m1JdwK60xv6Bj3nd0VvrzKx/0st+PkJfO5EolqvakdS7Jj8tmcrI8JITg07SxNYDA5NLk+i+QRFhyBhlNd55macKZam1gM62JBs/Mp2oYYGutAD4UdEdFzhoGu4ZpwnDr18hJHh7D0yx0Gr4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=op5VpK+p; 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="op5VpK+p" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27DF8C4CECF; Tue, 5 Nov 2024 17:05:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730826334; bh=KQqEpyAgPx69mChYPsMTClXGjKFSXRhImOr6ufBOSVM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=op5VpK+pW8SFU38FHV6H2TpN20yOodnphMDkZuDDkA93VECli4d3cAp9N2uKlnAFm hRLo0UMMtKCrdKanNakbqfJIIuqGM8EE8Ie6BFdjuF7Rjb1HG4Uwcdw1eNbeLIoswy fHz0itKTTt0G01AoygWUZemRBHGk1YXe2C8e/q4o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50096: nouveau/dmem: Fix vulnerability in migrate_to_ram upon copy error Date: Tue, 5 Nov 2024 18:04:56 +0100 Message-ID: <2024110552-CVE-2024-50096-daf5@gregkh> X-Mailer: git-send-email 2.47.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=3089; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KQqEpyAgPx69mChYPsMTClXGjKFSXRhImOr6ufBOSVM=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlaASZsM2JO1t5ZPVWx27jXU/CJTVtcX2CWUtjF2TVVp 493nHLtiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInIeDMsWLNgii1HmuXRkhXv jqn+2mVTyH96PcOCGdMXW3tFM6+vfcBrttB0qm27V+tXAA== 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: nouveau/dmem: Fix vulnerability in migrate_to_ram upon copy error The `nouveau_dmem_copy_one` function ensures that the copy push command is sent to the device firmware but does not track whether it was executed successfully. In the case of a copy error (e.g., firmware or hardware failure), the copy push command will be sent via the firmware channel, and `nouveau_dmem_copy_one` will likely report success, leading to the `migrate_to_ram` function returning a dirty HIGH_USER page to the user. This can result in a security vulnerability, as a HIGH_USER page that may contain sensitive or corrupted data could be returned to the user. To prevent this vulnerability, we allocate a zero page. Thus, in case of an error, a non-dirty (zero) page will be returned to the user. The Linux kernel CVE team has assigned CVE-2024-50096 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 5be73b690875 and fixed in 5.10.227 with commit 73f75d2b5aee Issue introduced in 5.1 with commit 5be73b690875 and fixed in 5.15.168 with commit 8c3de9282dde Issue introduced in 5.1 with commit 5be73b690875 and fixed in 6.1.113 with commit 614bfb205098 Issue introduced in 5.1 with commit 5be73b690875 and fixed in 6.6.57 with commit 697e3ddcf1f8 Issue introduced in 5.1 with commit 5be73b690875 and fixed in 6.11.4 with commit ab4d113b6718 Issue introduced in 5.1 with commit 5be73b690875 and fixed in 6.12-rc3 with commit 835745a377a4 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-50096 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/nouveau/nouveau_dmem.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/73f75d2b5aee5a735cf64b8ab4543d5c20dbbdd9 https://git.kernel.org/stable/c/8c3de9282dde21ce3c1bf1bde3166a4510547aa9 https://git.kernel.org/stable/c/614bfb2050982d23d53d0d51c4079dba0437c883 https://git.kernel.org/stable/c/697e3ddcf1f8b68bd531fc34eead27c000bdf3e1 https://git.kernel.org/stable/c/ab4d113b6718b076046018292f821d5aa4b844f8 https://git.kernel.org/stable/c/835745a377a4519decd1a36d6b926e369b3033e2