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=1793187648; b=oc9BdYf4O8tG3CHdACxcLyItHN3ZUaoHttu79MSRGYCI42cU0LWphHY8RjJZdjIuDBnW KXoPHzL94afxxxcMrwvcqQrbM1ucpZS4EQwaPvkHHWkpDBreViEbPC7PgsxGIkC9gtP2G Q1pdFbosToGLNLEor0iY0+dAFPHtR0VkKJxTqp7PH2CY+BGL7VOByYpRvSmpwwl3Mu0yL 539s88FjJRdtFguiDmhXQgBY2O8ltBdSQKpyxEFqQQbESV1Okq19J3C9X4wTw6A8Ut4o/ KVcF5++7N2VCYS8ClxWRPV6FTkDTHKfrTqy3KuB7wC6BgVDvSES5YNuc/mNYvKTJLZw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793187648; 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=dHZ05XlqPfp2QmwJiKkRnG2UJAFaLWLVH490tIgR+j4=; b=WdWirqIZUtkA7lu39ksEHAIiGEkXVaB8rhLml6w+i+O8CmyAEHxQf/sNu/DLo5mGrVWD +fWhpyzd2rJL58HZzRhjB8lG+6UPmcjBk3od8pB+H6x0eRl4BE9VtDCZyxk69TkSj2mHl pNDWKp5LhIi7y1D/QjSD9XuurTyoquS6L5mur89pdHojGRnD2a9SVuXtDBbTHo8U8vg+G jg0yVSMHh1hbc68BF3n1PFy9OrJULVhDGQqltJ5BlUvOjHZrZ+xHr8uHEH47yDGP61d/1 Suy16CkU5cBdp7lmloidNSkaIz/stCFNepmWCOmPAPGABLmrkRhG/9YLuL/niHw/+WQ== 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=TzlD2i6C; 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 461AE606A31A for ; Wed, 28 Oct 2026 11:40:48 +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=TzlD2i6C Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A19C1F01825; Wed, 28 Oct 2026 11:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1793187648; bh=dHZ05XlqPfp2QmwJiKkRnG2UJAFaLWLVH490tIgR+j4=; h=From:To:Cc:Subject:Date:Reply-To; b=TzlD2i6C4KG2fMW5liAyUQ/047gORqoR+zazoy4Uw8ruF576XbG+btZH5/SzuYKjw 5h6ieHUs5yPJxTuRdMCACrJDxNnFdscxP3r35sqAVnyiNWpuBwoHqIwynkMqK0ipiy xYmGkXU/94guaUESr9bPty3KbdzwCU/q3P7a3qfw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99183: accel/rocket: search every core slot when looking up a scheduler Date: Wed, 28 Oct 2026 11:36:10 +0100 Message-ID: <2026102810-CVE-2026-99183-f248@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=3787; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x2FbpmyRFsjaTcm6VYn2vwpjBcLYZrzr2HMOSntv7l4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkPz98r/BvLdfyh2uWHoVPiVe8Y/XdPuvqt7fiWtUzT1 33KSxb80BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATmf2QYUH7EokZxtv0nDIz DkZtk4iK2Xab7Q3DPC3h+Vs02MtmCOic+7KuO7HvtoRzDQA= 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: accel/rocket: search every core slot when looking up a scheduler sched_to_core() walks rdev->cores[] up to rdev->num_cores, and rocket_remove() decrements num_cores for every core it removes. Unbind a core that is not the last one and the cores behind it fall outside the search, so sched_to_core() returns NULL for a core that is still bound and still running jobs. Neither caller checks the result: rocket_job_run(): rocket_fence_create(core), core->dev rocket_job_timedout(): dev_err(core->dev, "NPU job timed out") Unbinding the middle core of the three on an RK3588 while three clients are submitting to all of them faults twice, once from the surviving core's job queue and once from its reset work: KASAN: null-ptr-deref in range [0x0000000000000220-0x0000000000000227] Workqueue: fdad0000.npu drm_sched_run_job_work [gpu_sched] pc : rocket_job_run+0x234/0x838 [rocket] Call trace: rocket_job_run+0x234/0x838 [rocket] drm_sched_run_job_work+0x2cc/0xad8 [gpu_sched] process_one_work+0x640/0x14f0 KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Workqueue: rocket-reset-2 drm_sched_job_timedout [gpu_sched] pc : rocket_job_timedout+0xf0/0x1e0 [rocket] Call trace: rocket_job_timedout+0xf0/0x1e0 [rocket] drm_sched_job_timedout+0x188/0x6a0 [gpu_sched] Both are the third core: the workqueue names are its device and its core->index, and it was left at slot 2 while num_cores had dropped to 2. Search all the slots that were allocated, the way find_core_for_dev() now does. A core that is still bound is then found, and the two callers get the pointer they already assume they have. This does not make unbinding one core out of several safe. An open client keeps an entity pointing at the scheduler of the core that went away: drm_sched reports it as not ready for every job that lands on it, and the client waits in dma_fence_default_wait for a fence that will never signal. Stopping the NULL dereference is what belongs in a fix; the rest wants more thought. The Linux kernel CVE team has assigned CVE-2026-99183 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 0810d5ad88a18f1e6d549853a388ad0316f74e36 and fixed in 7.2.13 with commit c137756469d5bcc79e97beb406ae4d14b9585463 Issue introduced in 6.18 with commit 0810d5ad88a18f1e6d549853a388ad0316f74e36 and fixed in 7.3 with commit 89c2c777df17eb0201c8e22afabbf3691f2a28fe 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-99183 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/accel/rocket/rocket_job.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/c137756469d5bcc79e97beb406ae4d14b9585463 https://git.kernel.org/stable/c/89c2c777df17eb0201c8e22afabbf3691f2a28fe