CVE-2026-89803: drm/nouveau: unsubscribe the channel-kill event before the fence context
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: unsubscribe the channel-kill event before the fence context
nouveau_channel_del() tears the fence context down first and only drops the channel-kill subscription later, in the middle of the nvif object teardown:
if (chan->fence) nouveau_fence(chan->cli->drm)->context_del(chan); ... nvif_object_dtor(&chan->vram); nvif_event_dtor(&chan->kill);
The subscribed handler is nouveau_channel_killed(), which calls nouveau_channel_kill() and from there nouveau_fence_context_kill() on chan->fence. A kill event delivered in that window takes fctx->lock and walks fctx->pending on a fence context that context_del() has already freed.
Nothing reaches this below Fermi today, because the subscription is gated on FERMI_CHANNEL_GPFIFO and nothing kills a channel there. On Fermi and newer the window is real but narrow, since a kill has to land exactly while the channel is being destroyed. That is reason enough on its own, which is why this carries a Fixes: tag. The last patch in this series subscribes Tesla channels as well; nothing kills those today, so it does not widen the exposure now, but it is the groundwork for a recovery path that would, and the ordering is better fixed before that lands than alongside it.
Drop the subscription before anything it depends on is torn down.
The Linux kernel CVE team has assigned CVE-2026-89803 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.6 with commit ea13e5abf807ea912ce84eef6a1946b9a38c6508 and fixed in 6.12.110 with commit f5a79a9ebfbafb87ca7a896e8d6b5f33a98d097e Issue introduced in 5.6 with commit ea13e5abf807ea912ce84eef6a1946b9a38c6508 and fixed in 6.18.51 with commit f3830fdd6930e233d727f29eee1617f7e6a0e9e5 Issue introduced in 5.6 with commit ea13e5abf807ea912ce84eef6a1946b9a38c6508 and fixed in 7.2.5 with commit 1fef7553dc628295c1208a4f2ac2094c62886e5d Issue introduced in 5.6 with commit ea13e5abf807ea912ce84eef6a1946b9a38c6508 and fixed in 7.3-rc2 with commit 511585987d27d8cb668acebd399fc4deda23404c
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-89803
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/nouveau_chan.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/f5a79a9ebfbafb87ca7a896e8d6b5f33a98d097e https://git.kernel.org/stable/c/f3830fdd6930e233d727f29eee1617f7e6a0e9e5 https://git.kernel.org/stable/c/1fef7553dc628295c1208a4f2ac2094c62886e5d https://git.kernel.org/stable/c/511585987d27d8cb668acebd399fc4deda23404c