From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795154091; b=0dWBPTyrCNxtMiVTM+WZVMVcuj+Sg2HTkC2PBceBFeQUE1tpDouOMkVEbF7M3jqwHz0u +lriWyDGonSWz3bPkv8Bt+N5L538qxoNXZaWVdizFm4xuL7XZUS334ar5Dfhmx/WhK91Y 9TiPPYgR/Mt24VFg8EuDfBaPSeXfoJljC7Pyg2ccDD7+ytWiTZVcbC2wlwYe20oXv0txC clXW62J4B/yiYZXcmypGe0p+V/v7a0gu88SxJoI9w7tU6plEnBpGyeZkqS1iUdKw/MwoU LtAXkiHHq3JDuoCV7AUSsaUcgTlZfmmNEyG3xwV0/KQI0mQQOZn4ICsjnx6tvMVELWA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795154091; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=WqF4IjR4U1BICyDmiZ7V0ju1MouneeS7uOa0ejsFXeA=; b=4eewLAL6j3YVP7I6B0nX3YF1k6jJvJTbP941nRZzmCv10Ly8UO2Ef35Jhz80572Vj91U 6SUq4swmSeQ5ojIb/KSRZo73VspJQ8F9yM7vyGXeuGEow+EzDzcH6wU1iTlO9NGnOseBS BvG4MUyavGUkoWEAHj4SL8MsXdeRZmLb3kewidP+rtrmaw1Z6EqHh6vkXs16PE+yjbc2e cd31UjPls8kLZriDBeI9TgqAp+6fDWRKE1mJXxF9Zi1nvo7IUJjL0EmjKmiDceHm8is1i VTAdWiunq247XFE2/bRuAKbzNuItxg/pKGrp5oQgZlhyIVPbht2Tk1YbVlEJCijTuSQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=JE6bL4G1; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C55C606A325 for ; Fri, 20 Nov 2026 05:54:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=JE6bL4G1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BE851F000C4; Fri, 20 Nov 2026 05:54:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795154091; bh=WqF4IjR4U1BICyDmiZ7V0ju1MouneeS7uOa0ejsFXeA=; h=From:To:Cc:Subject:Date:Reply-To; b=JE6bL4G1Z/k2k+ruIzqf1U+kAaHPN6Hdibp/78pmzQm22duxwl2egiCWWbbvw/R+2 d+6Abaa0R4OwcR6BW8IYvlYsFxbAR05dXHM6URC8bkisjiduPuI45SGhp01I+lOM9K jhR2xGnWOegDdap1LYLO85FwX3bZWghTaER1EH+0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99622: drm/amdgpu: drop the dma-buf reference when a KFD import fails Date: Fri, 20 Nov 2026 06:50:08 +0100 Message-ID: <2026112033-CVE-2026-99622-b73d@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2995; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BovE91zRIxXXmT+PwDlRHIQuxbcgdxLwiiAvQwl0T8Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/7+etD5i+du0XtccFJ55umsijUWlhvytfyKOL6Stn6 LX5c7XiOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiQcIM82M3eRfmqVd35y89 8nmLgs77WMtNzxlms7Su8X5umfc7XfTsyemnNUTrirl/AwA= 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: drop the dma-buf reference when a KFD import fails import_obj_create() takes a reference on the dma-buf for the new kgd_mem, but the error path after validating the BO doesn't drop it. Since the validation reserves the BO interruptibly, an import failing with -ERESTARTSYS leaks the exported BO with its memory, and keeps the module in use. Importing a 64 MiB VRAM BO in a loop while getting SIGUSR1 every 20 us and another thread changes the BO's mappings: INFO: 171821 imports, VRAM used before 65 MiB, after 129 MiB modprobe: FATAL: Module amdgpu is in use. Drop the reference, and free the sync object and the mutex of the kgd_mem as well. With that VRAM usage returns to 65 MiB after the same test. (cherry picked from commit b4d1eca2729840148ff2ea957724ce764ca5a94e) The Linux kernel CVE team has assigned CVE-2026-99622 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit 0e2e7c5b3d712f4589b3bf0eb2988337966648b6 and fixed in 6.12.118 with commit a2654cbb6a2244d8200e0505612f03bf36af2908 Issue introduced in 6.7 with commit 0e2e7c5b3d712f4589b3bf0eb2988337966648b6 and fixed in 6.18.64 with commit 6f300412649edf42e0eb232334a84764cd945118 Issue introduced in 6.7 with commit 0e2e7c5b3d712f4589b3bf0eb2988337966648b6 and fixed in 7.3.5 with commit 1e65f78269a95052c2de91b4a14ee83f3e780828 Issue introduced in 6.7 with commit 0e2e7c5b3d712f4589b3bf0eb2988337966648b6 and fixed in 7.4-rc2 with commit fb900f8bfd8a16126affd186d21001e4c6533324 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-99622 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/a2654cbb6a2244d8200e0505612f03bf36af2908 https://git.kernel.org/stable/c/6f300412649edf42e0eb232334a84764cd945118 https://git.kernel.org/stable/c/1e65f78269a95052c2de91b4a14ee83f3e780828 https://git.kernel.org/stable/c/fb900f8bfd8a16126affd186d21001e4c6533324