CVE-2021-47160 net: dsa: mt7530: fix VLAN traffic leaks
An attacker can read traffic from other VLANs when VLAN filtering is disabled due to improper register reset in the mt7530 driver.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-47160?
CVE-2021-47160 is a high-severity vulnerability in Linux kernel, published on 25 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2021-47160?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2021-47160?
Apply the vendor's patch.
Is CVE-2021-47160 being exploited?
There is no known exploitation of CVE-2021-47160 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2021-47160, GHSA-9r37-jj74-qvw9, UBUNTU-CVE-2021-47160.