rapidio: fix possible UAF when kfifo_alloc() fails
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e8de370188d098bb49483c287b44925957c3c9b6 · < 2f5cc7fd73fd6253cc71214f0dd499cc62feb469| No fix yet |
| Linux Linux |
|
|
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
From the CVE record · Linux
The Linux kernel RapidIO character device can leave a freed object on a file list if kfifo_alloc() fails while opening the device. Later list traversal may cause a use-after-free; the reported condition involves a local device open, and the input does not specify authentication requirements.
Engineers running Linux kernels with the RapidIO character device should check their kernel versions; affected versions are not specified.