{"id":"CVE-2026-139076","state":"PUBLISHED","title":"drm/nouveau/svm: drain fault handler before freeing svmm","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau/svm: drain fault handler before freeing svmm\n\nThe SVM fault handler nouveau_svm_fault() looks up each fault's\nnouveau_svmm under svm->mutex, caches it in the fault array, then drops\nsvm->mutex and dereferences the svmm across blocking faults\n(mmu_interval_notifier_insert(), hmm_range_fault()).\n\nnouveau_svmm is not refcounted. On DRM file close nouveau_svmm_fini() ->\nmmu_notifier_put() frees it asynchronously via call_srcu() without\nwaiting for the handler, and mmget_not_zero() pins the mm, not the svmm.\nflush_work() on the fault buffer otherwise runs only at device removal\nand suspend, never on close, so a fault handled concurrently with a close\ncan dereference a freed svmm.\n\nThe instance is already unlinked by nouveau_svmm_part() earlier in the\nsame close, so no new fault can resolve to it. Drain the handler in\nnouveau_svmm_fini() before the free, guarding the flush with a NULL check\non drm->svm: on device teardown nouveau_svm_fini() runs first and frees\ndrm->svm (NULL) after blocking the notify and flushing the buffer, so the\nhandler is already drained; on per-client close drm->svm is alive and the\nflush runs.","publishedAt":"2026-11-30T13:27:40.642Z","updatedAt":"2026-11-30T13:27:40.642Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"7403b7136f67554b1f92b5712ff7cb7b0162a75c","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"bd6ff771664bc245732ef78f922d625b774b41df","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"5b622e541ab68b7a681f9e58e6c3d5497ebd14b0","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"796a4d6741b99c8a122582359621c43476eb24fe","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"812500ab5bb8100003bbae1391c0ef16c9c3df7d","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"08d221ba875629f92018de668c3c06ca82769b16","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"b46ddaf0823405f81e681eb26ec98508f3eb9a07","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/nouveau_svm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.1","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/nouveau_svm.c"]}],"references":["https://git.kernel.org/stable/c/7403b7136f67554b1f92b5712ff7cb7b0162a75c","https://git.kernel.org/stable/c/bd6ff771664bc245732ef78f922d625b774b41df","https://git.kernel.org/stable/c/5b622e541ab68b7a681f9e58e6c3d5497ebd14b0","https://git.kernel.org/stable/c/2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29","https://git.kernel.org/stable/c/796a4d6741b99c8a122582359621c43476eb24fe","https://git.kernel.org/stable/c/812500ab5bb8100003bbae1391c0ef16c9c3df7d","https://git.kernel.org/stable/c/08d221ba875629f92018de668c3c06ca82769b16","https://git.kernel.org/stable/c/b46ddaf0823405f81e681eb26ec98508f3eb9a07"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139076.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139076","state":"PUBLISHED","datePublished":"2026-11-30T13:27:40.642Z","dateUpdated":"2026-11-30T13:27:40.642Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.912Z"},"containers":{"cna":{"title":"drm/nouveau/svm: drain fault handler before freeing svmm","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau/svm: drain fault handler before freeing svmm\n\nThe SVM fault handler nouveau_svm_fault() looks up each fault's\nnouveau_svmm under svm->mutex, caches it in the fault array, then drops\nsvm->mutex and dereferences the svmm across blocking faults\n(mmu_interval_notifier_insert(), hmm_range_fault()).\n\nnouveau_svmm is not refcounted. On DRM file close nouveau_svmm_fini() ->\nmmu_notifier_put() frees it asynchronously via call_srcu() without\nwaiting for the handler, and mmget_not_zero() pins the mm, not the svmm.\nflush_work() on the fault buffer otherwise runs only at device removal\nand suspend, never on close, so a fault handled concurrently with a close\ncan dereference a freed svmm.\n\nThe instance is already unlinked by nouveau_svmm_part() earlier in the\nsame close, so no new fault can resolve to it. Drain the handler in\nnouveau_svmm_fini() before the free, guarding the flush with a NULL check\non drm->svm: on device teardown nouveau_svm_fini() runs first and frees\ndrm->svm (NULL) after blocking the notify and flushing the buffer, so the\nhandler is already drained; on per-client close drm->svm is alive and the\nflush runs."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"7403b7136f67554b1f92b5712ff7cb7b0162a75c","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"bd6ff771664bc245732ef78f922d625b774b41df","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"5b622e541ab68b7a681f9e58e6c3d5497ebd14b0","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"796a4d6741b99c8a122582359621c43476eb24fe","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"812500ab5bb8100003bbae1391c0ef16c9c3df7d","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"08d221ba875629f92018de668c3c06ca82769b16","versionType":"git"},{"version":"eeaf06ac1a5584e41cf289f8351e446bb131374b","status":"affected","lessThan":"b46ddaf0823405f81e681eb26ec98508f3eb9a07","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/nouveau_svm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.1","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.1","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/nouveau/nouveau_svm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7403b7136f67554b1f92b5712ff7cb7b0162a75c"},{"url":"https://git.kernel.org/stable/c/bd6ff771664bc245732ef78f922d625b774b41df"},{"url":"https://git.kernel.org/stable/c/5b622e541ab68b7a681f9e58e6c3d5497ebd14b0"},{"url":"https://git.kernel.org/stable/c/2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29"},{"url":"https://git.kernel.org/stable/c/796a4d6741b99c8a122582359621c43476eb24fe"},{"url":"https://git.kernel.org/stable/c/812500ab5bb8100003bbae1391c0ef16c9c3df7d"},{"url":"https://git.kernel.org/stable/c/08d221ba875629f92018de668c3c06ca82769b16"},{"url":"https://git.kernel.org/stable/c/b46ddaf0823405f81e681eb26ec98508f3eb9a07"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:40.642Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.1","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}