{"id":"CVE-2026-139076","summary":"drm/nouveau/svm: drain fault handler before freeing svmm","details":"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-\u003emutex, caches it in the fault array, then drops\nsvm-\u003emutex 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() -\u003e\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-\u003esvm: on device teardown nouveau_svm_fini() runs first and frees\ndrm-\u003esvm (NULL) after blocking the notify and flushing the buffer, so the\nhandler is already drained; on per-client close drm-\u003esvm is alive and the\nflush runs.","modified":"2026-12-01T07:00:32.079524531Z","published":"2026-11-30T13:27:40.642Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139076.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/08d221ba875629f92018de668c3c06ca82769b16"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5b622e541ab68b7a681f9e58e6c3d5497ebd14b0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7403b7136f67554b1f92b5712ff7cb7b0162a75c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/796a4d6741b99c8a122582359621c43476eb24fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/812500ab5bb8100003bbae1391c0ef16c9c3df7d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b46ddaf0823405f81e681eb26ec98508f3eb9a07"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bd6ff771664bc245732ef78f922d625b774b41df"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139076.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139076"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"eeaf06ac1a5584e41cf289f8351e446bb131374b"},{"fixed":"7403b7136f67554b1f92b5712ff7cb7b0162a75c"},{"fixed":"bd6ff771664bc245732ef78f922d625b774b41df"},{"fixed":"5b622e541ab68b7a681f9e58e6c3d5497ebd14b0"},{"fixed":"2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29"},{"fixed":"796a4d6741b99c8a122582359621c43476eb24fe"},{"fixed":"812500ab5bb8100003bbae1391c0ef16c9c3df7d"},{"fixed":"08d221ba875629f92018de668c3c06ca82769b16"},{"fixed":"b46ddaf0823405f81e681eb26ec98508f3eb9a07"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139076.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.1.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139076.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}