KernelScan.io

HIGH Introduced in 3.13

nouveau Pstate OOB

CVE-2026-98623

CVSS 7.1 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

01

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]

02

Engine v0.9.0

Risk summary

A local user who can write to the nouveau 'pstate' debugfs file can trigger an out-of-bounds kernel memory read by supplying an invalid performance state ID. This leaks kernel pointers (defeating KASLR) and can cause a kernel panic, leading to denial of service. Systems with NVIDIA GPUs using the nouveau driver and accessible debugfs are at risk.

Affecteddrivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c (drm/nouveau)

Vulnerability analysis

The nvkm_clk_ustate_update() function iterates through a linked list of performance states to find one matching a user-supplied ID. If the ID is not found — either because it does not exist or because the performance tables are broken and the list is empty — the loop terminates with the cursor pointing at the list head instead of a valid state object. The code then dereferences this invalid pointer to compare the state ID, reading kernel memory outside the intended structure. The fix introduces a boolean flag to track whether a match was found, avoiding the invalid dereference and returning an error cleanly. The vulnerable path is reached by writing to the 'pstate' debugfs file, which on many systems is accessible to local users (e.g., via the video group), making this a local privilege escalation and information leak vector.

03

BranchIntroducedFixed inPatch commit
5.103.135.10.271db5dd9f47b4d
5.153.135.15.2229d550924961f
6.13.136.1.189492e9cfa12f3
6.123.136.12.1125315c7bacfe2
6.183.136.18.550d096a7f7d79
6.63.136.6.158a867abcfa85a
7.23.137.2.9391517da7fd5
mainline3.137.3aff09d9e37e0
cip/4.193.134.19.325-cip137e17df08c1f78
cip/4.19-rt3.134.19.325-cip137-rt51e17df08c1f78
cip/4.43.134.4.302-cip11683087e8c637e
cip/5.103.135.10.271-cip78db5dd9f47b4d
cip/5.10-rt3.135.10.272-cip79-rt35db5dd9f47b4d
cip/6.13.136.1.189-cip61492e9cfa12f3
cip/6.1-rt3.136.1.189-cip61-rt32492e9cfa12f3
cip/6.123.136.12.112-cip335315c7bacfe2

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.112-cip33
cip/6.1Fixed in 6.1.189-cip61
cip/6.1-rtFixed in 6.1.189-cip61-rt32
cip/5.10Fixed in 5.10.271-cip78
cip/5.10-rtFixed in 5.10.272-cip79-rt35
cip/4.19Fixed in 4.19.325-cip137
cip/4.19-rtFixed in 4.19.325-cip137-rt51
cip/4.4Fixed in 4.4.302-cip116
cip/4.4-rtAffected — no CIP fix yet (latest 4.4.302-cip115-rt63)