{"id":"CVE-2022-50857","summary":"rapidio: rio: fix possible name leak in rio_register_mport()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nrapidio: rio: fix possible name leak in rio_register_mport()\n\nIf device_register() returns error, the name allocated by dev_set_name()\nneed be freed.  It should use put_device() to give up the reference in the\nerror path, so that the name can be freed in kobject_cleanup(), and\nlist_del() is called to delete the port from rio_mports.","modified":"2026-08-12T03:51:24.876521230Z","published":"2025-12-30T12:15:31.873Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50857.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0a71344f99289250e4d5b8adbac76f444485c840"},{"type":"WEB","url":"https://git.kernel.org/stable/c/117fede82e9d6ea3de30746d500eb5edc2eb8310"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1bbad5793f404cf218757e3beb600eca6080330f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4ddbeae5f224d924cf0b12460dda88c7480aa452"},{"type":"WEB","url":"https://git.kernel.org/stable/c/97d9eb45ffa67ffa112a6659953321b8f7db0065"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9abba4aa60874c5216fc8de7dededadc791de696"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a47de2fd3f88a7788be19f94ade72c2244a98045"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a73a626c0510d203e369aeb26c4d6ec9c75af027"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e92a216d16bde65d21a3227e0fb2aa0794576525"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50857.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50857"},{"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":"2aaf308b95b24649a6dcfed89cd956e972089b2a"},{"fixed":"0a71344f99289250e4d5b8adbac76f444485c840"},{"fixed":"117fede82e9d6ea3de30746d500eb5edc2eb8310"},{"fixed":"a73a626c0510d203e369aeb26c4d6ec9c75af027"},{"fixed":"1bbad5793f404cf218757e3beb600eca6080330f"},{"fixed":"97d9eb45ffa67ffa112a6659953321b8f7db0065"},{"fixed":"a47de2fd3f88a7788be19f94ade72c2244a98045"},{"fixed":"4ddbeae5f224d924cf0b12460dda88c7480aa452"},{"fixed":"9abba4aa60874c5216fc8de7dededadc791de696"},{"fixed":"e92a216d16bde65d21a3227e0fb2aa0794576525"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50857.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.15.0"},{"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/cve-osv-conversion/osv-output/CVE-2022-50857.json"}}],"schema_version":"1.9.0"}