Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139075

published high CVSS 3.1 · 7.0

drm/nouveau: disable the fence uevent work instead of just cancelling it

Published
30 Nov 2026, 13:27:39 UTC
Updated
01 Dec 2026, 05:41:00 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxcc0037fa592d56e4abb9c7d1c52c4d2dc25cd906 to < fba3e939ed5cb2f1cd255a6bc5b9c1fb921d8587 · 39126abc5e20611579602f03b66627d7cd1422f0 to < d45c83c41b2d7cf25dbd9ba44a35ee66aaa23c67 · 39126abc5e20611579602f03b66627d7cd1422f0 to < f688ffe4a23ae12d2947e68b10225b208c36022c · 39126abc5e20611579602f03b66627d7cd1422f0 to < bf09cf3e05011b77d00c7dd4abca760dd8fff4f4 · 39126abc5e20611579602f03b66627d7cd1422f0 to < 827eb9328eaed831d7cc426ac2705038a40835b6 · 985d053f7633d8b539ab1531738d538efac678a9 · 6.6.18 to < 6.6.163 · 6.7.6 to < 6.8 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.8 (affected) · 0 to < 6.8 (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: drm/nouveau: disable the fence uevent work instead of just cancelling it nouveau_fence_context_del() drains the uevent work while the event that feeds it is still armed: cancel_work_sync(&fctx->uevent_work); nouveau_fence_context_kill(fctx, 0); nvif_event_dtor(&fctx->event); nouveau_fence_wait_uevent_handler() queues the work unconditionally: schedule_work(&fctx->uevent_work); return NVIF_EVENT_KEEP; so a non-stall interrupt arriving after cancel_work_sync() has returned re-arms the work that was just drained. The window closes in two steps, neither of which is the drain. The kill blocks the event when the last fence holding a notify_ref is signalled, which reaches atomic_xchg(&ntfy->allowed, 0) (nvkm/core/event.c:104), and nvkm_event_ntfy() skips a ntfy that is not allowed (:183). That stops further handlers from starting, but not one that is already inside nvkm_event_ntfy(): the event is created with wait = false (nouveau_fence.c:201), so nvkm_event_ntfy_block_() leaves it on the list and never takes event->list_lock. Only nvif_event_dtor() waits that one out: nvkm_event_ntfy_del() (:141) goes through nvkm_event_ntfy_remove(), which takes write_lock_irq() on that same list_lock (:84). Either way the re-arm happens after the drain, and the caller drops its reference immediately afterwards, for example nv84_fence_context_del(): nouveau_fence_context_del(&fctx->base); chan->fence = NULL; nouveau_fence_context_free(&fctx->base); That is a kref_put() on fctx->fence_ref, so the context outlives the teardown only while emitted fences still hold a reference of their own. That is no safety net: whenever none do, the count reaches zero right there and nouveau_fence_context_put() kfree()s fctx while the work is still queued. &fctx->uevent_work is embedded in that allocation, so the workqueue already dereferences freed memory when it picks the item up, and nouveau_fence_uevent_work() can then take fctx->lock on it. With CONFIG_DEBUG_OBJECTS_WORK and CONFIG_DEBUG_OBJECTS_FREE, kfree() of a still-queued work item is reported as the free of an active object. On live memory the re-armed work has nothing left to do: nouveau_fence_context_kill() empties fctx->pending and sets fctx->killed under fctx->lock, nouveau_fence_emit() then returns -ENODEV rather than queueing anything new, and nouveau_fence_update() only reaches nvif_event_block() if it signalled something off that list. The defect is the access to freed memory, not what the work would have found. Only chips from G84 on can reach this at all: nouveau_fence_context_new() returns before nvif_event_ctor() when priv->uevent is clear, and nv84_fence_create() is the only place that sets it. nv84_fence_context_del() is the context_del for all of those, because nvc0_fence_create() and gv100_fence_create() build on nv84_fence_create() and override only context_new. Use disable_work_sync() instead. It drains the work exactly like cancel_work_sync() does, and additionally increments the work item's disable count, after which "any attempt to queue @work will fail and return %false" (kernel/workqueue.c, disable_work()). The handler's schedule_work() then has nothing to re-arm, and the teardown order stays as it is. Draining a second time after nvif_event_dtor() would close the window as well, and without the newer API: once nvkm_event_ntfy_remove() has returned, no handler can start or still be running, so nothing re-arms the work past that point. disable_work_sync() is preferred here because it needs one synchronisation point instead of two, it keeps the work from being queued at all rather than cleaning up after it, and it is what drm has settled on for this (drm/xe, drm/panthor, drm_pagemap). Blocking the event rather than the work is not an option: fctx->event is created with wait = false, so a handler already inside nvkm_event_ntfy() can still queue the work. Note for backpor ---truncated---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Teardown is reached locally via DRM_IOCTL_NOUVEAU_CHANNEL_FREE or fd close on the nouveau render node: nouveau_abi16_chan_fini -> nouveau_channel_del -> nv84_fence_context_del -> nouveau_fence_context_del. The re-arming interrupt comes from the local GPU, not from a remote peer. AC:H - The attacker can force the re-arm window: a stuck channel keeps signaling-enabled fences pending, and a second channel floods non-stall IRQs. But synchronize_rcu() runs after nvif_event_dtor() and before nouveau_fence_context_free(), so the re-queued uevent_work normally runs on live fctx. The UAF needs the system_wq kworker starved across a full RCU grace period, which the attacker cannot control. PR:L - NOUVEAU_CHANNEL_ALLOC/CHANNEL_FREE/GEM_PUSHBUF/EXEC are DRM_RENDER_ALLOW with no capability check, so any user who can open /dev/dri/renderD* (seat user or render group) can create channels, emit fences and tear channels down. UI:N - The attacker drives both channels, the fence waits and the channel free through their own ioctls; no other user or admin has to act. S:U - The freed nv84_fence_chan and the workqueue that uses it both live in the kernel; impact stays in the kernel's own security authority, with no VM or IOMMU boundary crossed. C:H - A heap object reallocated into the freed nv84_fence_chan slot lets the attacker control the queued uevent_work; process_one_work() then runs attacker-chosen code with kernel privileges, which gives arbitrary kernel reads. I:H - process_one_work() loads work->func from the freed fctx and calls it, and the worklist links in that memory get unlinked. Refilling the slot gives control-flow hijack and kernel memory writes. A:H - Without a refill, the kworker dereferences freed or poisoned work_struct links and func, and nouveau_fence_uevent_work() takes fctx->lock on freed memory, giving an oops or list corruption that takes down the kernel.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux cc0037fa592d56e4abb9c7d1c52c4d2dc25cd906 to < fba3e939ed5cb2f1cd255a6bc5b9c1fb921d8587 (affected · git)39126abc5e20611579602f03b66627d7cd1422f0 to < d45c83c41b2d7cf25dbd9ba44a35ee66aaa23c67 (affected · git)39126abc5e20611579602f03b66627d7cd1422f0 to < f688ffe4a23ae12d2947e68b10225b208c36022c (affected · git)39126abc5e20611579602f03b66627d7cd1422f0 to < bf09cf3e05011b77d00c7dd4abca760dd8fff4f4 (affected · git)39126abc5e20611579602f03b66627d7cd1422f0 to < 827eb9328eaed831d7cc426ac2705038a40835b6 (affected · git)985d053f7633d8b539ab1531738d538efac678a9 (affected · git)6.6.18 to < 6.6.163 (affected · semver)6.7.6 to < 6.8 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.8 (affected)0 to < 6.8 (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

1

Linux · cna

drm/nouveau: disable the fence uevent work instead of just cancelling it

Provenance

Schema
5.2
Searchable
yes
Content hash
346f7ce073732fbaa80a4ef1e161f0c230e6ca47d76fbc380319b89f08a8d08f
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected