{"id":"CVE-2022-50857","aliases":["CVE-2022-50857"],"related":[],"kind":"vulnerability","state":"published","title":"rapidio: rio: fix possible name leak in rio_register_mport()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2025-12-30T12:15:31.873Z","modified":"2026-06-17T05:24:18.380Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"2aaf308b95b24649a6dcfed89cd956e972089b2a","fixed":"0a71344f99289250e4d5b8adbac76f444485c840","status":"affected"},{"type":"git","introduced":"2aaf308b95b24649a6dcfed89cd956e972089b2a","fixed":"117fede82e9d6ea3de30746d500eb5edc2eb8310","status":"affected"},{"type":"git","introduced":"2aaf308b95b24649a6dcfed89cd956e972089b2a","fixed":"a73a626c0510d203e369aeb26c4d6ec9c75af027","status":"affected"},{"type":"git","introduced":"2aaf308b95b24649a6dcfed89cd956e972089b2a","fixed":"1bbad5793f404cf218757e3beb600eca6080330f","status":"affected"},{"type":"git","introduced":"2aaf308b95b24649a6dcfed89cd956e972089b2a","fixed":"97d9eb45ffa67ffa112a6659953321b8f7db0065","status":"affected"},{"type":"git","introduced":"2aaf308b95b24649a6dcfed89cd956e972089b2a","fixed":"a47de2fd3f88a7788be19f94ade72c2244a98045","status":"affected"},{"type":"git","introduced":"2aaf308b95b24649a6dcfed89cd956e972089b2a","fixed":"4ddbeae5f224d924cf0b12460dda88c7480aa452","status":"affected"},{"type":"git","introduced":"2aaf308b95b24649a6dcfed89cd956e972089b2a","fixed":"9abba4aa60874c5216fc8de7dededadc791de696","status":"affected"},{"type":"git","introduced":"2aaf308b95b24649a6dcfed89cd956e972089b2a","fixed":"e92a216d16bde65d21a3227e0fb2aa0794576525","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.15","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0a71344f99289250e4d5b8adbac76f444485c840","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/117fede82e9d6ea3de30746d500eb5edc2eb8310","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a73a626c0510d203e369aeb26c4d6ec9c75af027","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1bbad5793f404cf218757e3beb600eca6080330f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/97d9eb45ffa67ffa112a6659953321b8f7db0065","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a47de2fd3f88a7788be19f94ade72c2244a98045","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ddbeae5f224d924cf0b12460dda88c7480aa452","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9abba4aa60874c5216fc8de7dededadc791de696","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e92a216d16bde65d21a3227e0fb2aa0794576525","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50857","url":"https://www.cve.org/CVERecord?id=CVE-2022-50857","licence":"CVE Terms of Use","modified":"2026-05-11T19:26:27.847Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50857","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50857","licence":"Public domain","modified":"2026-06-17T05:24:18.380Z"}],"updatedAt":"2026-11-25T22:58:21.382Z","epss":{"score":0.0026,"percentile":0.1886,"date":"2026-12-01T12:00:22.000Z"}}