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 9335F3CC33F for ; Mon, 10 Aug 2026 12:07:18 +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=1786363639; cv=none; b=mB/eorVAP2Y7n5IGJGVplj9G4/K55VOAaSvrd+2MImx0OBfXjTpAJsUmbhhmBeQ5PiGrmturg1xq0EYoDaU+TOOpuny7yUSP+VfkG97Km/GfLJcCYwkJa3xEPKG+jkya9tJFZf9d9m1c9LDBLhirmGuLOgITNDETQGBTo844mOM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786363639; c=relaxed/simple; bh=SqeyRcx119SZpsOJf5VcITAyJOr0cZmIYWJaUgv9nME=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ose7TkaXmLY2aHeDMbUiW8iQQoSJTArFXA42bGwj2XWNQGEeSgbtFsm2TR/1ZmqMYSc/sU+/C7xfwoRLj1SuujbljpgPovM6L3FppYibuSNLcHaYMIJBYeVbwniix2UMzcPLXt/Gayc+xP2rDnGf/AQ6M/BZ9c7dZkUWR6ZWjnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=gLTB4zaG; 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="gLTB4zaG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 14B9F1F000E9; Mon, 10 Aug 2026 12:07:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786363638; bh=W/LJt0M9iQm84z6Z/9sqh/S2w9iOs7RRP8llfDZx5j4=; h=From:To:Cc:Subject:Date:Reply-To; b=gLTB4zaGELdtExCJIteJih90I1NqaaQ4uhhuc2bRXXmVGPhNe7OmBY+mDGeAJiZ3Y srGvTTmYfStYkxTgzJZBEsq5Yu7C/krMkeFJatx2naOHrZ500uprnWYYYyewRk7xSZ H2/vcqu0S6X7idbZerqQMkM7hb8kNJqvZMAI0VEk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-68245: drm/amdgpu: fix lifetime issue of amdgpu_vm_get_task_info_pasid() Date: Mon, 10 Aug 2026 13:59:22 +0200 Message-ID: <2026081019-CVE-2026-68245-15a4@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=2604; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lgE3WXofEYIufG1wxpwJ2vJhRfr15Ex+Atgt9NcWqn4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmVe+a/2TN1nuL1xnxPp0Rl2awjDok3Xp01CgkvDTWa8 3ZV45IFHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR0gsM8/NunXyY2S1Zf263 AxuTcWzWoVmmlxnmh5s5v7h9pFQl3dlUyShPkV3xSm0wAA== 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 lifetime issue of amdgpu_vm_get_task_info_pasid() The vm pointer returned from amdgpu_vm_get_vm_from_pasid() is only valid while the lock is still being held. Once xa_unlock_irqrestore is called and returned, the pointer is no longer under lock and is subject to modification. Since, the caller still dereferences vm->task_info in amdgpu_vm_get_task_info_vm() after the lock is removed, this causes a use after unlock problem. Remove the lifetime issue present in amdgpu_vm_get_task_info_pasid() through removing the amdgpu_vm_get_vm_from_pasid() function from amdgpu_vm.c and making the relevant code inline to hold the lock while it is still in use. (cherry picked from commit 9d01579f3f868b333acc901815972685989092c7) The Linux kernel CVE team has assigned CVE-2026-68245 to this issue. Affected and fixed versions =========================== Fixed in 6.12.101 with commit fe16a7e5336ae888751984e30c451fbf7cfa5df7 Fixed in 6.18.42 with commit 1173190412fb9d12e7efce76734118d9712ff970 Fixed in 7.1.6 with commit 5d5fb9124a2bba96a7807086d8fe0f7ce810d546 Fixed in 7.2-rc3 with commit 04cc4aa3617b0ed67e859f91f09de5d896a46f3a 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-68245 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_vm.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/fe16a7e5336ae888751984e30c451fbf7cfa5df7 https://git.kernel.org/stable/c/1173190412fb9d12e7efce76734118d9712ff970 https://git.kernel.org/stable/c/5d5fb9124a2bba96a7807086d8fe0f7ce810d546 https://git.kernel.org/stable/c/04cc4aa3617b0ed67e859f91f09de5d896a46f3a