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 0C391332EBA for ; Wed, 24 Dec 2025 13:10:59 +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=1766581859; cv=none; b=qUynees6XqD1xpE8ltBVtc7c8+3SCeTnefwB31iWNoVmoMpHeW2CkmTD/bjQT0MhN8JSGaxva4OcwuKUCNcZtL/PyQ4wj+1I7sYP5t/b+DjYcuMWLMs/c3y62PlRJ+kWQDmF3oxxaJG23mRutqQAcQfj3IGOBicBey1fk+++Xp4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581859; c=relaxed/simple; bh=biysLOXFC09bmltvYMNo/VGHcjFbQlWo5gFEnHXUA5M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ViV1iRH/OYgZ68JCrXLZAl1990GdPH3wgRRRBIM9j647sSgvzS6fUixWmsNiEd6FAMI2uaadq+e6c/ZsWCzY1TENKI1jeRjh0bFOoCqhfrP6Ls6TdpflCC0ENggRkMsedzhFFIp0HouUeOWfYuuuibQq9zYnJasl2TL8jG3S+CA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jm+BF9c7; 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="jm+BF9c7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E0D6C116D0; Wed, 24 Dec 2025 13:10:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581858; bh=biysLOXFC09bmltvYMNo/VGHcjFbQlWo5gFEnHXUA5M=; h=From:To:Cc:Subject:Date:Reply-To:From; b=jm+BF9c7ZYfgPY6Vw6B+4q8kacqTlMTXR+/OwJLn414qTJ6g9LrQd5MVisstmwx8G bopzWwHaY/ysNyyqDbnnQHSYNLG7JaahVrtu4WXQC7jgKiGo0o+kdP4+l5bU46mNe5 pD1Un5XGXKZQq/JrCRzvrx9nIbqcC08rQvG+B7Hs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54129: octeontx2-af: Add validation for lmac type Date: Wed, 24 Dec 2025 14:07:26 +0100 Message-ID: <2025122419-CVE-2023-54129-8cb3@gregkh> X-Mailer: git-send-email 2.52.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=3041; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=hbdpBlVUlhgNzpnxKccKb9NeTOn4xGPkFc6PNHKFmOA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT707v9w7WPB/LZPNHF3Jpi1L3K0Ls4Mfaxl1f5n07 tkF01+HO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiDWsZ5pnsNFlh3P+/gqOR wUHgeXbuo21X0xjmqYeWNmZJXvuauM7mzFcDVgvvi7oZAA== 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 for lmac type Upon physical link change, firmware reports to the kernel about the change along with the details like speed, lmac_type_id, etc. Kernel derives lmac_type based on lmac_type_id received from firmware. In a few scenarios, firmware returns an invalid lmac_type_id, which is resulting in below kernel panic. This patch adds the missing validation of the lmac_type_id field. Internal error: Oops: 96000005 [#1] PREEMPT SMP [ 35.321595] Modules linked in: [ 35.328982] CPU: 0 PID: 31 Comm: kworker/0:1 Not tainted 5.4.210-g2e3169d8e1bc-dirty #17 [ 35.337014] Hardware name: Marvell CN103XX board (DT) [ 35.344297] Workqueue: events work_for_cpu_fn [ 35.352730] pstate: 40400089 (nZcv daIf +PAN -UAO) [ 35.360267] pc : strncpy+0x10/0x30 [ 35.366595] lr : cgx_link_change_handler+0x90/0x180 The Linux kernel CVE team has assigned CVE-2023-54129 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 6.1.32 with commit 83a7f27c5b94e43f29f8216a32790751139aa61e Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 6.2.16 with commit afd7660c766c4d317feae004e5cd829390bbc4b0 Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 6.3.3 with commit 5c0268b141ad612b6fca13d3a66cfda111716dbb Issue introduced in 4.20 with commit 61071a871ea6eb2125ece91c1a0dbb124a318c8a and fixed in 6.4 with commit cb5edce271764524b88b1a6866b3e626686d9a33 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-54129 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/83a7f27c5b94e43f29f8216a32790751139aa61e https://git.kernel.org/stable/c/afd7660c766c4d317feae004e5cd829390bbc4b0 https://git.kernel.org/stable/c/5c0268b141ad612b6fca13d3a66cfda111716dbb https://git.kernel.org/stable/c/cb5edce271764524b88b1a6866b3e626686d9a33