{"id":"CVE-2022-50349","summary":"misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: tifm: fix possible memory leak in tifm_7xx1_switch_media()\n\nIf device_register() returns error in tifm_7xx1_switch_media(),\nname of kobject which is allocated in dev_set_name() called in device_add()\nis leaked.\n\nNever directly free @dev after calling device_register(), even\nif it returned an error! Always use put_device() to give up the\nreference initialized.","modified":"2026-04-11T12:44:56.917887Z","published":"2025-09-16T16:11:41.340Z","related":["SUSE-SU-2025:03614-1","SUSE-SU-2025:03615-1","SUSE-SU-2025:03628-1","SUSE-SU-2025:3716-1","SUSE-SU-2025:3761-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50349.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1695b1adcc3a7d985cd22fa3b55761edf3fab50d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2bbb222a54ff501f77ce593d21b76b79c905045e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/35abbc8406cc39e72d3ce85f6e869555afe50d54"},{"type":"WEB","url":"https://git.kernel.org/stable/c/57c857353d5020bdec8284d9c0fee447484fe5e0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/848c45964ded537107e010aaf353aa30a0855387"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d861b7d41b17942b337d4b87a70de7cd1dc44d4e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ee2715faf7e7153f5142ed09aacfa89a64d45dcb"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ef843ee20576039126d34d6eb5f45d14c3e6ce18"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fd2c930cf6a5b9176382c15f9acb1996e76e25ad"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50349.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50349"},{"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":"2428a8fe2261e901e058d9ea8b6ed7e1b4268b79"},{"fixed":"2bbb222a54ff501f77ce593d21b76b79c905045e"},{"fixed":"d861b7d41b17942b337d4b87a70de7cd1dc44d4e"},{"fixed":"1695b1adcc3a7d985cd22fa3b55761edf3fab50d"},{"fixed":"ee2715faf7e7153f5142ed09aacfa89a64d45dcb"},{"fixed":"57c857353d5020bdec8284d9c0fee447484fe5e0"},{"fixed":"848c45964ded537107e010aaf353aa30a0855387"},{"fixed":"35abbc8406cc39e72d3ce85f6e869555afe50d54"},{"fixed":"ef843ee20576039126d34d6eb5f45d14c3e6ce18"},{"fixed":"fd2c930cf6a5b9176382c15f9acb1996e76e25ad"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50349.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.22"},{"fixed":"4.9.337"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.10.0"},{"fixed":"4.14.303"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.15.0"},{"fixed":"4.19.270"}]},{"type":"ECOSYSTEM","events":[{"introduced":"4.20.0"},{"fixed":"5.4.229"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.5.0"},{"fixed":"5.10.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.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/osv-test-cve-osv-conversion/osv-output/CVE-2022-50349.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}