PT-2026-163117

CVE-2026-139076

·

Publicado

2026-11-30

·

Atualizado

2026-11-30

Descrição por

CVSS 3.1
7.0
Alta
MétricasAV: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.
Explorabilidade
Correção
Fornecedores
Produtos afetados
Identificadores relacionados
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾