{"id":"CVE-2026-89801","revision":"fa200858cd8f4c99877c14acbf9e6553","records":[{"revision":"fa200858cd8f4c99877c14acbf9e6553","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-89801","aliases":[],"title":"drm/nouveau/uvmm: fix premature region free on failed OP_UNMAP_SPARSE","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/nouveau/uvmm: fix premature region free on failed OP_UNMAP_SPARSE\n\nIn nouveau_uvmm_bind_job_submit()'s OP_UNMAP_SPARSE arm, op->reg is set\nfrom nouveau_uvma_region_find(), which only looks the region up and takes\nno reference; a region's sole reference is its membership in\nuvmm->region_mt. Two failure paths leave op->reg set: the -ENOENT check\nwhen the region is busy, and the drm_gpuvm_sm_unmap_ops_create() failure.\nThe sibling nouveau_uvmm_sm_unmap_prepare() failure just below clears\nop->reg; these two do not.\n\nunwind_continue steps back one op, so the failing op is skipped by the\nunwind loop and its op->reg stays set. nouveau_uvmm_bind_job_cleanup()\nthen enters its if (op->reg) branch and calls nouveau_uvma_region_remove()\nand nouveau_uvma_region_put() on it, dropping the tree's sole reference\nand freeing a region this job never created. The comment above the\ncleanup loop documents the broken invariant: op->reg must be NULL on\nsubmit failure.\n\nThis frees a live region on an unrelated failure, reachable single-job\nwhen drm_gpuvm_sm_unmap_ops_create() returns -ENOMEM; if another job owns\nthe same region, its cleanup then removes and puts the freed region, a\nuse-after-free. Clear op->reg on both failure paths.","state":0,"publishedAt":"2026-09-16T10:30:34.458+00:00","modifiedAt":"2026-10-19T08:52:55.925+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpu/drm/nouveau/nouveau_uvmm.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"b88baab828713ce0b49b185444b2ee83bed373a8\",\n                            \"lessThan\": \"ba42d8a1c2c7629c61914df11a7d63ac77449ffb\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b88baab828713ce0b49b185444b2ee83bed373a8\",\n                            \"lessThan\": \"88114e3a96582882e63b2f73aa7a5a9cf0d5073c\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b88baab828713ce0b49b185444b2ee83bed373a8\",\n                            \"lessThan\": \"24c25b182d17d1bdfde0088c96bdf6f93e8f46bc\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b88baab828713ce0b49b185444b2ee83bed373a8\",\n                            \"lessThan\": \"4083d24c2636fde7b18076115af52820d203bc57\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"b88baab828713ce0b49b185444b2ee83bed373a8\",\n                            \"lessThan\": \"ccf930812f23b8259ef64fd3394d53b093e4651a\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"drivers/gpu/drm/nouveau/nouveau_uvmm.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"6.6\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"6.6\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.157\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.12.110\",\n                            \"lessThanOrEqual\": \"6.12.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.18.51\",\n                            \"lessThanOrEqual\": \"6.18.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.2.5\",\n                            \"lessThanOrEqual\": \"7.2.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"7.3\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"severity":"HIGH"}],"references":["https://git.kernel.org/stable/c/ba42d8a1c2c7629c61914df11a7d63ac77449ffb","https://git.kernel.org/stable/c/88114e3a96582882e63b2f73aa7a5a9cf0d5073c","https://git.kernel.org/stable/c/24c25b182d17d1bdfde0088c96bdf6f93e8f46bc","https://git.kernel.org/stable/c/4083d24c2636fde7b18076115af52820d203bc57","https://git.kernel.org/stable/c/ccf930812f23b8259ef64fd3394d53b093e4651a"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-89801","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-89801","identifiers":["CVE-2026-89801"]},"retained":false,"historicalAffected":[]}],"coverage":[]}