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 4AD6E3CF1F5 for ; Mon, 10 Aug 2026 12:08:37 +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=1786363718; cv=none; b=dkA8S3g7HD/OjPLPdzWGku7Q+z3lz6CPQ3d4pNlT3r6Dg6mrmoyLu4MQ2NTEVBRfnjGR+yesmk+ZRi3+0hKZFfwSH3doq4UWoXfsntFKNMScWcai+dmNwavB3V/lOGqxWdmGWrt8u6mxX2dNl9+qg4smniM0+nlBsBjaeuxv5VA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363718; c=relaxed/simple; bh=MPCAFeQUBKhbSIgvxDmmsMIZcODaw/ST/FX1JHTA6Wc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hDyQ9YMbN6FYVOxunrd3N0/ZZNWuyCFsl0coAF5KsPTUSgbsfWw6kcVf73MPfX9HaDK9lA9TS12uJsACCYqFdNkNL3fWdl8OyFPKwJTZmZ5vJeUQOD929QNYyzu79EedC6HZlXSrbjvgrMps7XfaOzw2IpXSC0TvctPCUlmammY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rMVViclY; 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="rMVViclY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B9D1E1F000E9; Mon, 10 Aug 2026 12:08:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363717; bh=AASNoaw6oxHrzV9+TitFLpqC+vrHwD2KNWlBmuP3MHI=; h=From:To:Cc:Subject:Date:Reply-To; b=rMVViclYFvLDzcCeEeWkKUfsfKKMyHDWzoAwruc6vRCwV3m2HXAA0d6yVxqCQAyyT V2OmLlYBVx2GlvAl4TXWtO5h5BkZZpYTl5GF6larSqAaPun6GrppA2CBaHOdoXlsvF DR+6JbU6R9gQ8ZVbvQsJhZ0jEH6auRd85xBx8FUQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68234: drm/amdgpu: fix bo->pin leaking in amdgpu_bo_create_reserved Date: Mon, 10 Aug 2026 13:59:11 +0200 Message-ID: <2026081017-CVE-2026-68234-c71a@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=2930; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vl7+jhJYBICZMLrg3UHH8i/LuB50latdZLvxuElwE2g=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe+bO62Hu6BBuyc78o7jUUluxxfKO9oaPL3zcTvdMP Xq4RvxsRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykaQXDgpOfl2RV8z2ZptO+ 4XyY0DqNq3E3+xkWTOBrfS24+9E3Ix7Jstgf0045CS76BAA= 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 bo->pin leaking in amdgpu_bo_create_reserved amdgpu_bo_create_reserved() only allocates a new BO when *bo_ptr (struct amdgpu_bo **bo_ptr as input parameter) is NULL, it simply skips creation when *bo_ptr is non-NULL. But it unconditionally reserves, pins, gart allocates and maps the BO afterwards. When the same non-NULL BO pointer is passed in again, for example firmware buffers that live in adev and are re-loaded on every resume / cp_resume / start under AMDGPU_FW_LOAD_DIRECT, amdgpu_bo_pin() just increases pin_count unconditionally, however the matching teardown only unpins once, so pin_count never drops to zero, so TTM is not able to move, swap or evict a BO, causing BO leaks. This commit fixes this issue by only pinning the bo once at creation, and repeated calls no longer take additional pin references. (cherry picked from commit 3ddc0ae76202c447b6aec61e907b852bc94671cf) The Linux kernel CVE team has assigned CVE-2026-68234 to this issue. Affected and fixed versions =========================== Fixed in 6.6.148 with commit 51eeef1949c11d3dcb5f422a5d9b3f09ebe8a1bc Fixed in 6.12.101 with commit 2f390b4c83011452753fd84972f657d2b00a952b Fixed in 6.18.42 with commit ba7b6444097a73ccd3d3ac9e2be4ebb73d226460 Fixed in 7.1.6 with commit 9743f60013273987abf415dc47474683d22aaee9 Fixed in 7.2-rc4 with commit a2f895f3c852063258d62e9f74b081de07ca95df 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-68234 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_object.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/51eeef1949c11d3dcb5f422a5d9b3f09ebe8a1bc https://git.kernel.org/stable/c/2f390b4c83011452753fd84972f657d2b00a952b https://git.kernel.org/stable/c/ba7b6444097a73ccd3d3ac9e2be4ebb73d226460 https://git.kernel.org/stable/c/9743f60013273987abf415dc47474683d22aaee9 https://git.kernel.org/stable/c/a2f895f3c852063258d62e9f74b081de07ca95df