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 C2F814EC674 for ; Wed, 16 Sep 2026 10:33:16 +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=1789554810; cv=none; b=PJwiDQ9iUHTWSGP7QiKY+jV3HbToFElYRB8wWI+o5lHu/rwslU60L7Unj8Mf/bCKekXWWu4KO+3cVHKBFvOPdGpBrj3lZWMoYV2EBpY5E4AjdJMHIWUHH9Eb5Y034IarQtTyGDd49EfpMPZ77YqBo+hnRj0WwqqKNo292vQWU8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789554810; c=relaxed/simple; bh=l0hWzDBJYi7KqMFAzIIMRGkXutiSzJuhsgnYND+bwHU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=BPX3p4/w/tjqrkc6axAQRw/lDg2EpmGHTnRTgoyLExcyFGMUi3CmzS/DFjeaF5tOjt5IOn3ti804X9mX1nyQBmqyL/wheSRCM1S4MaMK1muptAK3zE++JQ1Yo/2G01pp+1CMeil8tv/FdjH9pLWVrSARyvpdIuyIlKUhqlPA/Rs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=MWSaAqHN; 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="MWSaAqHN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3DCC11F0089F; Wed, 16 Sep 2026 10:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789554792; bh=+k1IXzrzAVwIY4bQK5uA5Z8SbZ4WVnPJP0Q5vk0pMbc=; h=From:To:Cc:Subject:Date:Reply-To; b=MWSaAqHNnXsrbv/7yC0jOFX2RoMjPZFoEE1FQJ4Qz+fi7uC1sDi5dRTx6Y/0u9BTy IX4Z7Qp/yDgQVINvdSqFV+aGfedTmgVQhQFlk2r8A2z4UjhjV6QW+Yy4q+Z7ceautF fV9kpwiF/X9UgZo9u4odq3fE396I0U7hCLd0OErI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89807: drm/amdkfd: guard against NULL restore_mqd in CRIU queue restore Date: Wed, 16 Sep 2026 11:28:57 +0100 Message-ID: <2026091654-CVE-2026-89807-6819@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=3088; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LhBQlnksw1LOxrfM2w97OVwjLVImiR9RwiRMB3KSBvk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8tO+hM5iMOp1+qyR6rOvYkb99nXXi87se6wkf23CE sszmx1lO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiJUwMCzpqD2cdytd5/bvL QD+jwmeiZexNcYYFE+7+exZ9IktmiWjC1YAA7dffX+7+BAA= 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/amdkfd: guard against NULL restore_mqd in CRIU queue restore Both create_queue_cpsch() and create_queue_nocpsch() unconditionally call mqd_mgr->restore_mqd() when a CRIU restore is in progress (qd != NULL), with no NULL guard. On any system where restore_mqd is not implemented for the given queue type, a user holding CAP_CHECKPOINT_RESTORE can trigger a kernel NULL pointer dereference and panic the machine by issuing KFD_IOC_CRIU_OP_RESTORE with a crafted queue restore object. Note that checkpoint_mqd is likewise unimplemented on GFX12, so no legitimate CRIU image can reach this path — only a hand-crafted restore payload. Add a NULL guard for restore_mqd immediately after mqd_mgr is resolved, unwinding via the existing error labels and returning -EOPNOTSUPP if the callback is not implemented. This mirrors the existing checkpoint_mqd guard in checkpoint_mqd(). The Linux kernel CVE team has assigned CVE-2026-89807 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 48f0bdf4e38e42b8285622cfcfc7e6e490b1a719 and fixed in 6.12.110 with commit 19c73848493ab58e39649700da6de11710a36de1 Issue introduced in 6.11 with commit 48f0bdf4e38e42b8285622cfcfc7e6e490b1a719 and fixed in 6.18.51 with commit ebffa44e7a21ead59ac4b4264e8fc2cbb44c4a21 Issue introduced in 6.11 with commit 48f0bdf4e38e42b8285622cfcfc7e6e490b1a719 and fixed in 7.2.5 with commit c643c229babe2e8efc5eefe60e19d44868a643ff Issue introduced in 6.11 with commit 48f0bdf4e38e42b8285622cfcfc7e6e490b1a719 and fixed in 7.3-rc1 with commit 6aa530642f95d5c48aa336416f94a35e7949b647 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-89807 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/amdkfd/kfd_device_queue_manager.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/19c73848493ab58e39649700da6de11710a36de1 https://git.kernel.org/stable/c/ebffa44e7a21ead59ac4b4264e8fc2cbb44c4a21 https://git.kernel.org/stable/c/c643c229babe2e8efc5eefe60e19d44868a643ff https://git.kernel.org/stable/c/6aa530642f95d5c48aa336416f94a35e7949b647