{"id":"CVE-2022-49582","published":"2025-02-26T02:23:19Z","modified":"2026-05-11T19:02:44Z","title":"net: dsa: fix NULL pointer dereference in dsa_port_reset_vlan_filtering","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: fix NULL pointer dereference in dsa_port_reset_vlan_filtering\n\nThe \"ds\" iterator variable used in dsa_port_reset_vlan_filtering() ->\ndsa_switch_for_each_port() overwrites the \"dp\" received as argument,\nwhich is later used to call dsa_port_vlan_filtering() proper.\n\nAs a result, switches which do enter that code path (the ones with\nvlan_filtering_is_global=true) will dereference an invalid dp in\ndsa_port_reset_vlan_filtering() after leaving a VLAN-aware bridge.\n\nUse a dedicated \"other_dp\" iterator variable to avoid this from\nhappening.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00222,"percentile":0.13096,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://git.kernel.org/stable/c/3240e12fe203a3a79b9814e83327106b770ed7b0","tags":[]},{"url":"https://git.kernel.org/stable/c/1699b4d502eda3c7ea4070debad3ee570b5091b1","tags":[]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":2.62},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= d0004a020bb50263de0e3e775c7b7c7a003e0e0c, < 3240e12fe203a3a79b9814e83327106b770ed7b0",">= d0004a020bb50263de0e3e775c7b7c7a003e0e0c, < 1699b4d502eda3c7ea4070debad3ee570b5091b1"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-10-01T19:36:14.654442Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-54650","exploited":false,"provenance":"source"}}