Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
High 7.0CVE-2026-139076

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

Published 30/11/2026 · Updated 01/12/2026 · Linux

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.

Affected products and versions

Linux Linuxeeaf06ac1a5584e41cf289f8351e446bb131374b – < 7403b7136f67554b1f92b5712ff7cb7b0162a75c · eeaf06ac1a5584e41cf289f8351e446bb131374b – < bd6ff771664bc245732ef78f922d625b774b41df · eeaf06ac1a5584e41cf289f8351e446bb131374b – < 5b622e541ab68b7a681f9e58e6c3d5497ebd14b0 · eeaf06ac1a5584e41cf289f8351e446bb131374b – < 2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29 · eeaf06ac1a5584e41cf289f8351e446bb131374b – < 796a4d6741b99c8a122582359621c43476eb24fe · eeaf06ac1a5584e41cf289f8351e446bb131374b – < 812500ab5bb8100003bbae1391c0ef16c9c3df7d · eeaf06ac1a5584e41cf289f8351e446bb131374b – < 08d221ba875629f92018de668c3c06ca82769b16 · eeaf06ac1a5584e41cf289f8351e446bb131374b – < b46ddaf0823405f81e681eb26ec98508f3eb9a07Fixed in: 7403b7136f67554b1f92b5712ff7cb7b0162a75c · bd6ff771664bc245732ef78f922d625b774b41df · 5b622e541ab68b7a681f9e58e6c3d5497ebd14b0 · 2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29 · 796a4d6741b99c8a122582359621c43476eb24fe · 812500ab5bb8100003bbae1391c0ef16c9c3df7d · 08d221ba875629f92018de668c3c06ca82769b16 · b46ddaf0823405f81e681eb26ec98508f3eb9a07
Linux Linux5.1Fixed in: 5.10.275 · 5.15.226 · 6.1.193 · 6.6.163 · 6.12.117 · 6.18.63 · 7.3.4 · 7.4-rc1

CVSS vector, explained

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Attack vector
Local
Attack complexity
High
Privileges required
Regular user
User interaction
Not required
Scope
Vulnerable component only
Confidentiality
High impact
Integrity
High impact
Availability
High impact

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.