CVE-2022-50245

rapidio: fix possible UAF when kfifo_alloc() fails

No CVSS score yet EPSS 0.18%

Published 15 Sep 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2022-50245

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-50245 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: fix possible UAF when kfifo_alloc() fails

If kfifo_alloc() fails in mport_cdev_open(), goto err_fifo and just free priv. But priv is still in the chdev->file_list, then list traversal may cause UAF. This fixes the following smatch warning:

drivers/rapidio/devices/rio_mport_cdev.c:1930 mport_cdev_open() warn: '&priv->list' not removed from list

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 2a6c75adf8192f07ddcdd4a1a13488c890a73919
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 2dfd60724d271a6ab99f93f40f38f2ced1ddbb87
affected from e8de370188d098bb49483c287b44925957c3c9b6, before a253dde0403a153075ffb254f6f7b2635e49e97a
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 311b488405ac45af46756b1c8f1d27007b68b07e
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 5ee850645e42f541ce1ea8130c2b27cc495f965c
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 2f5cc7fd73fd6253cc71214f0dd499cc62feb469
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 2ba06e57f933f0eac242e8b389433da1cc00d4d5
affected from e8de370188d098bb49483c287b44925957c3c9b6, before cb87af2c19c0993f6e21f75b963a5599c5a73e76
affected from e8de370188d098bb49483c287b44925957c3c9b6, before 02d7d89f816951e0862147d751b1150d67aaebdd
Other versions: unaffected
Linux
affected 4.6
unaffected before 4.6
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-50245 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50245

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-50245
trivy image --scanners vuln IMAGE | grep CVE-2022-50245

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