PT-2026-163117
CVE-2026-139076
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
CVSS 3.1
7.0
HighMetricsAV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Found an issue in the description? Have something to add? Feel free to write us 👾