CVE-2022-49582

Source
https://cve.org/CVERecord?id=CVE-2022-49582
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49582.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-49582
Downstream
Published
2025-02-26T02:23:19.626Z
Modified
2026-04-02T08:27:44.063349Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
net: dsa: fix NULL pointer dereference in dsa_port_reset_vlan_filtering
Details

In the Linux kernel, the following vulnerability has been resolved:

net: dsa: fix NULL pointer dereference in dsaportresetvlanfiltering

The "ds" iterator variable used in dsaportresetvlanfiltering() -> dsaswitchforeachport() overwrites the "dp" received as argument, which is later used to call dsaportvlan_filtering() proper.

As a result, switches which do enter that code path (the ones with vlanfilteringisglobal=true) will dereference an invalid dp in dsaportresetvlan_filtering() after leaving a VLAN-aware bridge.

Use a dedicated "other_dp" iterator variable to avoid this from happening.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49582.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
d0004a020bb50263de0e3e775c7b7c7a003e0e0c
Fixed
3240e12fe203a3a79b9814e83327106b770ed7b0
Fixed
1699b4d502eda3c7ea4070debad3ee570b5091b1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49582.json"