# CVE-2022-50343: rapidio: fix possible name leaks when rio_add_device() fails

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 9% of CVEs (2026-11-30)
- Published: 2025-09-16T16:11:22.514Z
- Modified: 2026-06-17T05:23:16.640Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

rapidio: fix possible name leaks when rio_add_device() fails

Patch series "rapidio: fix three possible memory leaks".

This patchset fixes three name leaks in error handling.
 - patch #1 fixes two name leaks while rio_add_device() fails.
 - patch #2 fixes a name leak while  rio_register_mport() fails.


This patch (of 2):

If rio_add_device() returns error, the name allocated by dev_set_name()
need be freed.  It should use put_device() to give up the reference in the
error path, so that the name can be freed in kobject_cleanup(), and the
'rdev' can be freed in rio_release_dev().

(As written by CVE List.)

## Affected

- Linux Linux: from 1fa5ae857bb14f6046205171d98506d8112dd74e before 3b4676f274a6b5d001176f15d0542100bbf4b59a; from 1fa5ae857bb14f6046205171d98506d8112dd74e before c482cb0deb57924335103fe592c379a076d867f8; from 1fa5ae857bb14f6046205171d98506d8112dd74e before 80fad2e53eaed2b3a2ff596575f65669e13ceda5; from 1fa5ae857bb14f6046205171d98506d8112dd74e before 440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8; from 1fa5ae857bb14f6046205171d98506d8112dd74e before 88fa351b20ca300693a206ccd3c4b0e0647944d8; from 1fa5ae857bb14f6046205171d98506d8112dd74e before ec3f04f74f50d0b6bac04d795c93c2b852753a7a; from 1fa5ae857bb14f6046205171d98506d8112dd74e before c413f65011ff8caffabcde0e1c3ceede48a48d6f; from 1fa5ae857bb14f6046205171d98506d8112dd74e before 85fbf58b15c09d3a6a03098c1e42ebfe9002f39d; from 1fa5ae857bb14f6046205171d98506d8112dd74e before f9574cd48679926e2a569e1957a5a1bcc8a719ac; 2.6.30 (not affected: before 2.6.30; from 4.9.337 up to 4.9.*; from 4.14.303 up to 4.14.*; from 4.19.270 up to 4.19.*; from 5.4.229 up to 5.4.*; from 5.10.163 up to 5.10.*; from 5.15.86 up to 5.15.*; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 2.6.30 before 4.9.337; from 4.10 before 4.14.303; from 4.15 before 4.19.270; from 4.20 before 5.4.229; from 5.5 before 5.10.163; from 5.11 before 5.15.86; from 5.16 before 6.0.16; from 6.1 before 6.1.2

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/3b4676f274a6b5d001176f15d0542100bbf4b59a> (patch)
- <https://git.kernel.org/stable/c/c482cb0deb57924335103fe592c379a076d867f8> (patch)
- <https://git.kernel.org/stable/c/80fad2e53eaed2b3a2ff596575f65669e13ceda5> (patch)
- <https://git.kernel.org/stable/c/440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8> (patch)
- <https://git.kernel.org/stable/c/88fa351b20ca300693a206ccd3c4b0e0647944d8> (patch)
- <https://git.kernel.org/stable/c/ec3f04f74f50d0b6bac04d795c93c2b852753a7a> (patch)
- <https://git.kernel.org/stable/c/c413f65011ff8caffabcde0e1c3ceede48a48d6f> (patch)
- <https://git.kernel.org/stable/c/85fbf58b15c09d3a6a03098c1e42ebfe9002f39d> (patch)
- <https://git.kernel.org/stable/c/f9574cd48679926e2a569e1957a5a1bcc8a719ac> (patch)

## Sources

- CVE List: [CVE-2022-50343](https://www.cve.org/CVERecord?id=CVE-2022-50343), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50343](https://nvd.nist.gov/vuln/detail/CVE-2022-50343), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50343 · Whole record: https://cve.day/CVE-2022-50343.json · Rebuilt by cve.day 2026-11-25T22:58:21.173Z
