Shellfeed logo Shellfeed

CVE-2026-98623 · UNKNOWN

Summary: drm/nouveau/clk: fix list cursor use after loop in nvkm_clk_ustate_update

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 7.3).

Details

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]

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [7c856522069755ab9d163a24ac332cd3cb35fe30 – db5dd9f47b4df1be322f498d846e9a82940a7390]
  • Linux Kernel [3.13.0 – 5.10.271] [5.11.0 – 5.15.222] [5.16.0 – 6.1.189] [6.2.0 – 6.6.158] [6.7.0 – 6.12.112] [6.13.0 – 6.18.55] [6.19.0 – 7.2.9]

References