drm/nouveau/svm: drain fault handler before freeing svmm
CVE-2026-139076Published 30 Nov 2026, 13:27 UTC
Real-world risk
1.9/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.0
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from Linux)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Linux kernelUbiquitous | = 5.1 | 7.4-rc1 |
What to do
Update to a fixed version: 7.4-rc1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Full compromiseCode execution or full control of the system or application | From the CVSS vector | 1.00 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 21), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.225
- Threat T1: Nothing known0.850
- 10 × impact 1 × prerequisites 0.225 × threat 0.851.912
- Rounded to one decimal between 0.1 and 101.9
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 3 Dec 2026 Risk 1.9 (cvss fallback)
Weakness
No weakness type given.
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
- CVE-2026-139076 on CVE.org