Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 18F4830F932 for ; Tue, 13 Jan 2026 15:31:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318309; cv=none; b=hQw5/Qu5p8uGEgSoyDeSf+iaXp9/QCI9ecTc8qXgWr/ctx0fgDSi86kPCMCuSyLzISQuPtutFY6ezArCZ0WWEFPwCrRayg6IAWoWb1D81l8JkeE/X/DyaFoqUss0+GZ/yaZKeUv1XBVyW8QIDtJDJLb6PU92SfK5x/bSqdabPY8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318309; c=relaxed/simple; bh=poORehxsGsyHtCV7P4ok/XZzkE3IOofTGpOzJl+AQwk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CvaIn7o4sRr9P+hXziEboyomfIHiocpIzCuQnBweYg3WV+iUU9Efx5RWgZSO2iKX7OVJXjVHfUYhi9cqEjrWJkp6hK6xEukz10h1qnOilfqew7wPEev1gFFedt5MEDC4BU/0fiHAVUSre8fChqnk2PH3xpxicaJ9mWfBV6mBRLU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZGHYIRIR; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ZGHYIRIR" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D5A6C19422; Tue, 13 Jan 2026 15:31:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318308; bh=poORehxsGsyHtCV7P4ok/XZzkE3IOofTGpOzJl+AQwk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ZGHYIRIRSOqR7+/Diwl/TJd+m+fWMzi2B+AnXw/koI7+dy0PHL4pM+yyvmlNTJrPg fQ6MYpMxkTbUCZAPcFTUB2ilySyYeSKvNwVRNqDPwKy+VR9z19967IdnRB5RHnMXGA CDNVVns339Lm9zmMewRZ3h/BsJDFNHPiHykobtIc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68793: drm/amdgpu: fix a job->pasid access race in gpu recovery Date: Tue, 13 Jan 2026 16:29:19 +0100 Message-ID: <2026011305-CVE-2025-68793-bb5f@gregkh> X-Mailer: git-send-email 2.52.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=4367; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8HvLd3O9t8jPn9JZr/6JRQSClcPyE30qB86/oznlxq4=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKQfXicpX3maWdP99YYHP1dfly02/RppvORq6jE9E6 WyJq6d9RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkwwyGBXuXlEhpPTbbH9nR etrnbWUlo0vpD4YF699oLPusYSfT7jnb2d+ye51oxyJDAA== 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 a job->pasid access race in gpu recovery Avoid a possible UAF in GPU recovery due to a race between the sched timeout callback and the tdr work queue. The gpu recovery function calls drm_sched_stop() and later drm_sched_start(). drm_sched_start() restarts the tdr queue which will eventually free the job. If the tdr queue frees the job before time out callback completes, the job will be freed and we'll get a UAF when accessing the pasid. Cache it early to avoid the UAF. Example KASAN trace: [ 493.058141] BUG: KASAN: slab-use-after-free in amdgpu_device_gpu_recover+0x968/0x990 [amdgpu] [ 493.067530] Read of size 4 at addr ffff88b0ce3f794c by task kworker/u128:1/323 [ 493.074892] [ 493.076485] CPU: 9 UID: 0 PID: 323 Comm: kworker/u128:1 Tainted: G E 6.16.0-1289896.2.zuul.bf4f11df81c1410bbe901c4373305a31 #1 PREEMPT(voluntary) [ 493.076493] Tainted: [E]=UNSIGNED_MODULE [ 493.076495] Hardware name: TYAN B8021G88V2HR-2T/S8021GM2NR-2T, BIOS V1.03.B10 04/01/2019 [ 493.076500] Workqueue: amdgpu-reset-dev drm_sched_job_timedout [gpu_sched] [ 493.076512] Call Trace: [ 493.076515] [ 493.076518] dump_stack_lvl+0x64/0x80 [ 493.076529] print_report+0xce/0x630 [ 493.076536] ? _raw_spin_lock_irqsave+0x86/0xd0 [ 493.076541] ? __pfx__raw_spin_lock_irqsave+0x10/0x10 [ 493.076545] ? amdgpu_device_gpu_recover+0x968/0x990 [amdgpu] [ 493.077253] kasan_report+0xb8/0xf0 [ 493.077258] ? amdgpu_device_gpu_recover+0x968/0x990 [amdgpu] [ 493.077965] amdgpu_device_gpu_recover+0x968/0x990 [amdgpu] [ 493.078672] ? __pfx_amdgpu_device_gpu_recover+0x10/0x10 [amdgpu] [ 493.079378] ? amdgpu_coredump+0x1fd/0x4c0 [amdgpu] [ 493.080111] amdgpu_job_timedout+0x642/0x1400 [amdgpu] [ 493.080903] ? pick_task_fair+0x24e/0x330 [ 493.080910] ? __pfx_amdgpu_job_timedout+0x10/0x10 [amdgpu] [ 493.081702] ? _raw_spin_lock+0x75/0xc0 [ 493.081708] ? __pfx__raw_spin_lock+0x10/0x10 [ 493.081712] drm_sched_job_timedout+0x1b0/0x4b0 [gpu_sched] [ 493.081721] ? __pfx__raw_spin_lock_irq+0x10/0x10 [ 493.081725] process_one_work+0x679/0xff0 [ 493.081732] worker_thread+0x6ce/0xfd0 [ 493.081736] ? __pfx_worker_thread+0x10/0x10 [ 493.081739] kthread+0x376/0x730 [ 493.081744] ? __pfx_kthread+0x10/0x10 [ 493.081748] ? __pfx__raw_spin_lock_irq+0x10/0x10 [ 493.081751] ? __pfx_kthread+0x10/0x10 [ 493.081755] ret_from_fork+0x247/0x330 [ 493.081761] ? __pfx_kthread+0x10/0x10 [ 493.081764] ret_from_fork_asm+0x1a/0x30 [ 493.081771] (cherry picked from commit 20880a3fd5dd7bca1a079534cf6596bda92e107d) The Linux kernel CVE team has assigned CVE-2025-68793 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit a72002cb181f350734108228b24c5d10d358f95a and fixed in 6.18.3 with commit dac58c012c47cadf337a35eb05d44498c43e5cd0 Issue introduced in 6.17 with commit a72002cb181f350734108228b24c5d10d358f95a and fixed in 6.19-rc2 with commit 77f73253015cbc7893fca1821ac3eae9eb4bc943 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-2025-68793 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_device.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/dac58c012c47cadf337a35eb05d44498c43e5cd0 https://git.kernel.org/stable/c/77f73253015cbc7893fca1821ac3eae9eb4bc943