{"id":"CVE-2026-89828","summary":"drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init()","details":"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-\u003emman.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-\u003efree_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.","modified":"2026-09-18T03:48:33.299698647Z","published":"2026-09-16T10:31:00.827Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89828.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3e234c6face8651045f46895dfe9c086ea64f03b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e184e46ca1ba652ab8053a10a51b39aad06d3f5c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e773798e14ac0aea54ca9676083b91f445e5bc59"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/89xxx/CVE-2026-89828.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89828"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2b624a2c18656ea32e0849e7bc0018ba3c97ca64"},{"fixed":"e184e46ca1ba652ab8053a10a51b39aad06d3f5c"},{"fixed":"3e234c6face8651045f46895dfe9c086ea64f03b"},{"fixed":"e773798e14ac0aea54ca9676083b91f445e5bc59"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89828.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.14.0"},{"fixed":"6.18.51"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-89828.json"}}],"schema_version":"1.9.0"}