{"id":"CVE-2026-139076","aliases":["CVE-2026-139076"],"related":[],"kind":"vulnerability","state":"published","title":"drm/nouveau/svm: drain fault handler before freeing svmm","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:27:40.642Z","modified":"2026-12-01T06:17:33.760Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"eeaf06ac1a5584e41cf289f8351e446bb131374b","fixed":"7403b7136f67554b1f92b5712ff7cb7b0162a75c","status":"affected"},{"type":"git","introduced":"eeaf06ac1a5584e41cf289f8351e446bb131374b","fixed":"bd6ff771664bc245732ef78f922d625b774b41df","status":"affected"},{"type":"git","introduced":"eeaf06ac1a5584e41cf289f8351e446bb131374b","fixed":"5b622e541ab68b7a681f9e58e6c3d5497ebd14b0","status":"affected"},{"type":"git","introduced":"eeaf06ac1a5584e41cf289f8351e446bb131374b","fixed":"2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29","status":"affected"},{"type":"git","introduced":"eeaf06ac1a5584e41cf289f8351e446bb131374b","fixed":"796a4d6741b99c8a122582359621c43476eb24fe","status":"affected"},{"type":"git","introduced":"eeaf06ac1a5584e41cf289f8351e446bb131374b","fixed":"812500ab5bb8100003bbae1391c0ef16c9c3df7d","status":"affected"},{"type":"git","introduced":"eeaf06ac1a5584e41cf289f8351e446bb131374b","fixed":"08d221ba875629f92018de668c3c06ca82769b16","status":"affected"},{"type":"git","introduced":"eeaf06ac1a5584e41cf289f8351e446bb131374b","fixed":"b46ddaf0823405f81e681eb26ec98508f3eb9a07","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.1","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7403b7136f67554b1f92b5712ff7cb7b0162a75c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bd6ff771664bc245732ef78f922d625b774b41df","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b622e541ab68b7a681f9e58e6c3d5497ebd14b0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/796a4d6741b99c8a122582359621c43476eb24fe","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/812500ab5bb8100003bbae1391c0ef16c9c3df7d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/08d221ba875629f92018de668c3c06ca82769b16","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b46ddaf0823405f81e681eb26ec98508f3eb9a07","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139076","url":"https://www.cve.org/CVERecord?id=CVE-2026-139076","licence":"CVE Terms of Use","modified":"2026-12-01T05:41:01.587Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139076","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139076","licence":"Public domain","modified":"2026-12-01T06:17:33.760Z"}],"updatedAt":"2026-12-01T06:32:16.961Z","epss":{"score":0.00272,"percentile":0.20883,"date":"2026-12-01T12:00:22.000Z"}}