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=1793187526; b=s5GK5bTZEnSHkY2YEtKUjacnFxR72DcjLXzix3aU6MgQlkGO43KQUmG7VX9rnmDOzSQG ln5YgA0aLi6nYuB2sqaAw2VkdNtklJkN28RLIqpaCJQNWU7uPaJUuaAgjGnLkEnoYg2WI Z8PT8T2rxeLVGV3ASp+sRlLZlyXxeEuhCbig9tzI0PNUgbCl21fLJi8FZdHhJ7p17MrBy qgLrB995cy7saT9QGJD2WlaIF5JxyuFgZ2uuHM3gCPKR9V+aAdlwUoyIfp6FAnQo8lP2P ezsgID3H3JBUVrkECAOppkaZQ9yrYewYJnf2ZR1+FUhQNWNlz8wfjXXzM5XWjPM6g4w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187526; 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=ZjkkRPalkZrTraa/p2huv2MizgzfDOozWsB7v8101Cs=; b=YeDV9lh0NETGYnV+gQh2MWWK7F7rMiXUGvhRehMqGQZjicHaZPgihaEuEAHAKO/I1R6C MK8pJd0JocY4ARGLwz4cRctdYZ6tu36FuheSVmaTfvgssF/OraNzMB2tKdbHyS7gXFlk/ RM2nlS9ZSF7Z+YawG8RIwBS/ambzK8hqrG7eJTsXFdM8PO3A3ygJERO5kctq4Lxl9s1tO BYJtpuTKgDCz6Dlz8yH6QetfH35OC3vBt3mICRVtN31LB8nQ6K7il798cqNHSBsezd+5q K3vigCnzXbaD1087I8BMGe/iqvxKFSYqjyHFUBUfBRAjXVzTPuadV8UYBVK4fhibpsw== 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=LVpO8sWs; 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 C5032606A31A for ; Wed, 28 Oct 2026 11:38:45 +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=LVpO8sWs Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE2311F01825; Wed, 28 Oct 2026 11:38:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187525; bh=ZjkkRPalkZrTraa/p2huv2MizgzfDOozWsB7v8101Cs=; h=From:To:Cc:Subject:Date:Reply-To; b=LVpO8sWsbgjIJtrDzGqZWIcsiZZGFgiMQzRV8xvRnR8fB8v+i0AgNkYhTRx9XAt4K JsSTLSEkYkSHt3nlXWtZ+3GurGSPNucpurHVn8Penkir7pLxEqN1ZaEArgSeG0LTIj HO2yc3VdG+Mf1uMjSwCNhP5G2vSsVT0mGGOhsIqk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99148: drm/amdgpu: keep the eviction fence until the last handle is closed Date: Wed, 28 Oct 2026 11:35:35 +0100 Message-ID: <2026102802-CVE-2026-99148-c823@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=3046; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WV6sijuOf5AyjVlyoHAEDlliQX/L3A0SeU5TZ81Rzis=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz19/vs/kdsS2gmOaByMsuAXvXpAQFt6wLmC/x8tuh at1la9+dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEbvoxLLip2mtgJv/9/KQd cop64Vab/587ps0wP8Y5tHW6xsL3TEfWvaqYXPFs98dTDwE= 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: keep the eviction fence until the last handle is closed amdgpu_gem_object_close() detaches the user queue eviction fence from the BO before it checks bo_va->ref_count, so closing any handle of a BO removes the fence, even when the file still has another handle to the BO and the bo_va with its GPU mappings stays. The BO can then be evicted without suspending the user queues of the file, which keep accessing it through mappings that are only marked for update. Seen on navi31 with a SDMA user queue: a BO opened twice in the same file (GEM_FLINK + GEM_OPEN) loses its eviction fence when the second handle is closed (traced attach/detach of the fence): attach bo=ffff8c78a6c84c00 GEM_CLOSE handle=7 detach bo=ffff8c78a6c84c00 while handle 6 and the mapping are still in use. Only detach the fence when the last reference to the bo_va goes away, matching amdgpu_gem_object_open(), which attaches it only when the bo_va is created. With this the fence stays until the file is closed. (cherry picked from commit 8387982f03d4026b7dc11b0b5e3118298eee4d6a) The Linux kernel CVE team has assigned CVE-2026-99148 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit 31f7efcdca4d1caaa3a0babc33377e27e6f9b593 and fixed in 6.18.59 with commit dce8f7f03a47b1744dccf506268f9229b67fab47 Issue introduced in 6.16 with commit 31f7efcdca4d1caaa3a0babc33377e27e6f9b593 and fixed in 7.2.13 with commit 6467c4cc83b94850bfea614e9f98276edf9a7c3f Issue introduced in 6.16 with commit 31f7efcdca4d1caaa3a0babc33377e27e6f9b593 and fixed in 7.3 with commit 3c44cbcec5eb370713bbd2c315ed7c34d8ccec2b 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-99148 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/dce8f7f03a47b1744dccf506268f9229b67fab47 https://git.kernel.org/stable/c/6467c4cc83b94850bfea614e9f98276edf9a7c3f https://git.kernel.org/stable/c/3c44cbcec5eb370713bbd2c315ed7c34d8ccec2b