CVE-2022-50245

rapidio: fix possible UAF when kfifo_alloc() fails

published September 15, 2025

CVSS
—
EPSS
0%
Percentile
6.2
In the wild
Unconfirmed
What it is

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

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00171 · 6.2th percentile
Published
2025-09-15T14:02Z
EPSS history
Timeline
  • 15 SEP 14:02Z
    rapidio: fix possible UAF when kfifo_alloc() fails
    cvelistv5