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 4BE9135A2A3 for ; Fri, 5 Sep 2025 17:21:57 +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=1757092917; cv=none; b=fQZS12rgWGighOLiLTVGzsSePibvo0RvTG0gCYirt2ZNU5SzDYNCT/ReENarpVqIPxc6EiyVsLTTcMAGTtwB2nfUYvYV1673IRZV1/l7G20LvhbkhOHHo4l9hlyLfBujn6+ckTZ+kir8olZ3MX0SRyG9tsxm68kWOQgZOhkoArw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757092917; c=relaxed/simple; bh=B3VwBlzwpz8dyiBCpS0hl0NywVpJVgUvNzWE4nLTn2U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LuG1zmFyLnZjcm4erTaXjBM/B1wlzdMcKRyg4Xb3vn4MpIyhIxo14x27rTxccnj48H9RzAGkGTRz3zTj6o/ofT34D03h5EzbgubFWK62xlb3B9kl86fnsJZ0sPh5oxuS3E/1xKXHO2R6ffpauH3LGMhRqN2DG8Zw5ZVCBTDRVkU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Tk9Jfcm/; 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="Tk9Jfcm/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9C49CC4CEF4; Fri, 5 Sep 2025 17:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757092917; bh=B3VwBlzwpz8dyiBCpS0hl0NywVpJVgUvNzWE4nLTn2U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Tk9Jfcm/xUpb+3/KeO6JJj2UeyvuPO3C1nEest6wO7kq2fIwHwrsJ9/1FpoAyUnQi HuLHLOAFTdoY/JGKOCsSGNQMzSu2FS0TL9mQ8KIHre0zhE/NDLzTaBKwlLtQILG80h TfDF8GtBAtg31LaFn0arUsXmQm2WyODmv4N3IUmc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39679: drm/nouveau/nvif: Fix potential memory leak in nvif_vmm_ctor(). Date: Fri, 5 Sep 2025 19:20:53 +0200 Message-ID: <2025090545-CVE-2025-39679-4b4a@gregkh> X-Mailer: git-send-email 2.51.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=2428; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mm0ZsUA2QMOPkmrr7o+jw9e+j9bMJXTXrObzgPJpH6k=; b=owGbwMvMwCRo6H6F97bub03G02pJDBm7pd+a3ffnMjn0nyNIMCS07ti0//O4fTn/Gl5e3Cxuv WrF50kfOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi+5oZ5kef9mT69jI7Usgw rK4nbS/H/+8bzBgWrD9es3jt1UPXr5m/L7tybOVhycXcbwE= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/nouveau/nvif: Fix potential memory leak in nvif_vmm_ctor(). When the nvif_vmm_type is invalid, we will return error directly without freeing the args in nvif_vmm_ctor(), which leading a memory leak. Fix it by setting the ret -EINVAL and goto done. The Linux kernel CVE team has assigned CVE-2025-39679 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 6b252cf42281045a9f803d2198023500cfa6ebd2 and fixed in 6.6.103 with commit 72553fe19317fe93cb8591c83095c446bc7fe292 Issue introduced in 6.6 with commit 6b252cf42281045a9f803d2198023500cfa6ebd2 and fixed in 6.12.44 with commit cabcb52d76d3d42f16c344a96e098dd9d18602f8 Issue introduced in 6.6 with commit 6b252cf42281045a9f803d2198023500cfa6ebd2 and fixed in 6.16.4 with commit 7d9110e3b35d08832661da1a1fc2d24455981a04 Issue introduced in 6.6 with commit 6b252cf42281045a9f803d2198023500cfa6ebd2 and fixed in 6.17-rc3 with commit bb8aeaa3191b617c6faf8ae937252e059673b7ea 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-2025-39679 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/nvif/vmm.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/72553fe19317fe93cb8591c83095c446bc7fe292 https://git.kernel.org/stable/c/cabcb52d76d3d42f16c344a96e098dd9d18602f8 https://git.kernel.org/stable/c/7d9110e3b35d08832661da1a1fc2d24455981a04 https://git.kernel.org/stable/c/bb8aeaa3191b617c6faf8ae937252e059673b7ea