CVE-2026-139076: drm/nouveau/svm: drain fault handler before freeing svmm

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

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

The SVM fault handler nouveausvmfault() looks up each fault's nouveausvmm under svm->mutex, caches it in the fault array, then drops svm->mutex and dereferences the svmm across blocking faults (mmuintervalnotifierinsert(), hmmrangefault()).

nouveausvmm is not refcounted. On DRM file close nouveausvmmfini() -> mmunotifierput() frees it asynchronously via callsrcu() without waiting for the handler, and mmgetnotzero() pins the mm, not the svmm. flushwork() 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 nouveausvmmpart() earlier in the same close, so no new fault can resolve to it. Drain the handler in nouveausvmmfini() before the free, guarding the flush with a NULL check on drm->svm: on device teardown nouveausvmfini() 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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In nouveau_svmm_fini(), drain the SVM fault handler before freeing svmm by flushing the fault-buffer work; guard the flush with a NULL check on drm->svm.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:27 PM
Data Sourced
via MITRE·01:27 PM
Description
Data Sourced
via NVD·02:18 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger the use-after-free?

A Nouveau SVM fault handler must be processing faults for a client while that client's DRM file is closed. The handler can retain and dereference the client's nouveau_svmm after the close path asynchronously frees it.

2

Is this limited to device removal or suspend?

No. The problematic path is a per-client DRM file close while drm->svm remains active. Device removal and suspend already flush the fault buffer after blocking notifications, so the handler is drained in those paths.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203