# CVE-2021-47160: net: dsa: mt7530: fix VLAN traffic leaks

- Severity: High 8.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.33%, higher than 28% of CVEs (2026-12-01)
- Published: 2024-03-25T09:16:14.468Z
- Modified: 2026-08-05T08:46:25.048Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 83163f7dca5684816d01c8ccf4857aa74801e7b7 before ae389812733b1b1e8e07fcc238e41db166b5c78d; from 83163f7dca5684816d01c8ccf4857aa74801e7b7 before 4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488; from 83163f7dca5684816d01c8ccf4857aa74801e7b7 before b91117b66fe875723a4e79ec6263526fffdb44d2; from 83163f7dca5684816d01c8ccf4857aa74801e7b7 before 82ae35b6c14feae5f216913d5b433e143c756d4e; from 83163f7dca5684816d01c8ccf4857aa74801e7b7 before 474a2ddaa192777522a7499784f1d60691cd831a; 4.16 (not affected: before 4.16; from 4.19.193 up to 4.19.*; from 5.4.124 up to 5.4.*; from 5.10.42 up to 5.10.*; from 5.12.9 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 4.16 before 4.19.193; from 4.20 before 5.4.124; from 5.5 before 5.10.42; from 5.11 before 5.12.9; 5.13

## Every score

- Linux: CVSS:3.1 8.1 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/ae389812733b1b1e8e07fcc238e41db166b5c78d> (patch)
- <https://git.kernel.org/stable/c/4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488> (patch)
- <https://git.kernel.org/stable/c/b91117b66fe875723a4e79ec6263526fffdb44d2> (patch)
- <https://git.kernel.org/stable/c/82ae35b6c14feae5f216913d5b433e143c756d4e> (patch)
- <https://git.kernel.org/stable/c/474a2ddaa192777522a7499784f1d60691cd831a> (patch)

## Sources

- CVE List: [CVE-2021-47160](https://www.cve.org/CVERecord?id=CVE-2021-47160), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47160](https://nvd.nist.gov/vuln/detail/CVE-2021-47160), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47160 · Whole record: https://cve.day/CVE-2021-47160.json · Rebuilt by cve.day 2026-11-25T22:58:08.692Z
