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 C222E1487E2 for ; Wed, 17 Apr 2024 16:00: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=1713369600; cv=none; b=Rr14ub3AAhAmlHpjkh4ZFuJJJ0gGRa4BfnPLPwGbwf1lZa3M6jlkEXPu4voWTohKFf0LSqDPqfcs49v5OvPKORZJrzOQodcVf64Kl8dm9ISXOPqjW3wIsACDBl36nb4MVcZYpU02fipjuK83vBAVLao6cpNnolwmuKFMYPhq7AI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713369600; c=relaxed/simple; bh=aWSjeFHhYguCtXu+1ZqkbSU7CmH16hLVLwRmHFHmy+E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NkYGukIEoKCzCIcO7R6XSgvrTVV7PpT8JS7KoRV+hOa8tBWpXedObjCYg3P8VL/acu2hg3ac1yZHOFimij5YO87YlIYiZdIdBWi1ETqUfR4xHsC/dtKuYyMfhO22sbsyO/PYGrmJJ4vpQ5ChPihJz8/HJy5wQLRicyK8CX0Qprs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Msv2dOdg; 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="Msv2dOdg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAC13C2BD11; Wed, 17 Apr 2024 15:59:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713369600; bh=aWSjeFHhYguCtXu+1ZqkbSU7CmH16hLVLwRmHFHmy+E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Msv2dOdgY7zaywH6MIX9DnmuVlOOhLuGtVRBubHKlEkDhmsNcvjB2YjqICSv26H0y +GuHg5IgBUwhvdzVy2hATKfmc7G5B0gfvihJzuOVitT8iLAS3w8gPPFGK41cA4OiwA N2Jtrkb7nrudKLZKzFzMlBvHgcFx0JL3a1X0pNlw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26912: drm/nouveau: fix several DMA buffer leaks Date: Wed, 17 Apr 2024 17:59:37 +0200 Message-ID: <2024041736-CVE-2024-26912-9206@gregkh> X-Mailer: git-send-email 2.44.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=2372; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aWSjeFHhYguCtXu+1ZqkbSU7CmH16hLVLwRmHFHmy+E=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyH198X3rB4dVjm6y6uN83BLcx2x59Hei1UEly18/7o ot/tvU3d8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEGo0YFkw4t73q/+KXrWa/ 709h6Rf+empltBXDfG/BfA7RTeEfZ+6Q8XKUO3/zWey+SAA= 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/nouveau: fix several DMA buffer leaks Nouveau manages GSP-RM DMA buffers with nvkm_gsp_mem objects. Several of these buffers are never dealloced. Some of them can be deallocated right after GSP-RM is initialized, but the rest need to stay until the driver unloads. Also futher bullet-proof these objects by poisoning the buffer and clearing the nvkm_gsp_mem object when it is deallocated. Poisoning the buffer should trigger an error (or crash) from GSP-RM if it tries to access the buffer after we've deallocated it, because we were wrong about when it is safe to deallocate. Finally, change the mem->size field to a size_t because that's the same type that dma_alloc_coherent expects. The Linux kernel CVE team has assigned CVE-2024-26912 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 176fdcbddfd2 and fixed in 6.7.6 with commit 6190d4c08897 Issue introduced in 6.7 with commit 176fdcbddfd2 and fixed in 6.8 with commit 042b5f83841f 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-26912 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/include/nvkm/subdev/gsp.h drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.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/6190d4c08897d748dd25f0b78267a90aa1694e15 https://git.kernel.org/stable/c/042b5f83841fbf7ce39474412db3b5e4765a7ea7