Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 523C34F6487 for ; Wed, 16 Sep 2026 10:35:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554913; cv=none; b=nerlMCQHAyVbfCxzUFNmaFplnhZZdYS2s1kHZZ3j/yXKwg++NehWwli8H5zHhqinl9S+2tZkT0vtCdj18PJNhPrIWb/mgTa0OtYuyCSnUTEqluCW+lm4TcVToVj3mDlq21BxmFHd8Hc9S24nYBa73GZVrLenYwglvJVavJjdmew= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554913; c=relaxed/simple; bh=ROWPzz0/j51srUaefS8rSmb9YqS569HbTTkXXkxPxiQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K42IEc5f97yFTwsj6SsKdyolsQvz+eF4YFpXPIRExHZcui0WVbY48OexdyZlDjjiL40g16j8iZoiXNSZcPtGi9V2J+oXMuY7sNaBQ7CamPBD/aC/5+/Ce4x7rtk06wdgGi2m8iBuCcPBKxar294B1ZGiv5/asBkByvKBl/Zw1rs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rWYK49kY; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rWYK49kY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92E971F0089A; Wed, 16 Sep 2026 10:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554902; bh=1cghRafg+46VUDZ1TUBjGRzZ9/tTR7DcfrW7gHiIiIQ=; h=From:To:Cc:Subject:Date:Reply-To; b=rWYK49kY2rrvA9w5g5g3WM5enEKDm8+Wu+JRIHo+iQb8+6qrw6IfNoGmBm6s8fgMp 3q63OyhJFVqlyXE+TQ1gN1+/OtqjrhFth4GhuNLQsM6As4cr7jvj/3p1CLChcL1CcE z+CFimfbJ680wmI952goyj4pG5Hnd78Nq8Zig54I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89801: drm/nouveau/uvmm: fix premature region free on failed OP_UNMAP_SPARSE Date: Wed, 16 Sep 2026 11:28:51 +0100 Message-ID: <2026091651-CVE-2026-89801-dcde@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3656; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BSyemv1a/H2MwS+5gm8SmnZAo7XEV+9mlPYTSNVW4Yc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8pMdtixorZiZWWl9tirZ/fmKD7W3ZzZdyPjlKvjkt hjn/XtCHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRY5YMC67/vmXyxGgif8cD 9q07JtT/7qlen8cwP3HRvj83F+7ewaD7+WdjXdqaN/E7TgIA 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/uvmm: fix premature region free on failed OP_UNMAP_SPARSE In nouveau_uvmm_bind_job_submit()'s OP_UNMAP_SPARSE arm, op->reg is set from nouveau_uvma_region_find(), which only looks the region up and takes no reference; a region's sole reference is its membership in uvmm->region_mt. Two failure paths leave op->reg set: the -ENOENT check when the region is busy, and the drm_gpuvm_sm_unmap_ops_create() failure. The sibling nouveau_uvmm_sm_unmap_prepare() failure just below clears op->reg; these two do not. unwind_continue steps back one op, so the failing op is skipped by the unwind loop and its op->reg stays set. nouveau_uvmm_bind_job_cleanup() then enters its if (op->reg) branch and calls nouveau_uvma_region_remove() and nouveau_uvma_region_put() on it, dropping the tree's sole reference and freeing a region this job never created. The comment above the cleanup loop documents the broken invariant: op->reg must be NULL on submit failure. This frees a live region on an unrelated failure, reachable single-job when drm_gpuvm_sm_unmap_ops_create() returns -ENOMEM; if another job owns the same region, its cleanup then removes and puts the freed region, a use-after-free. Clear op->reg on both failure paths. The Linux kernel CVE team has assigned CVE-2026-89801 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit b88baab828713ce0b49b185444b2ee83bed373a8 and fixed in 6.6.157 with commit ba42d8a1c2c7629c61914df11a7d63ac77449ffb Issue introduced in 6.6 with commit b88baab828713ce0b49b185444b2ee83bed373a8 and fixed in 6.12.110 with commit 88114e3a96582882e63b2f73aa7a5a9cf0d5073c Issue introduced in 6.6 with commit b88baab828713ce0b49b185444b2ee83bed373a8 and fixed in 6.18.51 with commit 24c25b182d17d1bdfde0088c96bdf6f93e8f46bc Issue introduced in 6.6 with commit b88baab828713ce0b49b185444b2ee83bed373a8 and fixed in 7.2.5 with commit 4083d24c2636fde7b18076115af52820d203bc57 Issue introduced in 6.6 with commit b88baab828713ce0b49b185444b2ee83bed373a8 and fixed in 7.3-rc2 with commit ccf930812f23b8259ef64fd3394d53b093e4651a 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-2026-89801 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_uvmm.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/ba42d8a1c2c7629c61914df11a7d63ac77449ffb https://git.kernel.org/stable/c/88114e3a96582882e63b2f73aa7a5a9cf0d5073c https://git.kernel.org/stable/c/24c25b182d17d1bdfde0088c96bdf6f93e8f46bc https://git.kernel.org/stable/c/4083d24c2636fde7b18076115af52820d203bc57 https://git.kernel.org/stable/c/ccf930812f23b8259ef64fd3394d53b093e4651a