{"id":"CVE-2026-89828","aliases":["CVE-2026-89828"],"related":[],"kind":"vulnerability","state":"published","title":"drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init()\n\ndrmm_cgroup_register_region() is called before INIT_LIST_HEAD() and\ngpu_buddy_init() in amdgpu_vram_mgr_init(). If it fails, the function\nreturns early and bypasses those initializations.\n\nSince adev->mman.initialized is set to true before amdgpu_vram_mgr_init()\nis called, a failure triggers amdgpu_ttm_fini(), which calls\namdgpu_vram_mgr_fini(), which then:\n\n - Calls list_for_each_entry_safe() on reservations_pending and\n   reserved_pages, whose list_head::next pointers are zero-initialized\n   (NULL). The loop does not recognize them as empty and dereferences NULL.\n\n - Calls gpu_buddy_fini(), which iterates free_trees[] unconditionally\n   via for_each_free_tree(). Since mm->free_trees is NULL\n   (never allocated), this dereferences NULL.\n\nBoth result in a kernel panic on the module load error path.\n\nFix by moving drmm_cgroup_register_region() to after the list and buddy\nallocator are fully initialized, so the teardown path is safe to run.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init()\n\ndrmm_cgroup_register_region() is called before INIT_LIST_HEAD() and\ngpu_buddy_init() in amdgpu_vram_mgr_init(). If it fails, the function\nreturns early and bypasses those initializations.\n\nSince adev->mman.initialized is set to true before amdgpu_vram_mgr_init()\nis called, a failure triggers amdgpu_ttm_fini(), which calls\namdgpu_vram_mgr_fini(), which then:\n\n - Calls list_for_each_entry_safe() on reservations_pending and\n   reserved_pages, whose list_head::next pointers are zero-initialized\n   (NULL). The loop does not recognize them as empty and dereferences NULL.\n\n - Calls gpu_buddy_fini(), which iterates free_trees[] unconditionally\n   via for_each_free_tree(). Since mm->free_trees is NULL\n   (never allocated), this dereferences NULL.\n\nBoth result in a kernel panic on the module load error path.\n\nFix by moving drmm_cgroup_register_region() to after the list and buddy\nallocator are fully initialized, so the teardown path is safe to run.","source":"cvelist"}],"published":"2026-09-16T10:31:00.827Z","modified":"2026-10-19T09:18:26.770Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2b624a2c18656ea32e0849e7bc0018ba3c97ca64","fixed":"e184e46ca1ba652ab8053a10a51b39aad06d3f5c","status":"affected"},{"type":"git","introduced":"2b624a2c18656ea32e0849e7bc0018ba3c97ca64","fixed":"3e234c6face8651045f46895dfe9c086ea64f03b","status":"affected"},{"type":"git","introduced":"2b624a2c18656ea32e0849e7bc0018ba3c97ca64","fixed":"e773798e14ac0aea54ca9676083b91f445e5bc59","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.14","status":"unaffected"},{"type":"semver","introduced":"6.18.51","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.5","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e184e46ca1ba652ab8053a10a51b39aad06d3f5c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3e234c6face8651045f46895dfe9c086ea64f03b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e773798e14ac0aea54ca9676083b91f445e5bc59","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89828","url":"https://www.cve.org/CVERecord?id=CVE-2026-89828","licence":"CVE Terms of Use","modified":"2026-10-19T08:53:21.989Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89828","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89828","licence":"Public domain","modified":"2026-10-19T09:18:26.770Z"}],"updatedAt":"2026-11-25T22:59:38.949Z","epss":{"score":0.0021,"percentile":0.11828,"date":"2026-12-01T12:00:22.000Z"}}