CVE-2026-139076

drm/nouveau/svm: drain fault handler before freeing svmm

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

drm/nouveau/svm: drain fault handler before freeing svmm

The SVM fault handler nouveau_svm_fault() looks up each fault's
nouveau_svmm under svm->mutex, caches it in the fault array, then drops
svm->mutex and dereferences the svmm across blocking faults
(mmu_interval_notifier_insert(), hmm_range_fault()).

nouveau_svmm is not refcounted. On DRM file close nouveau_svmm_fini() ->
mmu_notifier_put() frees it asynchronously via call_srcu() without
waiting for the handler, and mmget_not_zero() pins the mm, not the svmm.
flush_work() on the fault buffer otherwise runs only at device removal
and suspend, never on close, so a fault handled concurrently with a close
can dereference a freed svmm.

The instance is already unlinked by nouveau_svmm_part() earlier in the
same close, so no new fault can resolve to it. Drain the handler in
nouveau_svmm_fini() before the free, guarding the flush with a NULL check
on drm->svm: on device teardown nouveau_svm_fini() runs first and frees
drm->svm (NULL) after blocking the notify and flushing the buffer, so the
handler is already drained; on per-client close drm->svm is alive and the
flush runs.

Analysis

AI-generated

Technical impact

In the Linux kernel, the Nouveau SVM fault handler can dereference a freshly freed svmm object because the object is not reference counted and is freed asynchronously during DRM file close. This results in a use‑after‑free bug that can corrupt kernel memory, potentially leading to a crash, denial of service, or local privilege escalation if an attacker can trigger the fault while the object is being released.

Affected Systems

The vulnerability affects Linux kernel distributions that ship the open‑source Nouveau graphics driver when the Secure Virtual Memory (SVM) feature is enabled. All kernel releases prior to the patch that introduced a drain step in nouveau_svm_fault and nouveau_svmm_fini are vulnerable. The bug is present in any kernel that loads the nouveau module and accesses the SVM fault handling code.

Risk and Exploitability

Because the bug corrupts kernel memory, it is a high‑severity flaw. An exploit requires a local attacker that can drive the Nouveau device, cause a fault, and close the DRM file concurrently. The EPSS score is not provided and the vulnerability is not currently listed in the CISA KEV catalog, but the lack of referenceable mitigations and the potential for arbitrary kernel execution imply a high risk. The patch removes the use‑after‑free by draining the fault handler before freeing the object, eliminating the vulnerability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel update that contains the Nouveau driver fix for the use‑after‑free bug.
  • If a kernel upgrade cannot be performed immediately, disable the Nouveau driver by adding "blacklist nouveau" or booting with "nouveau.modeset=0" to prevent the vulnerable code from loading.
  • Restrict access to DRM devices to trusted users only (e.g., limit /dev/dri ownership to root) until the patch is applied.

Generated by OpenCVE AI on November 30, 2026 at 18:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-364
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: drm/nouveau/svm: drain fault handler before freeing svmm The SVM fault handler nouveau_svm_fault() looks up each fault's nouveau_svmm under svm->mutex, caches it in the fault array, then drops svm->mutex and dereferences the svmm across blocking faults (mmu_interval_notifier_insert(), hmm_range_fault()). nouveau_svmm is not refcounted. On DRM file close nouveau_svmm_fini() -> mmu_notifier_put() frees it asynchronously via call_srcu() without waiting for the handler, and mmget_not_zero() pins the mm, not the svmm. flush_work() on the fault buffer otherwise runs only at device removal and suspend, never on close, so a fault handled concurrently with a close can dereference a freed svmm. The instance is already unlinked by nouveau_svmm_part() earlier in the same close, so no new fault can resolve to it. Drain the handler in nouveau_svmm_fini() before the free, guarding the flush with a NULL check on drm->svm: on device teardown nouveau_svm_fini() runs first and frees drm->svm (NULL) after blocking the notify and flushing the buffer, so the handler is already drained; on per-client close drm->svm is alive and the flush runs.
Title drm/nouveau/svm: drain fault handler before freeing svmm
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-364

    Signal Handler Race Condition

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:27 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM