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 8A5C34E66B9 for ; Wed, 16 Sep 2026 10:33:21 +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=1789554834; cv=none; b=bqvKraOXGNmuAZ249oPJiqZ8NilNrv7rbyzSfe4v0k12AcrbG8cWFWutbivvCEWEwZmwiTReW/FbBtfna4oOySfEWRBPXAvRricUF0V/A9GBLrdXAiQ7URgQvp0oJgJlx2TpQMWQ9N5eOqvJE2lRixHil0Zkqtt79Di6DRjRUmY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554834; c=relaxed/simple; bh=WERQ4cdPm5+Yffb6LbLyv57ZX2BI6+QYmZLhMdeOGkc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JargLfpSOKxN9cg5isZWMEyNCDF1lVqGKrZClxtj4bDeH/SyqltbNoD9LkFHC0ftgyRoKVqAsYXs9rYZHtYhjG/YvXAUZkSCt9oSZq+TuyEbCs7/RUHRf1HKxW9bnZdwZyiZIg6JxCgo25Gyju2devTrXSB42YW0Eyez5FN7bQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jqA/na5y; 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="jqA/na5y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3462A1F00893; Wed, 16 Sep 2026 10:33:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554795; bh=PA6+O5Kx/XG1oq6+DGJdqdUrcGNF7O6edsR2AMujqLE=; h=From:To:Cc:Subject:Date:Reply-To; b=jqA/na5yT5rZdmkqpvvGaXbu9ryVzw+tC1fFK1pOPcX7NDA+kCFTNHD4ooq636Ob2 FINAzspi0Mf3xQwPUPnrYD6o9qYIk2a3fcxgSyb5JlFGgXFgAoWbq+tDA7VenSF83a f7jC0tAuXncgtSPJk9vRgrdjJqZc51FZVI5KzWa0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89808: drm/amdkfd: Fix the case that vm range is hole at svm_migrate_copy_to_vram Date: Wed, 16 Sep 2026 11:28:58 +0100 Message-ID: <2026091654-CVE-2026-89808-cc19@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=2377; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nFS2fCIRrb2UfG9PuNxYms4k61T/vZU8VKhqs94l9F0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8tOiAuaZ/Yw/d8aAISmWI9pa3ufMgZgPz4wfzPLgU T5psiShI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbSNZ1hfrpUgrvM3INLffmL 81tsnx3LiLldzzA//9Wi6dlOU2Yv0XJx3XWkyzthZqcgAA== 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: Fix the case that vm range is hole at svm_migrate_copy_to_vram When migration vm range is hole at cpu side(MIGRATE_PFN_MIGRATE set + MIGRATE_PFN_VALID unset) driver still allocates device pages. There is no dma map of src pages and migration. j is 0 and svm_migrate_copy_memory_gart() will return an uninitialized r. That can trigger out_free_vram_pages to drop all VRAM just set up. Initialize r and only call the last svm_migrate_copy_memory_gart if j > 0. Current code postponed the last page to the final copy. This patch flushes on the last page when reach to the end of current drm_buddy_block; avoids another svm_migrate_copy_memory_gart. The Linux kernel CVE team has assigned CVE-2026-89808 to this issue. Affected and fixed versions =========================== Fixed in 6.18.51 with commit ae806a95b28fcecb913430cfa45a252e91a945d6 Fixed in 7.2.5 with commit 0a9a0e8a97da70a0336c9115178aaf1be29bcfb1 Fixed in 7.3-rc1 with commit 520e345ffe05aabef1db82beda4288afb1757ff2 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-89808 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/amdkfd/kfd_migrate.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/ae806a95b28fcecb913430cfa45a252e91a945d6 https://git.kernel.org/stable/c/0a9a0e8a97da70a0336c9115178aaf1be29bcfb1 https://git.kernel.org/stable/c/520e345ffe05aabef1db82beda4288afb1757ff2