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 30CCC17C194 for ; Mon, 25 Mar 2024 09:16: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=1711358211; cv=none; b=hJRZ511hnukdpMBI8Z66350S161NhFQ/XRT+DYKuxM5/cvYIYdiHwgjyY51NejolYCOV7qUuvskmH2CXXKoFftB/1WOSIuhn+CtEHIfL0Pa9NJOAWM7ufdHXTUIIMfQC9H0/ZOHJ1nRfEMvWRTHvyEsIeQXsPp/IQaoPkk6rcuc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711358211; c=relaxed/simple; bh=ncTMzwCg60bIIjZGv4IhBwFh4u9VDi1fzpVsn1WT/z4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pnFjgbKx0aybvpIVjKffQbiFpNSqkNJ4jJkVCSiwmqVhlcZdzauNYS6D15QnR6tLSeNM3gZHvi5kX0rXnTVw8Jhoriw7yTBpv0BHpBlss7cu8PxOPH02foAZrADWqPD7My5GqeCvKh0RamzFZKlzhVvdeo7s3mxlnjlt14sHbgg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=TN7fmdql; 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="TN7fmdql" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5FE61C433C7; Mon, 25 Mar 2024 09:16:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1711358210; bh=ncTMzwCg60bIIjZGv4IhBwFh4u9VDi1fzpVsn1WT/z4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=TN7fmdqlsjfFToi7jIz+tN0rfTt4yVUcObBFluHM7eKY8sqxxpjm57niMk3+6/vqB dH9gyhh+b35kDZIdCFMkUV5R1k47+z+Bj98mlUyrUhvB7e6qsrH6EzyZRit5zGpL5+ gj9HKQBNLhOFiHJYUGN2NLI4uz4wQyEW+t0x2r50= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47160: net: dsa: mt7530: fix VLAN traffic leaks Date: Mon, 25 Mar 2024 10:16:36 +0100 Message-ID: <2024032534-CVE-2021-47160-8e53@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=2727; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ncTMzwCg60bIIjZGv4IhBwFh4u9VDi1fzpVsn1WT/z4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmMDp8K3k5rf8VsuzDq1Jo7nrsnvPnE3buCSfmGyf7Dy 5d1LAvi6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJPLjFsGBinkbuizLPks+K 1mVxuzbNF52xUoNhDtfhWTYMqSyP7c0XeFTfthXwl77xHgA= 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: mt7530: fix VLAN traffic leaks PCR_MATRIX field was set to all 1's when VLAN filtering is enabled, but was not reset when it is disabled, which may cause traffic leaks: ip link add br0 type bridge vlan_filtering 1 ip link add br1 type bridge vlan_filtering 1 ip link set swp0 master br0 ip link set swp1 master br1 ip link set br0 type bridge vlan_filtering 0 ip link set br1 type bridge vlan_filtering 0 # traffic in br0 and br1 will start leaking to each other As port_bridge_{add,del} have set up PCR_MATRIX properly, remove the PCR_MATRIX write from mt7530_port_set_vlan_aware. The Linux kernel CVE team has assigned CVE-2021-47160 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 83163f7dca56 and fixed in 4.19.193 with commit ae389812733b Issue introduced in 4.16 with commit 83163f7dca56 and fixed in 5.4.124 with commit 4fe4e1f48ba1 Issue introduced in 4.16 with commit 83163f7dca56 and fixed in 5.10.42 with commit b91117b66fe8 Issue introduced in 4.16 with commit 83163f7dca56 and fixed in 5.12.9 with commit 82ae35b6c14f Issue introduced in 4.16 with commit 83163f7dca56 and fixed in 5.13 with commit 474a2ddaa192 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-2021-47160 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/mt7530.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/ae389812733b1b1e8e07fcc238e41db166b5c78d https://git.kernel.org/stable/c/4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488 https://git.kernel.org/stable/c/b91117b66fe875723a4e79ec6263526fffdb44d2 https://git.kernel.org/stable/c/82ae35b6c14feae5f216913d5b433e143c756d4e https://git.kernel.org/stable/c/474a2ddaa192777522a7499784f1d60691cd831a