Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C8E44EE841 for ; Wed, 16 Sep 2026 10:34:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554891; cv=none; b=SvXPNrH2SZzJt6yGFe4cLyV4yQxUmkrt5X/D8O8wqO/9cbvjxJgBIHpUducUhadHna2fCvJAbEyB6mdPItUu5FJQUa9/RsrQIlZnob4uNmSiTpmZ3uZ7Hn2cQgfU0e995dw9anLi+ibLnf6uLVGB2WGdL2QH3DbsP+iCy7QZ9Oo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554891; c=relaxed/simple; bh=qEO2rnPhsFPgc2F9BZwjAYHDuJHvTP04/73vlVfGIAg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ry6ajiE9yCfsV9KKZsJFsH6Cy093gLaEjivqtCBPE8jV+VfSWrL4CQjvv+7rBjIfSBQXpVvpqVT4ONzzh6UQb5q2U3lQNbTIWt8kKYyndEcrXFZ5ZbyOmUl+CHeuRa8cJJXmzFHOmIKA+yP7O61zEzKVo6SnwNmm3wM830RRxL8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0iO44kCp; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0iO44kCp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2284F1F00898; Wed, 16 Sep 2026 10:34:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554862; bh=b5+2V3/ceikXLbQxFuYo0jD4vm+nbxbNlGM1EBRydo0=; h=From:To:Cc:Subject:Date:Reply-To; b=0iO44kCpq3l/9lcLit0ym1yuxtQZXlVo6SQR7HP15EAPd+ezFSTKX8DXGCiftvXTV bQri8pbdMc7wbV4W9rkLrRm/wL/C6W/b5uZA03BCyrIgYa9ufbFuErnBDWvMQqqOfU EHszymL8hHTO9H9wWbO1wS1nybBSUcgj6sm8Cuj8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89828: drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init() Date: Wed, 16 Sep 2026 11:29:18 +0100 Message-ID: <2026091604-CVE-2026-89828-a739@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2985; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vQpQ/e6etqx56+uyv6lZ7OmC6pMsMsdUwkIYeq8kjgk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8gtOGi9Y6l38vvG7pNbRkGkd+uabMj54HfDmYtQ+c FaTRV61I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACayJ4thwfXjc5P9jDe8mFLz m/1r79wtXIZCNxgW7Ny699L/2hiN45wtPzofhCxJUPqrDwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init() drmm_cgroup_register_region() is called before INIT_LIST_HEAD() and gpu_buddy_init() in amdgpu_vram_mgr_init(). If it fails, the function returns early and bypasses those initializations. Since adev->mman.initialized is set to true before amdgpu_vram_mgr_init() is called, a failure triggers amdgpu_ttm_fini(), which calls amdgpu_vram_mgr_fini(), which then: - Calls list_for_each_entry_safe() on reservations_pending and reserved_pages, whose list_head::next pointers are zero-initialized (NULL). The loop does not recognize them as empty and dereferences NULL. - Calls gpu_buddy_fini(), which iterates free_trees[] unconditionally via for_each_free_tree(). Since mm->free_trees is NULL (never allocated), this dereferences NULL. Both result in a kernel panic on the module load error path. Fix by moving drmm_cgroup_register_region() to after the list and buddy allocator are fully initialized, so the teardown path is safe to run. The Linux kernel CVE team has assigned CVE-2026-89828 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 2b624a2c18656ea32e0849e7bc0018ba3c97ca64 and fixed in 6.18.51 with commit e184e46ca1ba652ab8053a10a51b39aad06d3f5c Issue introduced in 6.14 with commit 2b624a2c18656ea32e0849e7bc0018ba3c97ca64 and fixed in 7.2.5 with commit 3e234c6face8651045f46895dfe9c086ea64f03b Issue introduced in 6.14 with commit 2b624a2c18656ea32e0849e7bc0018ba3c97ca64 and fixed in 7.3-rc1 with commit e773798e14ac0aea54ca9676083b91f445e5bc59 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-89828 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/e184e46ca1ba652ab8053a10a51b39aad06d3f5c https://git.kernel.org/stable/c/3e234c6face8651045f46895dfe9c086ea64f03b https://git.kernel.org/stable/c/e773798e14ac0aea54ca9676083b91f445e5bc59