CVE-2021-47160·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.12.9
- Published
- 2024-03-25
Affected versions
From: 5.11
Until: 5.12.9
Fixed in: 5.12.9
How to fix this CVE
Update your Linux kernel to version 5.12.9 or later to resolve this VLAN traffic isolation vulnerability in Mediatek MT7530 switch driver. The issue occurs when VLAN filtering is disabled after being enabled, leaving port matrix configuration in an unsafe state that allows inter-VLAN traffic leakage. Apply the kernel update through your distribution's package manager and reboot to complete the remediation.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version with: uname -r — compare against 5.12.9 (if version is 5.11.x through 5.12.8, you are vulnerable)
- Verify if your system uses Mediatek MT7530 switch hardware with: lspci -k | grep -i mediatek or ethtool -i eth0 | grep driver (look for mt7530 driver)
- Check kernel logs for VLAN-related errors or configuration messages: sudo dmesg | grep -i vlan | grep -i mt7530
- Validate the fix by checking kernel version post-update with: uname -r (should be 5.12.9 or higher, and dmesg should show 'mt7530.*bridge' initialization without matrix reset warnings)
FAQ
What is CVE-2021-47160?
CVE-2021-47160 is a network isolation bypass vulnerability in the Linux kernel's Mediatek MT7530 DSA driver where the port forwarding matrix is not properly reset when VLAN filtering is disabled, allowing traffic intended for one VLAN to leak into another.
Is CVE-2021-47160 being actively exploited?
No, this vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog and no public exploit code is available.
What versions of Kernel are affected by CVE-2021-47160?
Kernel versions 5.11 through 5.12.8 are affected; version 5.12.9 and later contain the fix.
How do I check if my server is vulnerable to CVE-2021-47160?
Run 'uname -r' to check your kernel version; if it returns 5.11.x through 5.12.8, verify if MT7530 hardware is present with 'lspci -k | grep -i mediatek' — if both conditions are true, you are vulnerable.
Does Defensia detect CVE-2021-47160?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2021-47160 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/474a2ddaa192777522a7499784f1d60691cd831a
- https://git.kernel.org/stable/c/4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488
- https://git.kernel.org/stable/c/82ae35b6c14feae5f216913d5b433e143c756d4e
- https://git.kernel.org/stable/c/ae389812733b1b1e8e07fcc238e41db166b5c78d
- https://git.kernel.org/stable/c/b91117b66fe875723a4e79ec6263526fffdb44d2
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47160. Free for 1 server.
Get started free