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 E07384E2375 for ; Wed, 16 Sep 2026 10:33:39 +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=1789554834; cv=none; b=uVXV4YH4HZkKyLQrZBQOlxf2YmhDqu/2WeOG/UAGBnV9Z59MTONglLJJir4QcC4QCrRMG7NIgIpm2NkuG/JMO2UuLvFHhqtnN8kaJ2LCSNzXVQYLpE0/k+HO43hmcV3IO0cOkgeCtC34HEau5ODB2fuB0bROTRdOSkyr5aUAxdE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554834; c=relaxed/simple; bh=Zu7yxgoUIdCmctRrWoVgYVgVqJDp2ePqVl3GliWWWzk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=FH02gCVBTv6P+1DJBHKopXyG9CY/roW4NxnuPoty7854ca9AIyimOXX5VfmoQTfU6UskGEJQ6LPYESx8GlSScsm6lp9ka6SANiBb6+3ZzCe1/vyBndZn3dfYG8Yo00J5PKyoJ7kUCc3TJMfqcThlQv0fSO3Ijo+Rdc++QcPS2Os= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hEnE3mlz; 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="hEnE3mlz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 328291F0089D; Wed, 16 Sep 2026 10:33:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554819; bh=YYbQWKDV7mSFb14R1honJqlxjHNrFcz7oxxP3ilPiNU=; h=From:To:Cc:Subject:Date:Reply-To; b=hEnE3mlzBhT1XQKl6DN5jFr5eKYB/OUlP2q9IkFrnFCzkUSBUJtAq6yMZoDmKOTif u1Hq9x6xGh+GJvLHLCenWijmQZ3/4Gzz829ZescGogxJw73d/P4zmtDL8f8F1f8pTs 8U4RfRyAu8ptRIObHQVxmwew96yw7juY88Coctxo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89815: drm/ttm: Drop tt->restore after successful restore Date: Wed, 16 Sep 2026 11:29:05 +0100 Message-ID: <2026091658-CVE-2026-89815-0ac2@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=4666; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BVTy7I/AdCThia9SNaYUoL07v9dVM9/CHSZFlaoCAbU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8rPki09bek56+zF35iFL64eXL/a4xaV9rC+uEv20Q uYqU3daRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE8yPD/CQ/BYtldxZ1P7nd tq962UyW1NS3qxgW7OL6wuewJ52jUFopdGVH++ztbXLMAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/ttm: Drop tt->restore after successful restore ttm_pool_restore_and_alloc() can successfully complete the restore process via ttm_pool_restore_commit(), but tt->restore is not dropped afterward. As a result, subsequent backup/restore flows observe what appears to be a completed restore, while in reality shmem handles are still installed in tt->pages, leading to the stack trace below. Fix this by freeing and dropping tt->restore in ttm_pool_restore_and_alloc() upon successful completion of the restore. 20545 [  309.784531] RIP: 0010:sg_alloc_append_table_from_pages+0x38c/0x490 20547 [  309.809570] RSP: 0018:ffffc9000623b838 EFLAGS: 00010206 20548 [  309.814827] RAX: 0000000000001000 RBX: ffff88816e42a160 RCX: 0000000000000000 20549 [  309.821986] RDX: 0000000000002000 RSI: 0000000000000003 RDI: 0000000000001000 20550 [  309.829147] RBP: ffff88816e42a168 R08: 0000000000000002 R09: 000000007ffff000 20551 [  309.836310] R10: ffffc9000623b928 R11: 0000000000000000 R12: 000000007ffff000 20552 [  309.843471] R13: ffff88815ba5a100 R14: 0000000000000000 R15: 0000000000000001 20553 [  309.850634] FS:  00007f9ff305e700(0000) GS:ffff888276c94000(0000) knlGS:0000000000000000 20554 [  309.858749] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 20555 [  309.864519] CR2: 00007f9fca701000 CR3: 00000001565e2005 CR4: 0000000008f70ef0 20556 [  309.871678] PKRU: 55555558 20557 [  309.874403] Call Trace: 20558 [  309.876866]  20559 [  309.878988]  sg_alloc_table_from_pages_segment+0x60/0x100 20560 [  309.884415]  ? ttm_resource_manager_usage+0x36/0x60 [ttm] 20561 [  309.889845]  ? xe_tt_map_sg+0x7d/0xd0 [xe] 20562 [  309.894045]  xe_tt_map_sg+0x7d/0xd0 [xe] 20563 [  309.898037]  xe_bo_move+0x927/0xaa0 [xe] 20564 [  309.902029]  ttm_bo_handle_move_mem+0xba/0x170 [ttm] 20565 [  309.907022]  ttm_bo_validate+0xbe/0x190 [ttm] 20566 [  309.911405]  xe_bo_validate+0x9a/0x120 [xe] 20567 [  309.915663]  xe_gpuvm_validate+0xd9/0x140 [xe] 20568 [  309.920206]  drm_gpuvm_validate+0x2f0/0x5b0 [drm_gpuvm] 20569 [  309.925459]  ? drm_exec_lock_obj+0x63/0x210 [drm_exec] 20570 [  309.930627]  xe_vm_validate_rebind+0x46/0xb0 [xe] 20571 [  309.935428]  xe_exec_fn+0x20/0x40 [xe] 20572 [  309.939249]  drm_gpuvm_exec_lock+0x78/0xc0 [drm_gpuvm] 20573 [  309.944410]  xe_validation_exec_lock+0x5a/0xa0 [xe] 20574 [  309.949385]  xe_exec_ioctl+0x806/0xc30 [xe] 20575 [  309.953639]  ? ttwu_queue_wakelist+0xd9/0xf0 20576 [  309.957935]  ? __pfx_xe_exec_fn+0x10/0x10 [xe] 20577 [  309.962449]  ? __wake_up_common+0x73/0xa0 20578 [  309.966482]  ? __pfx_xe_exec_ioctl+0x10/0x10 [xe] 20579 [  309.971263]  drm_ioctl_kernel+0xa3/0x100 20580 [  309.975209]  drm_ioctl+0x213/0x440 20581 [  309.978637]  ? __pfx_xe_exec_ioctl+0x10/0x10 [xe] 20582 [  309.983415]  xe_drm_ioctl+0x67/0xd0 [xe] 20583 [  309.987408]  __x64_sys_ioctl+0x7f/0xd0 The Linux kernel CVE team has assigned CVE-2026-89815 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit b63d715b8090aed48bdef5930625946fa4c0d324 and fixed in 7.2.5 with commit a46ab76b6cf5478e2ac7b942a377c7a1827b436a Issue introduced in 6.15 with commit b63d715b8090aed48bdef5930625946fa4c0d324 and fixed in 7.3-rc1 with commit 941ac10529b3be5965a88d432a161ab459672ba8 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-89815 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/ttm/ttm_pool.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/a46ab76b6cf5478e2ac7b942a377c7a1827b436a https://git.kernel.org/stable/c/941ac10529b3be5965a88d432a161ab459672ba8