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=1793187529; b=aFtriziZmKzY1wF0O39p6Xf9VYckxIHF92+ppAu22imMu9uTypBZZ8x/C7uibr8xKJ0B lRGR8S5+Swjm1R8xbtoG1+RiLDbVz/q6ZTv74/TJoT+pPqXxIDq3y11nO78g1CFkSwO2k Ob3VOb3XowPyOEVnL1LGd0IRIGGWhMtqpMcM6+Bstw/Rpe5oiWMweebKFGbwcO4EjDxPT 4XHy03lVB8FDtlrtoLsNoMlG+VuaBaJMO63WCQ7VyNJisdfS2L8CUbye+kl1d+kFSVUeP bj68nmxN4teQdjfykAnRdgc1zoAak6fnpDJJzEgnNlWMzIMI6PmKoBuANlEkkd55HFQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187529; 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=G7FTyDFVNNNZ7+Jmri3VeNTtsQT6WRiIV0b9MSxS5Po=; b=0gttlwh5dLvRQO77P/DJvpfMD+Q1HbfmFKA7EHNmRRHT1pvdi3MxBT7FmUuMak52J0Se P4QPosmoByLFcstPmQ9oLIisk0NHmtuZ402eluHaf1WY6uAgC1wa00Yf1yJBubSXrh9Zu f0i+jEoYUfTOOxDCf+EVK+C7ceDzWL0XlbqoAccKCnZKCP2cf+Jvwmdu5qUswkI4brZFd C6BcnBC3i0kP3KMDbnbYZ5J4XpKgMpwFpxjwJ6NpZz0YvTn4LoyF2QI1AOOmAhwBLNwVJ D2XM9oTRkIXKlJ93lAukxRD6XH+ERf1KbE0ON0VODpcGwebDsR62jlEGX07D9ZAIdIA== 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=bG3yRaf+; 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 45575606A31A for ; Wed, 28 Oct 2026 11:38:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=bG3yRaf+ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8EC371F01825; Wed, 28 Oct 2026 11:38:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187529; bh=G7FTyDFVNNNZ7+Jmri3VeNTtsQT6WRiIV0b9MSxS5Po=; h=From:To:Cc:Subject:Date:Reply-To; b=bG3yRaf+gy52T6efCK8WacYhfv8tSH4dsMPVN2X0z+RsJdq2xpd+sxORlzRVYB86g V1TXZ6vLZ9xFJxQmgp3BH3b9iDNyROMulAeawW9mlzFOJD19hpSoeLU3n0rTzj0zNc IZeymFa/wRdnDexNN//KBOipjOLj2dAsNspvxctw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99149: drm/amdgpu: fix GEM object leak on ENOMEM in userptr ioctl Date: Wed, 28 Oct 2026 11:35:36 +0100 Message-ID: <2026102803-CVE-2026-99149-d642@gregkh> X-Mailer: git-send-email 2.56.0 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=2199; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=TZArjIcLQUNhak2XWE1sePiDAHyQfVSIcldI6yPqujc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz1+3ZIveL8D2nJFt2edW1lT1Z9wajt8fi3anVDkG+ HQKJrJ2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQWajAsOHcuftPkDiu+tSos nh8POqarXZwSxTBP3evAmt+8fl8N/7BvMt+XfiJaQ/IjAA== 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 GEM object leak on ENOMEM in userptr ioctl When amdgpu_hmm_range_alloc() fails amdgpu_gem_userptr_ioctl() returns -ENOMEM right away and skips the cleanup every other error path goes through. The GEM object, the bo->parent reference on the VM root and the MMU notifier registration are all left behind. Use release_object here, not user_pages_done, range is still NULL at this point. (cherry picked from commit bbe739e407a542073ec1a7872b14843566b4919e) The Linux kernel CVE team has assigned CVE-2026-99149 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit e095b55155ef69a8ae0eb114a7fd2a381c012f33 and fixed in 7.2.13 with commit 64a6d40156ae98caafc922c6d79fe202b0acd836 Issue introduced in 6.19 with commit e095b55155ef69a8ae0eb114a7fd2a381c012f33 and fixed in 7.3 with commit 3c516a5646285442e1cd71dff2584b77eb4fc421 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-99149 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_gem.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/64a6d40156ae98caafc922c6d79fe202b0acd836 https://git.kernel.org/stable/c/3c516a5646285442e1cd71dff2584b77eb4fc421