From mboxrd@z Thu Jan 1 00:00:00 1970 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 E799F58B6AD for ; Fri, 11 Sep 2026 19:59:26 +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=1789156773; cv=none; b=QqblZLvYGHmjNeldPX4to6u8UoJtVUemL7ChgjxeQ41ICxjnvPyXxFNbiFlZgj2xHRnU77VQdFGT2WbBr6PPcve9Y5X0pOp9NHYKJJ94QBithKgoOEguxORbXPOHwq+h6IqSUmnwjVaDlvlrO3YTDE4xpRTdssvmV5RwdCb+m4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156773; c=relaxed/simple; bh=gT68rkCAYN9ZycctKCG/mizTGyu8n8MjSBSoU51kLak=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fZ0Tn+7WuUWDfE14wxa2CeyEnsnCI60KSNmiutfKVkQRUAo6EZiPe2wxjn1q/ldWa3dcZrhVnFI3KI+OlCwScKrqPltabe1+LoNHXNKRnzEtJcAEYEbx2MiA/R6zdft6cBwVJyxlTRK6DlPDkIEnMAnx2ryXvWUxzq8d3fpPyAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pa2fqMFG; 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="pa2fqMFG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 457FF1F000FF; Fri, 11 Sep 2026 19:59:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156765; bh=+ZhPSvPXHYqo+qxbBS53BXNMKGOXhvjxk6u1FDmNIvY=; h=From:To:Cc:Subject:Date:Reply-To; b=pa2fqMFGaF88A1iLwml3qlk1TTaGR/ZfIqDo3LIOdWzGrw7354O+o4BdoHhBivA7K ac8Yf25fsfWBPlIty34zi3O3w7neanP3bAMeEj1kckzod4oOp1Uu27mSyrbTKXmqiN F1GIz07xHSXuYGcNQpF6M81pszWAFUJFvcaq0xVQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-89592: accel/rocket: fix NULL dereference and integer overflow in rocket_job_push() Date: Fri, 11 Sep 2026 21:44:41 +0200 Message-ID: <2026091130-CVE-2026-89592-d816@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=3190; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bB3DBcpP7BVf+7zYFrv4Vpyu1+tZJUdGJEj/4ILObFY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIrPVOFZ//lI80yrgkTb/6cteYV/c+NTnPAn5PoNxO ZfP9Nj/HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR3FKGBSeE9h8LehPVte/x IssJcZHdscqnljPMzzhcuTO8rDA8XKNedN4JIRbheX8fAAA= 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: fix NULL dereference and integer overflow in rocket_job_push() rocket_job_push() allocates a temporary array to hold all input and output GEM object pointers: bos = kvmalloc_array(job->in_bo_count + job->out_bo_count, sizeof(void *), GFP_KERNEL); memcpy(bos, job->in_bos, job->in_bo_count * sizeof(void *)); memcpy(&bos[job->in_bo_count], job->out_bos, ...); Two bugs exist: 1. Missing NULL check: if kvmalloc_array() fails, bos is NULL and the subsequent memcpy() dereferences it, causing a kernel NULL pointer dereference. 2. Integer overflow: in_bo_count and out_bo_count are both u32, set directly from userspace-supplied in_bo_handle_count and out_bo_handle_count with no prior validation. Their sum is computed in u32 arithmetic and can wrap to a smaller value, causing the allocation count passed to kvmalloc_array() to be smaller than intended. Subsequent uses still operate on the original counts when copying and locking objects, which may lead to out-of-bounds accesses on the temporary array. Fix by using check_add_overflow() to detect count overflow before the allocation, and adding a NULL check on the allocation result. The Linux kernel CVE team has assigned CVE-2026-89592 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 0810d5ad88a18f1e6d549853a388ad0316f74e36 and fixed in 6.18.50 with commit c1a5bf1b6e1d5944183dcef3844a18c17219af4d Issue introduced in 6.18 with commit 0810d5ad88a18f1e6d549853a388ad0316f74e36 and fixed in 7.2.4 with commit dfff90a6eb2258e3b867994ae17af4a7ba3504d2 Issue introduced in 6.18 with commit 0810d5ad88a18f1e6d549853a388ad0316f74e36 and fixed in 7.3-rc1 with commit a85402bff218f2b8f0d806e46c16c2f3d49cdda7 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-89592 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/c1a5bf1b6e1d5944183dcef3844a18c17219af4d https://git.kernel.org/stable/c/dfff90a6eb2258e3b867994ae17af4a7ba3504d2 https://git.kernel.org/stable/c/a85402bff218f2b8f0d806e46c16c2f3d49cdda7