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 E18293914F8 for ; Sun, 18 Oct 2026 15:37:57 +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=1792337878; cv=none; b=TKtifwvfb9xnYDuC+/6WVNja5ncndTSGvZ0GOvB1Ms8zGSlB3+24fGRKI2BQhEIGYZsfxa9Vq+bpiKkonBCSmA1k4Du6vA54EQZOt7hPGKp7BFXOYZ6zN/PwqxTRRf8jMa4KaIQSvc7EqTE3UdZrtk8VFa/Dl8MIx8ovdZpUkHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337878; c=relaxed/simple; bh=GP4hg5QGE0C59h3bG4unI6R2NMiG4gW3gG/Cd8eje5Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i0F5qT/+f9d+sLpaOTVbBkeupJ/iSsSryLYrv0Vykx6W5PqaDL8PGK5RsjnvOBhtJnxEKLjTc5PkiMa4M/nTjo6DHL25TZ4bR0Wo8OJsKrBVfSUpwkuQnvqymUR4pWz1106KynKOaZ7n0ovg1Dwv0rvOQZ4llo/mil8gBv4YIwc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qkxc491i; 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="Qkxc491i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F8CE1F000C4; Sun, 18 Oct 2026 15:37:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337877; bh=dYwgJYQCgQvX0VESLLtj9Fvy7XBwWgOSVU3N4jztsGM=; h=From:To:Cc:Subject:Date:Reply-To; b=Qkxc491ieWmfFnWqOC/FXH38XXE/qKVDj1JF1awFvg6B7a4+XAdJ2/pphGkwAbG8C gz5DaqnU6dbdvAv/PrCgXD/e9uyQ32wHiE4UQM+n3LMBgBYXLTgiwui6DvqnXBxQXr D9sy0nZSPTeSn4vIUIdHXYfOj7xn28OJh/SgN5sY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98623: drm/nouveau/clk: fix list cursor use after loop in nvkm_clk_ustate_update Date: Sun, 18 Oct 2026 17:18:07 +0200 Message-ID: <2026101842-CVE-2026-98623-7452@gregkh> X-Mailer: git-send-email 2.56.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=3771; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HVULV5vApNv7mSzCXaA8lQAR/SmxV31jyWlbt/sCWv0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHs2bP8/k95U9gf98tx3e/OO5fe30G8c2xc5aHhJ/L M9cd3J6RUcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMZAY7w4I9t1S3m85m//W2 Jb434mrHl+uXg2oZ5nBGW5ZN2jEnheGwbuKpzt9zhF5ZOQEA 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/clk: fix list cursor use after loop in nvkm_clk_ustate_update If list_for_each_entry() exits without hitting a break then "pstate" is not a valid pstate pointer. Introduce a "found" variable instead. The check is reachable from userspace: nvkm_clk_ustate_update() takes the pstate id straight from the 'pstate' debugfs file, so requesting an id that is not in clk->states - or any id at all when the perf tables are broken and the list is empty - makes the pstate->pstate != req test dereference the list head cast to a struct nvkm_pstate, which is an out-of-bounds read. [Francesco: rebased on drm-misc-next, expanded the commit message] The Linux kernel CVE team has assigned CVE-2026-98623 to this issue. Affected and fixed versions =========================== Issue introduced in 3.13 with commit 7c856522069755ab9d163a24ac332cd3cb35fe30 and fixed in 5.10.271 with commit db5dd9f47b4df1be322f498d846e9a82940a7390 Issue introduced in 3.13 with commit 7c856522069755ab9d163a24ac332cd3cb35fe30 and fixed in 5.15.222 with commit 9d550924961f61a491dd95359c63494fa8a23d9f Issue introduced in 3.13 with commit 7c856522069755ab9d163a24ac332cd3cb35fe30 and fixed in 6.1.189 with commit 492e9cfa12f35f7946ea1b78a19f1f9337d62248 Issue introduced in 3.13 with commit 7c856522069755ab9d163a24ac332cd3cb35fe30 and fixed in 6.6.158 with commit a867abcfa85ab487066c3d3008a1ba905da04113 Issue introduced in 3.13 with commit 7c856522069755ab9d163a24ac332cd3cb35fe30 and fixed in 6.12.112 with commit 5315c7bacfe274ddfe649d9556e9a341ffa812da Issue introduced in 3.13 with commit 7c856522069755ab9d163a24ac332cd3cb35fe30 and fixed in 6.18.55 with commit 0d096a7f7d79207490858dde731b16da5337e90c Issue introduced in 3.13 with commit 7c856522069755ab9d163a24ac332cd3cb35fe30 and fixed in 7.2.9 with commit 391517da7fd54ae40e4a7fe1cc696217343b0061 Issue introduced in 3.13 with commit 7c856522069755ab9d163a24ac332cd3cb35fe30 and fixed in 7.3-rc5 with commit aff09d9e37e02dc60bde79035ac15b136d602259 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-98623 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/nvkm/subdev/clk/base.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/db5dd9f47b4df1be322f498d846e9a82940a7390 https://git.kernel.org/stable/c/9d550924961f61a491dd95359c63494fa8a23d9f https://git.kernel.org/stable/c/492e9cfa12f35f7946ea1b78a19f1f9337d62248 https://git.kernel.org/stable/c/a867abcfa85ab487066c3d3008a1ba905da04113 https://git.kernel.org/stable/c/5315c7bacfe274ddfe649d9556e9a341ffa812da https://git.kernel.org/stable/c/0d096a7f7d79207490858dde731b16da5337e90c https://git.kernel.org/stable/c/391517da7fd54ae40e4a7fe1cc696217343b0061 https://git.kernel.org/stable/c/aff09d9e37e02dc60bde79035ac15b136d602259