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 9C1CD2E54AA for ; Tue, 7 Oct 2025 15:22:18 +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=1759850538; cv=none; b=esCW1caGheg2XBvYsZXV91ziy4xpUFBtsp3Y0VGzLuyOnjmDOGpSZ39esByxcn/uhnDNpuFnhsSWe9D2EwYBRVrLJLza7xmjXma0apzbeukshRK9h8UMCTQ+NdtVFxzrysl2LkCIEi+aascAjakvylSMlDxdQFf047rcvJl5cS0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850538; c=relaxed/simple; bh=me+ze2nXeNRCJyDyuDoPY4cyT9189tKEo5bWC+wGj3U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SuAgnVay4pJ05MlFNzPH6VlOzoVRF+F+07Ulhf7yK+mtQRngN3aE0Km7JVRar5HexsaQM2VSUK8PxYLTi9JS5b277xBz0X95u8D1WyyTtt/XCBKZYDR2rVUEktYNHlQhLnLL3Whkn/aJqjjBKiHXCXpREXOO25ZyF7vZppEf/9o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hXY8AaMi; 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="hXY8AaMi" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18B52C4CEF1; Tue, 7 Oct 2025 15:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850538; bh=me+ze2nXeNRCJyDyuDoPY4cyT9189tKEo5bWC+wGj3U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hXY8AaMiyvZw1Ygl+5TF0EuO2HsufYHkux0/X9Qvar4RtY+FKxl4mVjJwyb1FkrGT iQL8FM423hH5W8adx1JhBjjxRggWThq81NhBTSiz869OQ5fhPjgG6Bo92d3104t+yB 2XNFyHGYy/l72Jw9j4PuCKK+UxyQzrhIoQWjHMkU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53654: octeontx2-af: Add validation before accessing cgx and lmac Date: Tue, 7 Oct 2025 17:19:59 +0200 Message-ID: <2025100720-CVE-2023-53654-dcad@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2906; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CziJmJ3zq4NmycKpdbycLa0hbdsYVS/iyJh6LjzzvvI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9SvO1L748yR6Ym/grd7H+rEOX6Z05QTNuavzptD/6 aJH56NUO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAinTUM830e/FPmY3S9pDlT 2/yH7Zyd9u+Y/zDMj5Ze0/aLz3LKOanL7WXXnogeiamfCAA= 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: octeontx2-af: Add validation before accessing cgx and lmac with the addition of new MAC blocks like CN10K RPM and CN10KB RPM_USX, LMACs are noncontiguous and CGX blocks are also noncontiguous. But during RVU driver initialization, the driver is assuming they are contiguous and trying to access cgx or lmac with their id which is resulting in kernel panic. This patch fixes the issue by adding proper checks. [ 23.219150] pc : cgx_lmac_read+0x38/0x70 [ 23.219154] lr : rvu_program_channels+0x3f0/0x498 [ 23.223852] sp : ffff000100d6fc80 [ 23.227158] x29: ffff000100d6fc80 x28: ffff00010009f880 x27: 000000000000005a [ 23.234288] x26: ffff000102586768 x25: 0000000000002500 x24: fffffffffff0f000 The Linux kernel CVE team has assigned CVE-2023-53654 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 91c6945ea1f9059fea886630d0fd8070740e2aaf and fixed in 5.15.121 with commit e425e2ba933618ee5ec8e4f3eb341efeb6c9ddef Issue introduced in 5.12 with commit 91c6945ea1f9059fea886630d0fd8070740e2aaf and fixed in 6.1.39 with commit a5485a943193e55c79150382e6461e8ea759e96e Issue introduced in 5.12 with commit 91c6945ea1f9059fea886630d0fd8070740e2aaf and fixed in 6.4.4 with commit b04872e15f3df62cb2fd530950f769626e1ef489 Issue introduced in 5.12 with commit 91c6945ea1f9059fea886630d0fd8070740e2aaf and fixed in 6.5 with commit 79ebb53772c95d3a6ae51b3c65f9985fdd430df6 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-2023-53654 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/net/ethernet/marvell/octeontx2/af/cgx.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/e425e2ba933618ee5ec8e4f3eb341efeb6c9ddef https://git.kernel.org/stable/c/a5485a943193e55c79150382e6461e8ea759e96e https://git.kernel.org/stable/c/b04872e15f3df62cb2fd530950f769626e1ef489 https://git.kernel.org/stable/c/79ebb53772c95d3a6ae51b3c65f9985fdd430df6