{"id":"CVE-2022-50343","aliases":["CVE-2022-50343"],"related":[],"kind":"vulnerability","state":"published","title":"rapidio: fix possible name leaks when rio_add_device() fails","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nrapidio: fix possible name leaks when rio_add_device() fails\n\nPatch series \"rapidio: fix three possible memory leaks\".\n\nThis patchset fixes three name leaks in error handling.\n - patch #1 fixes two name leaks while rio_add_device() fails.\n - patch #2 fixes a name leak while  rio_register_mport() fails.\n\n\nThis patch (of 2):\n\nIf rio_add_device() 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 the\n'rdev' can be freed in rio_release_dev().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrapidio: fix possible name leaks when rio_add_device() fails\n\nPatch series \"rapidio: fix three possible memory leaks\".\n\nThis patchset fixes three name leaks in error handling.\n - patch #1 fixes two name leaks while rio_add_device() fails.\n - patch #2 fixes a name leak while  rio_register_mport() fails.\n\n\nThis patch (of 2):\n\nIf rio_add_device() 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 the\n'rdev' can be freed in rio_release_dev().","source":"cvelist"}],"published":"2025-09-16T16:11:22.514Z","modified":"2026-06-17T05:23:16.640Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"1fa5ae857bb14f6046205171d98506d8112dd74e","fixed":"3b4676f274a6b5d001176f15d0542100bbf4b59a","status":"affected"},{"type":"git","introduced":"1fa5ae857bb14f6046205171d98506d8112dd74e","fixed":"c482cb0deb57924335103fe592c379a076d867f8","status":"affected"},{"type":"git","introduced":"1fa5ae857bb14f6046205171d98506d8112dd74e","fixed":"80fad2e53eaed2b3a2ff596575f65669e13ceda5","status":"affected"},{"type":"git","introduced":"1fa5ae857bb14f6046205171d98506d8112dd74e","fixed":"440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8","status":"affected"},{"type":"git","introduced":"1fa5ae857bb14f6046205171d98506d8112dd74e","fixed":"88fa351b20ca300693a206ccd3c4b0e0647944d8","status":"affected"},{"type":"git","introduced":"1fa5ae857bb14f6046205171d98506d8112dd74e","fixed":"ec3f04f74f50d0b6bac04d795c93c2b852753a7a","status":"affected"},{"type":"git","introduced":"1fa5ae857bb14f6046205171d98506d8112dd74e","fixed":"c413f65011ff8caffabcde0e1c3ceede48a48d6f","status":"affected"},{"type":"git","introduced":"1fa5ae857bb14f6046205171d98506d8112dd74e","fixed":"85fbf58b15c09d3a6a03098c1e42ebfe9002f39d","status":"affected"},{"type":"git","introduced":"1fa5ae857bb14f6046205171d98506d8112dd74e","fixed":"f9574cd48679926e2a569e1957a5a1bcc8a719ac","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.30","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.30","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"},{"ranges":[{"status":"affected","introduced":"2.6.30","fixed":"4.9.337"},{"status":"affected","introduced":"4.10","fixed":"4.14.303"},{"status":"affected","introduced":"4.15","fixed":"4.19.270"},{"status":"affected","introduced":"4.20","fixed":"5.4.229"},{"status":"affected","introduced":"5.5","fixed":"5.10.163"},{"status":"affected","introduced":"5.11","fixed":"5.15.86"},{"status":"affected","introduced":"5.16","fixed":"6.0.16"},{"status":"affected","introduced":"6.1","fixed":"6.1.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3b4676f274a6b5d001176f15d0542100bbf4b59a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c482cb0deb57924335103fe592c379a076d867f8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80fad2e53eaed2b3a2ff596575f65669e13ceda5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/88fa351b20ca300693a206ccd3c4b0e0647944d8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ec3f04f74f50d0b6bac04d795c93c2b852753a7a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c413f65011ff8caffabcde0e1c3ceede48a48d6f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85fbf58b15c09d3a6a03098c1e42ebfe9002f39d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f9574cd48679926e2a569e1957a5a1bcc8a719ac","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-01-14T18:20:22.573Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50343","url":"https://www.cve.org/CVERecord?id=CVE-2022-50343","licence":"CVE Terms of Use","modified":"2026-05-11T19:17:35.958Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50343","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50343","licence":"Public domain","modified":"2026-06-17T05:23:16.640Z"}],"updatedAt":"2026-11-25T22:58:21.173Z","epss":{"score":0.00235,"percentile":0.08654,"date":"2026-11-30T12:00:22.000Z"}}