HIGH Introduced in 3.13
nouveau Pstate OOB
CVE-2026-98623
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
01Description
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]
02KernelScan AI Analysis
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.
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.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 3.13 | 5.10.271 | db5dd9f47b4d |
| 5.15 | 3.13 | 5.15.222 | 9d550924961f |
| 6.1 | 3.13 | 6.1.189 | 492e9cfa12f3 |
| 6.12 | 3.13 | 6.12.112 | 5315c7bacfe2 |
| 6.18 | 3.13 | 6.18.55 | 0d096a7f7d79 |
| 6.6 | 3.13 | 6.6.158 | a867abcfa85a |
| 7.2 | 3.13 | 7.2.9 | 391517da7fd5 |
| mainline | 3.13 | 7.3 | aff09d9e37e0 |
| cip/4.19 | 3.13 | 4.19.325-cip137 | e17df08c1f78 |
| cip/4.19-rt | 3.13 | 4.19.325-cip137-rt51 | e17df08c1f78 |
| cip/4.4 | 3.13 | 4.4.302-cip116 | 83087e8c637e |
| cip/5.10 | 3.13 | 5.10.271-cip78 | db5dd9f47b4d |
| cip/5.10-rt | 3.13 | 5.10.272-cip79-rt35 | db5dd9f47b4d |
| cip/6.1 | 3.13 | 6.1.189-cip61 | 492e9cfa12f3 |
| cip/6.1-rt | 3.13 | 6.1.189-cip61-rt32 | 492e9cfa12f3 |
| cip/6.12 | 3.13 | 6.12.112-cip33 | 5315c7bacfe2 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Fixed in 5.10.271-cip78 |
| cip/5.10-rt | Fixed in 5.10.272-cip79-rt35 |
| cip/4.19 | Fixed in 4.19.325-cip137 |
| cip/4.19-rt | Fixed in 4.19.325-cip137-rt51 |
| cip/4.4 | Fixed in 4.4.302-cip116 |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |