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 5D10921ADAE for ; Wed, 26 Feb 2025 02:24:50 +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=1740536690; cv=none; b=hvlZUzSyCK5ThOY301ZeetK8cprHV1boSZRDhm4CHSjmi50wCkcPsyC9pvL6dJNSEH6NeJ7KwVjn7+yijV8+/96gKmaMosUS26xnxvzi4bP+eVY0w33BGOwwaVmI/UWx9yT08fs8GFPCSGks+J/+rk1ol0rCA6fmnYSJ42UorUU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536690; c=relaxed/simple; bh=GBUV8nZbZKhgRiVA8PzeVV0PFSWtr0303ZfSJMOKQ4Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A/tlSQzSLYy+d3PnGkrOg6XkUxHtbnO6dO+vUjSZVXrPyA7AOrcebMob2gEaFD3angjCfPhCOu3hyQiHjKTY9uq8tb/as3Rt+ZlzR82dNJl2eRj3OyDGPJQTO/35QbAF/yQIuvQlkI+XkZwxD5wpXhOkFpgrvqnWYFbSQbnBtw8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hLE89Y/8; 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="hLE89Y/8" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34D7AC4CEDD; Wed, 26 Feb 2025 02:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536690; bh=GBUV8nZbZKhgRiVA8PzeVV0PFSWtr0303ZfSJMOKQ4Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hLE89Y/8nkab3B4RKSiWgy5ZB1In8g4LoW//XkI2LO4WKh7mw5LGYET5qMod45zio r7Mz7UsiopqdsUjlpFx2BTxqrt8JPLQPOh75QsDtd4ZZeUYNHkk4x1V6jpZ0lgkVAY xDeyhARgveRq/+P+cdQXiGtvseqCvzR/okovCFe4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49654: net: dsa: qca8k: reset cpu port on MTU change Date: Wed, 26 Feb 2025 03:23:37 +0100 Message-ID: <2025022621-CVE-2022-49654-4ed4@gregkh> X-Mailer: git-send-email 2.48.1 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=2546; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=GBUV8nZbZKhgRiVA8PzeVV0PFSWtr0303ZfSJMOKQ4Q=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7qu5e2Koh2n+h5olkjZsidxqTbZaH7bOnBlf7Io7KH OoI+pPdEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNp+sewoGNd34/yP0mLH3PV n/72p5txSdUufYb5Tp9OZLHLxs0JrJvaxCC049idyHI9AA== 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: net: dsa: qca8k: reset cpu port on MTU change It was discovered that the Documentation lacks of a fundamental detail on how to correctly change the MAX_FRAME_SIZE of the switch. In fact if the MAX_FRAME_SIZE is changed while the cpu port is on, the switch panics and cease to send any packet. This cause the mgmt ethernet system to not receive any packet (the slow fallback still works) and makes the device not reachable. To recover from this a switch reset is required. To correctly handle this, turn off the cpu ports before changing the MAX_FRAME_SIZE and turn on again after the value is applied. The Linux kernel CVE team has assigned CVE-2022-49654 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit f58d2598cf70d41f73e761b62a114d2e8f94a676 and fixed in 5.15.54 with commit 188c798f3c2554fa0d7147e9b97baf144b817019 Issue introduced in 5.9 with commit f58d2598cf70d41f73e761b62a114d2e8f94a676 and fixed in 5.18.11 with commit 1993f5a06736ada59dd54b50dc96755a38796ee5 Issue introduced in 5.9 with commit f58d2598cf70d41f73e761b62a114d2e8f94a676 and fixed in 5.19 with commit 386228c694bf1e7a7688e44412cb33500b0ac585 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-2022-49654 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/dsa/qca8k.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/188c798f3c2554fa0d7147e9b97baf144b817019 https://git.kernel.org/stable/c/1993f5a06736ada59dd54b50dc96755a38796ee5 https://git.kernel.org/stable/c/386228c694bf1e7a7688e44412cb33500b0ac585