{"id":"CVE-2022-50837","summary":"net: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path\n\nIf dsa_tag_8021q_setup() fails, for example due to the inability of the\ndevice to install a VLAN, the tag_8021q context of the switch will leak.\nMake sure it is freed on the error path.","modified":"2026-04-02T08:28:47.416456Z","published":"2025-12-30T12:10:57.049Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50837.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/09f30f394e832ed09859b6a80fdd20668a9104ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/14ed46a13aba42a6ddd85de6f6274090df3586a5"},{"type":"WEB","url":"https://git.kernel.org/stable/c/39691d51af99f80efb9e365f94b8e0c791fa1a2f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e095493091e850d5292ad01d8fbf5cde1d89ac53"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50837.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50837"},{"type":"PACKAGE","url":"https://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":"328621f6131f667c5c328bb72d45442fd76efb81"},{"fixed":"09f30f394e832ed09859b6a80fdd20668a9104ff"},{"fixed":"39691d51af99f80efb9e365f94b8e0c791fa1a2f"},{"fixed":"14ed46a13aba42a6ddd85de6f6274090df3586a5"},{"fixed":"e095493091e850d5292ad01d8fbf5cde1d89ac53"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50837.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"5.15.86"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.0.16"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.1.0"},{"fixed":"6.1.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50837.json"}}],"schema_version":"1.7.5"}