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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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.

ProductVersions
Linux Linuxeeaf06ac1a5584e41cf289f8351e446bb131374b to before 7403b7136f67554b1f92b5712ff7cb7b0162a75c Affectedeeaf06ac1a5584e41cf289f8351e446bb131374b to before bd6ff771664bc245732ef78f922d625b774b41df Affectedeeaf06ac1a5584e41cf289f8351e446bb131374b to before 5b622e541ab68b7a681f9e58e6c3d5497ebd14b0 Affectedeeaf06ac1a5584e41cf289f8351e446bb131374b to before 2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29 Affectedeeaf06ac1a5584e41cf289f8351e446bb131374b to before 796a4d6741b99c8a122582359621c43476eb24fe Affectedeeaf06ac1a5584e41cf289f8351e446bb131374b to before 812500ab5bb8100003bbae1391c0ef16c9c3df7d Affectedeeaf06ac1a5584e41cf289f8351e446bb131374b to before 08d221ba875629f92018de668c3c06ca82769b16 Affectedeeaf06ac1a5584e41cf289f8351e446bb131374b to before b46ddaf0823405f81e681eb26ec98508f3eb9a07 Affected
Linux Linux5.1 Affectedbefore 5.1 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.