From mboxrd@z Thu Jan 1 00:00:00 1970 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 533F313A40B for ; Wed, 3 Apr 2024 14:57:53 +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=1712156273; cv=none; b=atkL0OjiiGDqOZUYHa/vUFzV8ozf6ndkMLoOFYcMXcOZwrhvO53cm32DKnI2MjZcT+UEQ9HAFoSZXr9XU0tIqFCBK6qscyTkgXJbUFidVptWxZeyC7rBTmI7xaNrv/GyiiyjsZR/8Iu/d1HvnKQBOIuKQh4emnpnitysa1vtZY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712156273; c=relaxed/simple; bh=QmwpxNgMk1K5SJFJMSMEq+sqLdi+V2UgcL/QzVZdgAQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NiBUMeGtr9mlm41c7TzyqqKnsZJ55nXMvOn/AI/LLZTOcvEj6vonjzkaJhtp2/ncqXebI4O59mV8OxB6xPiQkwDSfwYe5vIEwKa198zmgqA+dG59hgGGF3dO21y7LJX8ZalesCNNWJdU9oTa/UQU98VwZVBe5tQKlRTvYLuqPsc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ssvRJrwQ; 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="ssvRJrwQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B5138C433F1; Wed, 3 Apr 2024 14:57:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712156273; bh=QmwpxNgMk1K5SJFJMSMEq+sqLdi+V2UgcL/QzVZdgAQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ssvRJrwQJ7bQv6H1xDny1fddZYu3LlG563ymkILz4GqLHVw92zpAouQhaS388zH8C 7H2euXXKQLR1KyOT8dF0rSinWUBAnwiy8HMGc7Am2dAvIE1mTZLbBeKdd+qTf4BQbx BvhyaGXnqwjtwnfIc7NxQ5syqSgGbUBgXbQ9J+R4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26723: lan966x: Fix crash when adding interface under a lag Date: Wed, 3 Apr 2024 16:56:14 +0200 Message-ID: <2024040345-CVE-2024-26723-49ee@gregkh> X-Mailer: git-send-email 2.44.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=2705; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QmwpxNgMk1K5SJFJMSMEq+sqLdi+V2UgcL/QzVZdgAQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8uR+XFOYkTRf06+stjOk3yT9ce4Pni7fpoi3BU0ODa j5wG57oiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIl8Osgwz+RJhMavqZN3z+Vf lKU2VfFKS1HDfIb5BWoT32vvtBSbduLV/Ezfe4ofdtzXBgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: lan966x: Fix crash when adding interface under a lag There is a crash when adding one of the lan966x interfaces under a lag interface. The issue can be reproduced like this: ip link add name bond0 type bond miimon 100 mode balance-xor ip link set dev eth0 master bond0 The reason is because when adding a interface under the lag it would go through all the ports and try to figure out which other ports are under that lag interface. And the issue is that lan966x can have ports that are NULL pointer as they are not probed. So then iterating over these ports it would just crash as they are NULL pointers. The fix consists in actually checking for NULL pointers before accessing something from the ports. Like we do in other places. The Linux kernel CVE team has assigned CVE-2024-26723 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit cabc9d49333d and fixed in 6.1.79 with commit b9357489c46c Issue introduced in 6.1 with commit cabc9d49333d and fixed in 6.6.18 with commit 48fae67d8374 Issue introduced in 6.1 with commit cabc9d49333d and fixed in 6.7.6 with commit 2a492f01228b Issue introduced in 6.1 with commit cabc9d49333d and fixed in 6.8 with commit 15faa1f67ab4 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-2024-26723 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/microchip/lan966x/lan966x_lag.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/b9357489c46c7a43999964628db8b47d3a1f8672 https://git.kernel.org/stable/c/48fae67d837488c87379f0c9f27df7391718477c https://git.kernel.org/stable/c/2a492f01228b7d091dfe38974ef40dccf8f9f2f1 https://git.kernel.org/stable/c/15faa1f67ab405d47789d4702f587ec7df7ef03e