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 CC3DC3D093F for ; Fri, 28 Aug 2026 06:49:55 +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=1787899797; cv=none; b=tmAG9Ia3KNhnbBu2vD/i4SSiN1l8Io7fhSGsgjl6p5z6qfeSu6yyYy9UR9v6cgd1zwQ9gXAIvJQg5ZnMlYFDf9HolH8DUujy5tDaKgxfxg8HrJjJYtjwajy9nV0p/lyeeWTzkAkab/Y451aHf48GwYU9p0uMsG0Lb/GvZwKd+DA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787899797; c=relaxed/simple; bh=VUNd0LxEwA4J9cbwhNS6LwFOgaJNUe9qyFlzFIeZJZA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Bxzag/JAXcT9RO5Y/1Q0En4wafs4vZlYmsrjlXWWESd6rpF+GODp4dyqodte038PZVN1HkHLDqMhQ7Lr5BzNCv4nh45kxu1Secdcpdzdk7hW9Ij5782j6P8H9S/1kE66oLyJr4wkhMGyAuvIWlYIEnaXd88doUfkeZN3bhxVSxg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1k/A9TlG; 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="1k/A9TlG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E978E1F000E9; Fri, 28 Aug 2026 06:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787899795; bh=R7kJCJrSL7Gw03ekK5Cfxi9hvgXyfiC4jHcwaJO9eZA=; h=From:To:Cc:Subject:Date:Reply-To; b=1k/A9TlGEuG/4Y2e5mxQUJsW6cJGD5RaBUqriES/AQIf4XdaZhYu4RFuJT5T9XRXm qiU19ohzP7OKOBVQOmZ/k2rg8X6FjpzDtm/7zwfQ03S2CIgqFYssKfYjDboxW9O2KE Atf/Lvh1vaP1JCXSCL61b3dL+QZ/v3q4WvRBVax8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80618: drm/amdkfd: Avoid double-unpin of DOORBELL/MMIO BOs on free Date: Fri, 28 Aug 2026 08:48:55 +0200 Message-ID: <2026082835-CVE-2026-80618-5d17@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=3904; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Qc8cXk/fVKL6gKz5bBl+IbyAn2Dd0DHUrqccYWRydKo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkT9V2qtdUelic8S77T7jFN9zHjZ5HdDBeqlrDOt7Zq2 xbLGcfYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5bcswP0K0cXVQuoeNTwir hL4CjxwTF2c4w4I9whOL7ly5+a/YZZ/X1XkTQ1deqYgDAA== 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/amdkfd: Avoid double-unpin of DOORBELL/MMIO BOs on free amdgpu_amdkfd_gpuvm_free_memory_of_gpu() unpinned DOORBELL and MMIO remap BOs (which are pinned at allocation time) before checking whether the BO is still mapped to the GPU. When the BO is still mapped, the function returns -EBUSY and leaves the BO alive, but it has already been unpinned. The BO is then unpinned again when it is finally freed during process teardown, triggering a ttm_bo_unpin() underflow warning: WARNING: CPU: 18 PID: 15066 at ttm/ttm_bo.c:650 amdttm_bo_unpin+0x6d/0x80 [amdttm] Workqueue: kfd_process_wq kfd_process_wq_release [amdgpu] RIP: 0010:amdttm_bo_unpin+0x6d/0x80 [amdttm] Call Trace: amdgpu_bo_unpin+0x1a/0x90 [amdgpu] amdgpu_amdkfd_gpuvm_unpin_bo+0x31/0xb0 [amdgpu] amdgpu_amdkfd_gpuvm_free_memory_of_gpu+0x3bf/0x460 [amdgpu] kfd_process_free_outstanding_kfd_bos+0xd4/0x170 [amdgpu] kfd_process_wq_release+0x109/0x1b0 [amdgpu] process_one_work+0x1e2/0x3b0 worker_thread+0x50/0x3a0 kthread+0xdd/0x100 ret_from_fork+0x29/0x50 Move the unpin after the mapped_to_gpu_memory check so it only happens once we are committed to freeing the BO. (cherry picked from commit 927c5b2defb9b09856444d94bebfd056a002bd75) The Linux kernel CVE team has assigned CVE-2026-80618 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit d25e35bc26c3ca8cd728101545cfb3e86a5d7431 and fixed in 6.1.178 with commit 461ae406ae12107ebb321cabe561434c27aaea58 Issue introduced in 5.17 with commit d25e35bc26c3ca8cd728101545cfb3e86a5d7431 and fixed in 6.6.145 with commit 283e77af49fda96aaa57709fc5408b55ffec075e Issue introduced in 5.17 with commit d25e35bc26c3ca8cd728101545cfb3e86a5d7431 and fixed in 6.12.97 with commit c055a2088b719e9a4b580685e0ca97f9554a41a8 Issue introduced in 5.17 with commit d25e35bc26c3ca8cd728101545cfb3e86a5d7431 and fixed in 6.18.40 with commit 0e27d92f69b8e4c750a4b181cc05a86b9338c4f5 Issue introduced in 5.17 with commit d25e35bc26c3ca8cd728101545cfb3e86a5d7431 and fixed in 7.1.5 with commit 1d12ae8b079e173107abec0e5817332954c8e95f Issue introduced in 5.17 with commit d25e35bc26c3ca8cd728101545cfb3e86a5d7431 and fixed in 7.2 with commit 3f0cc1735273a57c5116710cf0202e12152f59cc 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-80618 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_amdkfd_gpuvm.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/461ae406ae12107ebb321cabe561434c27aaea58 https://git.kernel.org/stable/c/283e77af49fda96aaa57709fc5408b55ffec075e https://git.kernel.org/stable/c/c055a2088b719e9a4b580685e0ca97f9554a41a8 https://git.kernel.org/stable/c/0e27d92f69b8e4c750a4b181cc05a86b9338c4f5 https://git.kernel.org/stable/c/1d12ae8b079e173107abec0e5817332954c8e95f https://git.kernel.org/stable/c/3f0cc1735273a57c5116710cf0202e12152f59cc