CVE-2021-47160

net: dsa: mt7530: fix VLAN traffic leaks

8.1 high EPSS 0.33%

Published 25 Mar 2024 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2021-47160

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-47160 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

8.1 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack vector
adjacent: the attacker has to be on the same local network or link
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.33%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 28.5% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 25 Mar 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 83163f7dca5684816d01c8ccf4857aa74801e7b7, before ae389812733b1b1e8e07fcc238e41db166b5c78d
affected from 83163f7dca5684816d01c8ccf4857aa74801e7b7, before 4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488
affected from 83163f7dca5684816d01c8ccf4857aa74801e7b7, before b91117b66fe875723a4e79ec6263526fffdb44d2
affected from 83163f7dca5684816d01c8ccf4857aa74801e7b7, before 82ae35b6c14feae5f216913d5b433e143c756d4e
affected from 83163f7dca5684816d01c8ccf4857aa74801e7b7, before 474a2ddaa192777522a7499784f1d60691cd831a
Other versions: unaffected
Linux
affected 4.16
unaffected before 4.16
unaffected from 4.19.193 up to and including 4.19.*
unaffected from 5.4.124 up to and including 5.4.*
unaffected from 5.10.42 up to and including 5.10.*
unaffected from 5.12.9 up to and including 5.12.*
unaffected 5.13 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2021-47160 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2021-47160

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2021-47160
trivy image --scanners vuln IMAGE | grep CVE-2021-47160

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2021-47160 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.