{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-50343","id":"CVE-2022-50343","title":"rapidio: fix possible name leaks when rio_add_device() fails","description":"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 ri","descriptionLong":"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().","published":"2025-09-16T16:11:22.514Z","updated":"2026-10-28T02:31:14.086628624Z","reserved":"2025-09-16T16:03:27.881Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1fa5ae857bb14f6046205171d98506d8112dd74e","lessThan":"3b4676f274a6b5d001176f15d0542100bbf4b59a","status":"affected","versionType":"git"},{"version":"1fa5ae857bb14f6046205171d98506d8112dd74e","lessThan":"c482cb0deb57924335103fe592c379a076d867f8","status":"affected","versionType":"git"},{"version":"1fa5ae857bb14f6046205171d98506d8112dd74e","lessThan":"80fad2e53eaed2b3a2ff596575f65669e13ceda5","status":"affected","versionType":"git"},{"version":"1fa5ae857bb14f6046205171d98506d8112dd74e","lessThan":"440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8","status":"affected","versionType":"git"},{"version":"1fa5ae857bb14f6046205171d98506d8112dd74e","lessThan":"88fa351b20ca300693a206ccd3c4b0e0647944d8","status":"affected","versionType":"git"},{"version":"1fa5ae857bb14f6046205171d98506d8112dd74e","lessThan":"ec3f04f74f50d0b6bac04d795c93c2b852753a7a","status":"affected","versionType":"git"},{"version":"1fa5ae857bb14f6046205171d98506d8112dd74e","lessThan":"c413f65011ff8caffabcde0e1c3ceede48a48d6f","status":"affected","versionType":"git"},{"version":"1fa5ae857bb14f6046205171d98506d8112dd74e","lessThan":"85fbf58b15c09d3a6a03098c1e42ebfe9002f39d","status":"affected","versionType":"git"},{"version":"1fa5ae857bb14f6046205171d98506d8112dd74e","lessThan":"f9574cd48679926e2a569e1957a5a1bcc8a719ac","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.30","status":"affected"},{"version":"0","lessThan":"2.6.30","status":"unaffected","versionType":"semver"},{"version":"4.9.337","lessThanOrEqual":"4.9.*","status":"unaffected","versionType":"semver"},{"version":"4.14.303","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.270","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.229","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.163","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.86","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.16","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1.2","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3b4676f274a6b5d001176f15d0542100bbf4b59a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c482cb0deb57924335103fe592c379a076d867f8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/80fad2e53eaed2b3a2ff596575f65669e13ceda5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/88fa351b20ca300693a206ccd3c4b0e0647944d8","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ec3f04f74f50d0b6bac04d795c93c2b852753a7a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c413f65011ff8caffabcde0e1c3ceede48a48d6f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/85fbf58b15c09d3a6a03098c1e42ebfe9002f39d","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f9574cd48679926e2a569e1957a5a1bcc8a719ac","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50343.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50343","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0017,"epssPercentile":0.06492,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-50343","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50343","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-50343","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-50343","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}