# CVE-2022-50857: rapidio: rio: fix possible name leak in rio_register_mport()

- Severity: not scored yet
- 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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-12-30T12:15:31.873Z
- Modified: 2026-06-17T05:24:18.380Z
- Assigned by: Linux

## Description

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

rapidio: rio: fix possible name leak in rio_register_mport()

If device_register() 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
list_del() is called to delete the port from rio_mports.

(As written by CVE List.)

## Affected

- Linux Linux: from 2aaf308b95b24649a6dcfed89cd956e972089b2a before 0a71344f99289250e4d5b8adbac76f444485c840; from 2aaf308b95b24649a6dcfed89cd956e972089b2a before 117fede82e9d6ea3de30746d500eb5edc2eb8310; from 2aaf308b95b24649a6dcfed89cd956e972089b2a before a73a626c0510d203e369aeb26c4d6ec9c75af027; from 2aaf308b95b24649a6dcfed89cd956e972089b2a before 1bbad5793f404cf218757e3beb600eca6080330f; from 2aaf308b95b24649a6dcfed89cd956e972089b2a before 97d9eb45ffa67ffa112a6659953321b8f7db0065; from 2aaf308b95b24649a6dcfed89cd956e972089b2a before a47de2fd3f88a7788be19f94ade72c2244a98045; from 2aaf308b95b24649a6dcfed89cd956e972089b2a before 4ddbeae5f224d924cf0b12460dda88c7480aa452; from 2aaf308b95b24649a6dcfed89cd956e972089b2a before 9abba4aa60874c5216fc8de7dededadc791de696; from 2aaf308b95b24649a6dcfed89cd956e972089b2a before e92a216d16bde65d21a3227e0fb2aa0794576525; 3.15 (not affected: before 3.15; 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 *)

## References

- <https://git.kernel.org/stable/c/0a71344f99289250e4d5b8adbac76f444485c840>
- <https://git.kernel.org/stable/c/117fede82e9d6ea3de30746d500eb5edc2eb8310>
- <https://git.kernel.org/stable/c/a73a626c0510d203e369aeb26c4d6ec9c75af027>
- <https://git.kernel.org/stable/c/1bbad5793f404cf218757e3beb600eca6080330f>
- <https://git.kernel.org/stable/c/97d9eb45ffa67ffa112a6659953321b8f7db0065>
- <https://git.kernel.org/stable/c/a47de2fd3f88a7788be19f94ade72c2244a98045>
- <https://git.kernel.org/stable/c/4ddbeae5f224d924cf0b12460dda88c7480aa452>
- <https://git.kernel.org/stable/c/9abba4aa60874c5216fc8de7dededadc791de696>
- <https://git.kernel.org/stable/c/e92a216d16bde65d21a3227e0fb2aa0794576525>

## Sources

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

---

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