CVE-2026-99614: drm/nouveau/nvkm: clear use.enabled when subdev init fails
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau/nvkm: clear use.enabled when subdev init fails
On Kepler boards without the video decode falcon firmware installed (msvld/mspdec/msppp), every other VA-API decode attempt binds to an engine with no ucode loaded. The submitted work never completes, which leads to a context switch timeout, a channel recovery that cannot reset the engine, and eviction waits on fences that never signal. The process ends up stuck in D state, or killed by SIGBUS when it touches a buffer evicted after the wait times out:
msvld: unable to load firmware data
msvld: init failed, -19
fifo: SCHED_ERROR 0a [CTXSW_TIMEOUT]
vo[5444]: channel 14 killed!
WARNING: drivers/gpu/drm/nouveau/nvkm/engine/fifo/runl.c:117 at nvkm_runl_rc+0x2a4/0x3b0 [nouveau] [TTM] Buffer eviction failed WARNING: drivers/gpu/drm/nouveau/nouveau_bo.c:1092 at nouveau_bo_move_ntfy.part.0+0x9b/0x100 [nouveau]
Tracing nvkm_subdev_ref() and nvkm_subdev_init_() shows the pattern:
a reference taken with enabled=0 runs nvkm_falcon_init(), which returns -ENODEV; the next reference sees enabled=1 and succeeds without running it.
Clear use.enabled when init() fails, so that every later reference retries init and fails cleanly. The other readers of use.enabled are fini() handlers that use it to skip teardown, which they now also do after a failed init().
On a GK107 (Quadro K1100M) without video firmware, playing H.264 with mpv --hwdec=auto: without this patch the GPU channel is killed within a minute and mpv hangs; with it, VA-API decoder creation fails, mpv falls back to software decoding, and no faults are logged.
The Linux kernel CVE team has assigned CVE-2026-99614 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 8478cd5a740a092163c8ad5b6da1a1b488eb42bd and fixed in 6.12.118 with commit 58899bfd5cf688733c909adb6aa34929c44c8842 Issue introduced in 6.2 with commit 8478cd5a740a092163c8ad5b6da1a1b488eb42bd and fixed in 6.18.64 with commit 8d642da3ec15d0c169948c0af60c6e94cf31a539 Issue introduced in 6.2 with commit 8478cd5a740a092163c8ad5b6da1a1b488eb42bd and fixed in 7.3.5 with commit 765b4f3fe5003b91d8ad8a47a4d3f62dba5d9e3d Issue introduced in 6.2 with commit 8478cd5a740a092163c8ad5b6da1a1b488eb42bd and fixed in 7.4-rc2 with commit a1f7f37417bacf2eaf80a8ce6b598b1fa56f8906
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-99614
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/core/subdev.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/58899bfd5cf688733c909adb6aa34929c44c8842 https://git.kernel.org/stable/c/8d642da3ec15d0c169948c0af60c6e94cf31a539 https://git.kernel.org/stable/c/765b4f3fe5003b91d8ad8a47a4d3f62dba5d9e3d https://git.kernel.org/stable/c/a1f7f37417bacf2eaf80a8ce6b598b1fa56f8906