CVE-2021-47160 (GCVE-0-2021-47160)
Vulnerability from cvelistv5 – Published: 2024-03-25 09:16 – Updated: 2025-05-04 07:05
VLAI?
Title
net: dsa: mt7530: fix VLAN traffic leaks
Summary
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 ?
No CVSS data available.
Assigner
References
Impacted products
| Vendor | Product | Version | ||
|---|---|---|---|---|
| Linux | Linux |
Affected:
83163f7dca5684816d01c8ccf4857aa74801e7b7 , < ae389812733b1b1e8e07fcc238e41db166b5c78d
(git)
Affected: 83163f7dca5684816d01c8ccf4857aa74801e7b7 , < 4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488 (git) Affected: 83163f7dca5684816d01c8ccf4857aa74801e7b7 , < b91117b66fe875723a4e79ec6263526fffdb44d2 (git) Affected: 83163f7dca5684816d01c8ccf4857aa74801e7b7 , < 82ae35b6c14feae5f216913d5b433e143c756d4e (git) Affected: 83163f7dca5684816d01c8ccf4857aa74801e7b7 , < 474a2ddaa192777522a7499784f1d60691cd831a (git) |
||
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2021-47160",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2024-03-25T13:55:35.659497Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2024-06-04T17:13:48.308Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
},
{
"providerMetadata": {
"dateUpdated": "2024-08-04T05:24:39.982Z",
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE"
},
"references": [
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/ae389812733b1b1e8e07fcc238e41db166b5c78d"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/b91117b66fe875723a4e79ec6263526fffdb44d2"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/82ae35b6c14feae5f216913d5b433e143c756d4e"
},
{
"tags": [
"x_transferred"
],
"url": "https://git.kernel.org/stable/c/474a2ddaa192777522a7499784f1d60691cd831a"
}
],
"title": "CVE Program Container"
}
],
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/net/dsa/mt7530.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "ae389812733b1b1e8e07fcc238e41db166b5c78d",
"status": "affected",
"version": "83163f7dca5684816d01c8ccf4857aa74801e7b7",
"versionType": "git"
},
{
"lessThan": "4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488",
"status": "affected",
"version": "83163f7dca5684816d01c8ccf4857aa74801e7b7",
"versionType": "git"
},
{
"lessThan": "b91117b66fe875723a4e79ec6263526fffdb44d2",
"status": "affected",
"version": "83163f7dca5684816d01c8ccf4857aa74801e7b7",
"versionType": "git"
},
{
"lessThan": "82ae35b6c14feae5f216913d5b433e143c756d4e",
"status": "affected",
"version": "83163f7dca5684816d01c8ccf4857aa74801e7b7",
"versionType": "git"
},
{
"lessThan": "474a2ddaa192777522a7499784f1d60691cd831a",
"status": "affected",
"version": "83163f7dca5684816d01c8ccf4857aa74801e7b7",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/net/dsa/mt7530.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "4.16"
},
{
"lessThan": "4.16",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "4.19.*",
"status": "unaffected",
"version": "4.19.193",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"version": "5.4.124",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"version": "5.10.42",
"versionType": "semver"
},
{
"lessThanOrEqual": "5.12.*",
"status": "unaffected",
"version": "5.12.9",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "5.13",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.19.193",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.4.124",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.10.42",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.12.9",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "5.13",
"versionStartIncluding": "4.16",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: mt7530: fix VLAN traffic leaks\n\nPCR_MATRIX field was set to all 1\u0027s when VLAN filtering is enabled, but\nwas not reset when it is disabled, which may cause traffic leaks:\n\n\tip link add br0 type bridge vlan_filtering 1\n\tip link add br1 type bridge vlan_filtering 1\n\tip link set swp0 master br0\n\tip link set swp1 master br1\n\tip link set br0 type bridge vlan_filtering 0\n\tip link set br1 type bridge vlan_filtering 0\n\t# traffic in br0 and br1 will start leaking to each other\n\nAs port_bridge_{add,del} have set up PCR_MATRIX properly, remove the\nPCR_MATRIX write from mt7530_port_set_vlan_aware."
}
],
"providerMetadata": {
"dateUpdated": "2025-05-04T07:05:19.037Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"references": [
{
"url": "https://git.kernel.org/stable/c/ae389812733b1b1e8e07fcc238e41db166b5c78d"
},
{
"url": "https://git.kernel.org/stable/c/4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488"
},
{
"url": "https://git.kernel.org/stable/c/b91117b66fe875723a4e79ec6263526fffdb44d2"
},
{
"url": "https://git.kernel.org/stable/c/82ae35b6c14feae5f216913d5b433e143c756d4e"
},
{
"url": "https://git.kernel.org/stable/c/474a2ddaa192777522a7499784f1d60691cd831a"
}
],
"title": "net: dsa: mt7530: fix VLAN traffic leaks",
"x_generator": {
"engine": "bippy-1.2.0"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2021-47160",
"datePublished": "2024-03-25T09:16:14.468Z",
"dateReserved": "2024-03-25T09:12:14.109Z",
"dateUpdated": "2025-05-04T07:05:19.037Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.1",
"vulnerability-lookup:meta": {
"vulnrichment": {
"containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ae389812733b1b1e8e07fcc238e41db166b5c78d\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/b91117b66fe875723a4e79ec6263526fffdb44d2\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/82ae35b6c14feae5f216913d5b433e143c756d4e\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/474a2ddaa192777522a7499784f1d60691cd831a\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-04T05:24:39.982Z\"}}, {\"metrics\": [{\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2021-47160\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-03-25T13:55:35.659497Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-23T19:01:19.321Z\"}, \"title\": \"CISA ADP Vulnrichment\"}], \"cna\": {\"title\": \"net: dsa: mt7530: fix VLAN traffic leaks\", \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"83163f7dca5684816d01c8ccf4857aa74801e7b7\", \"lessThan\": \"ae389812733b1b1e8e07fcc238e41db166b5c78d\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"83163f7dca5684816d01c8ccf4857aa74801e7b7\", \"lessThan\": \"4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"83163f7dca5684816d01c8ccf4857aa74801e7b7\", \"lessThan\": \"b91117b66fe875723a4e79ec6263526fffdb44d2\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"83163f7dca5684816d01c8ccf4857aa74801e7b7\", \"lessThan\": \"82ae35b6c14feae5f216913d5b433e143c756d4e\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"83163f7dca5684816d01c8ccf4857aa74801e7b7\", \"lessThan\": \"474a2ddaa192777522a7499784f1d60691cd831a\", \"versionType\": \"git\"}], \"programFiles\": [\"drivers/net/dsa/mt7530.c\"], \"defaultStatus\": \"unaffected\"}, {\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"4.16\"}, {\"status\": \"unaffected\", \"version\": \"0\", \"lessThan\": \"4.16\", \"versionType\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"4.19.193\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"4.19.*\"}, {\"status\": \"unaffected\", \"version\": \"5.4.124\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.4.*\"}, {\"status\": \"unaffected\", \"version\": \"5.10.42\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.10.*\"}, {\"status\": \"unaffected\", \"version\": \"5.12.9\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"5.12.*\"}, {\"status\": \"unaffected\", \"version\": \"5.13\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/net/dsa/mt7530.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/ae389812733b1b1e8e07fcc238e41db166b5c78d\"}, {\"url\": \"https://git.kernel.org/stable/c/4fe4e1f48ba119bdbc7c897c83b04ba0d08f5488\"}, {\"url\": \"https://git.kernel.org/stable/c/b91117b66fe875723a4e79ec6263526fffdb44d2\"}, {\"url\": \"https://git.kernel.org/stable/c/82ae35b6c14feae5f216913d5b433e143c756d4e\"}, {\"url\": \"https://git.kernel.org/stable/c/474a2ddaa192777522a7499784f1d60691cd831a\"}], \"x_generator\": {\"engine\": \"bippy-5f407fcff5a0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\nnet: dsa: mt7530: fix VLAN traffic leaks\\n\\nPCR_MATRIX field was set to all 1\u0027s when VLAN filtering is enabled, but\\nwas not reset when it is disabled, which may cause traffic leaks:\\n\\n\\tip link add br0 type bridge vlan_filtering 1\\n\\tip link add br1 type bridge vlan_filtering 1\\n\\tip link set swp0 master br0\\n\\tip link set swp1 master br1\\n\\tip link set br0 type bridge vlan_filtering 0\\n\\tip link set br1 type bridge vlan_filtering 0\\n\\t# traffic in br0 and br1 will start leaking to each other\\n\\nAs port_bridge_{add,del} have set up PCR_MATRIX properly, remove the\\nPCR_MATRIX write from mt7530_port_set_vlan_aware.\"}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2024-12-19T07:36:19.197Z\"}}}",
"cveMetadata": "{\"cveId\": \"CVE-2021-47160\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-12-19T07:36:19.197Z\", \"dateReserved\": \"2024-03-25T09:12:14.109Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-03-25T09:16:14.468Z\", \"assignerShortName\": \"Linux\"}",
"dataType": "CVE_RECORD",
"dataVersion": "5.1"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…