CVE-2026-139076
published high CVSS 3.1 · 7.0drm/nouveau/svm: drain fault handler before freeing svmm
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxeeaf06ac1a5584e41cf289f8351e446bb131374b to < 7403b7136f67554b1f92b5712ff7cb7b0162a75c · eeaf06ac1a5584e41cf289f8351e446bb131374b to < bd6ff771664bc245732ef78f922d625b774b41df · eeaf06ac1a5584e41cf289f8351e446bb131374b to < 5b622e541ab68b7a681f9e58e6c3d5497ebd14b0 · eeaf06ac1a5584e41cf289f8351e446bb131374b to < 2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29 · eeaf06ac1a5584e41cf289f8351e446bb131374b to < 796a4d6741b99c8a122582359621c43476eb24fe · eeaf06ac1a5584e41cf289f8351e446bb131374b to < 812500ab5bb8100003bbae1391c0ef16c9c3df7d · eeaf06ac1a5584e41cf289f8351e446bb131374b to < 08d221ba875629f92018de668c3c06ca82769b16 · eeaf06ac1a5584e41cf289f8351e446bb131374b to < b46ddaf0823405f81e681eb26ec98508f3eb9a07 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.1 (affected) · 0 to < 5.1 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The free comes from the attacker's own close() of a nouveau render-node fd (nouveau_drm_postclose -> nouveau_cli_fini -> nouveau_vmm_fini -> nouveau_svmm_fini). The use comes from GPU replayable faults raised by the attacker's own channel and handled in the nouveau_svm_fault worker. No remote data reaches either side. AC:H - nouveau_svm.c is only built with CONFIG_DRM_NOUVEAU_SVM (EXPERIMENTAL, default n, depends on STAGING; unset in Debian and Ubuntu nvidia configs), and nouveau_svm_init() bails on GPUs newer than Pascal. The race itself is attacker-driven: a FUSE-backed VMA stalls hmm_range_fault, and close finishes after nouveau_channel_idle's 15 s timeout. PR:L - DRM_IOCTL_NOUVEAU_SVM_INIT, CHANNEL_ALLOC and GEM_PUSHBUF are all DRM_RENDER_ALLOW with no capability check. Any user who can open /dev/dri/renderD* (seat or render-group user) can create the svmm, join a channel to it, cause GPU faults and close the fd. UI:N - The attacker's own process does everything: SVM_INIT, channel alloc, pushbuf submission that faults on SVM addresses, the FUSE stall and the fd close. No other user has to act. S:U - The freed nouveau_svmm and nouveau_cli are kernel heap objects used by the kernel fault worker. The impact stays inside the kernel's own security authority, with no VM, IOMMU or sandbox boundary crossed. C:H - After the free, nouveau_range_fault() reads svmm->vmm from the freed kmalloc object and passes it to nvif_object_ioctl(). If the slot is reclaimed with attacker data, the worker uses an attacker-chosen object pointer, which supports kernel memory disclosure. I:H - The worker writes to the freed svmm in mutex_lock(&svmm->mutex). nvif_object_ioctl() then calls through object->client->driver->ioctl on the svmm->vmm pointer, so a reclaimed svmm gives an indirect-call hijack in kworker context. A:H - Even without reclaiming the slot, the worker can oops. It can read svmm->vmm after nouveau_svmm_fini() set it to NULL, then dereference object->client near address zero. It can also touch the freed svmm or the kfree'd nouveau_cli through nouveau_svm_range_invalidate().
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | eeaf06ac1a5584e41cf289f8351e446bb131374b to < 7403b7136f67554b1f92b5712ff7cb7b0162a75c (affected · git)eeaf06ac1a5584e41cf289f8351e446bb131374b to < bd6ff771664bc245732ef78f922d625b774b41df (affected · git)eeaf06ac1a5584e41cf289f8351e446bb131374b to < 5b622e541ab68b7a681f9e58e6c3d5497ebd14b0 (affected · git)eeaf06ac1a5584e41cf289f8351e446bb131374b to < 2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29 (affected · git)eeaf06ac1a5584e41cf289f8351e446bb131374b to < 796a4d6741b99c8a122582359621c43476eb24fe (affected · git)eeaf06ac1a5584e41cf289f8351e446bb131374b to < 812500ab5bb8100003bbae1391c0ef16c9c3df7d (affected · git)eeaf06ac1a5584e41cf289f8351e446bb131374b to < 08d221ba875629f92018de668c3c06ca82769b16 (affected · git)eeaf06ac1a5584e41cf289f8351e446bb131374b to < b46ddaf0823405f81e681eb26ec98508f3eb9a07 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.1 (affected)0 to < 5.1 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/08d221ba875629f92018de668c3c06ca82769b16
- https://git.kernel.org/stable/c/2aad6cf9e6eecd335c423e31a5d8ffeee8eb0f29
- https://git.kernel.org/stable/c/5b622e541ab68b7a681f9e58e6c3d5497ebd14b0
- https://git.kernel.org/stable/c/7403b7136f67554b1f92b5712ff7cb7b0162a75c
- https://git.kernel.org/stable/c/796a4d6741b99c8a122582359621c43476eb24fe
- https://git.kernel.org/stable/c/812500ab5bb8100003bbae1391c0ef16c9c3df7d
- https://git.kernel.org/stable/c/b46ddaf0823405f81e681eb26ec98508f3eb9a07
- https://git.kernel.org/stable/c/bd6ff771664bc245732ef78f922d625b774b41df
Provider assertions
1Linux · cna
drm/nouveau/svm: drain fault handler before freeing svmm
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6548b2f90d4ae10582841a15e5616cc714aa95de0c4d0d47f090c8f7a1ddee59
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record