CVE-2022-50857

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

No CVSS score yet EPSS 0.26%

Published 30 Dec 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50857

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50857 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.8% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2aaf308b95b24649a6dcfed89cd956e972089b2a, before 0a71344f99289250e4d5b8adbac76f444485c840
affected from 2aaf308b95b24649a6dcfed89cd956e972089b2a, before 117fede82e9d6ea3de30746d500eb5edc2eb8310
affected from 2aaf308b95b24649a6dcfed89cd956e972089b2a, before a73a626c0510d203e369aeb26c4d6ec9c75af027
affected from 2aaf308b95b24649a6dcfed89cd956e972089b2a, before 1bbad5793f404cf218757e3beb600eca6080330f
affected from 2aaf308b95b24649a6dcfed89cd956e972089b2a, before 97d9eb45ffa67ffa112a6659953321b8f7db0065
affected from 2aaf308b95b24649a6dcfed89cd956e972089b2a, before a47de2fd3f88a7788be19f94ade72c2244a98045
affected from 2aaf308b95b24649a6dcfed89cd956e972089b2a, before 4ddbeae5f224d924cf0b12460dda88c7480aa452
affected from 2aaf308b95b24649a6dcfed89cd956e972089b2a, before 9abba4aa60874c5216fc8de7dededadc791de696
affected from 2aaf308b95b24649a6dcfed89cd956e972089b2a, before e92a216d16bde65d21a3227e0fb2aa0794576525
Other versions: unaffected
Linux
affected 3.15
unaffected before 3.15
unaffected from 4.9.337 up to and including 4.9.*
unaffected from 4.14.303 up to and including 4.14.*
unaffected from 4.19.270 up to and including 4.19.*
unaffected from 5.4.229 up to and including 5.4.*
unaffected from 5.10.163 up to and including 5.10.*
unaffected from 5.15.86 up to and including 5.15.*
unaffected from 6.0.16 up to and including 6.0.*
unaffected from 6.1.2 up to and including 6.1.*
unaffected 6.2 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50857 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50857

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-50857
trivy image --scanners vuln IMAGE | grep CVE-2022-50857

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-50857 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.