drm/nouveau/uvmm: clear the dirty flag when unwinding an OP_UNMAP_SPARSE
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel c60033c172420179b7bbb3d1f843f8dc90164dc5, Kernel 1101cbfe7f342e5eaaf7444965d4f1215abdac4c, Kernel 196ce9e5e93202da097062be24e404984dbc5ac2 and 6 more.
In the Linux kernel, the following vulnerability has been resolved: drm/nouveau/uvmm: clear the dirty flag when unwinding an OP_UNMAP_SPARSE A successful OP_UNMAP_SPARSE marks its region dirty with nouveau_uvma_region_dirty() and defers the teardown to nouveau_uvmm_bind_job_cleanup(); it does not remove the region from uvmm->region_mt. If a later op in the job fails, the unwind path never clears reg->dirty (set in one place, cleared nowhere) and sets op->reg = NULL, so cleanup skips the teardown. The region is left in the tree with dirty set and its completion never signalled. Later binds over that range then fail permanently -- -ENOENT or -EINVAL from the dirty checks, or an unkillable wait_for_completion() in bind_validate_region() -- for the lifetime of the uvmm. Clear reg->dirty when the unwind reverts the sparse unmap, restoring the region to the state it was found in.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=b88baab828713ce0b49b185444b2ee83bed373a8 <c60033c172420179b7bbb3d1f843f8dc90164dc5, >=b88baab828713ce0b49b185444b2ee83bed373a8 <1101cbfe7f342e5eaaf7444965d4f1215abdac4c, >=b88baab828713ce0b49b185444b2ee83bed373a8 <196ce9e5e93202da097062be24e404984dbc5ac2, >=b88baab828713ce0b49b185444b2ee83bed373a8 <38a62306c4266bcb3cd89e33c7111ee33096ebb3, >=b88baab828713ce0b49b185444b2ee83bed373a8 <a129b2b875c148aba233ace8447a0c36ca3bae07, =6.6 | c60033c172420179b7bbb3d1f843f8dc90164dc5, 1101cbfe7f342e5eaaf7444965d4f1215abdac4c, 196ce9e5e93202da097062be24e404984dbc5ac2, 38a62306c4266bcb3cd89e33c7111ee33096ebb3, a129b2b875c148aba233ace8447a0c36ca3bae07 |
| linux-kernel: Kernel | >=6.19.0 <7.2.5, >=6.6.0 <6.6.157, >=6.7.0 <6.12.110, >=6.13.0 <6.18.51 | 7.2.5, 6.6.157, 6.12.110, 6.18.51 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket