CVE-2022-50245 json
rapidio: fix possible UAF when kfifo_alloc() fails
published 2025-09-15 13 mo ago modified 2026-06-17 4 mo ago also EUVD-2022-55507
- cvss
- 7.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 6%
- public exploits
- 0
- none known
Summary
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
Patch / fix
- Linux Linux 4.9.337, 4.14.303, 4.19.270, 5.4.229, 5.10.163, 5.15.86, 6.0.16, 6.1.2, 6.2
- linux Debian 14, Debian 13, Debian 12 6.1.4-1
debian advisories DEBIAN-CVE-2022-50245
- linux Ubuntu 18.04 LTS 4.15.0-208.220
- linux Ubuntu 20.04 LTS 5.4.0-144.161
- linux Ubuntu 22.04 LTS 5.15.0-69.76
- linux-aws Ubuntu 18.04 LTS 4.15.0-1153.166
- linux-aws Ubuntu 20.04 LTS 5.4.0-1097.105
- linux-aws Ubuntu 22.04 LTS 5.15.0-1033.37
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1101.110
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1031.38
ubuntu advisories UBUNTU-CVE-2022-50245
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- git.kernel.org/stable/c/2a6c75adf8192f07ddcdd4a1a13488c890a73919 commit
- git.kernel.org/stable/c/2dfd60724d271a6ab99f93f40f38f2ced1ddbb87 commit
- git.kernel.org/stable/c/a253dde0403a153075ffb254f6f7b2635e49e97a commit
- git.kernel.org/stable/c/311b488405ac45af46756b1c8f1d27007b68b07e commit
- git.kernel.org/stable/c/5ee850645e42f541ce1ea8130c2b27cc495f965c commit
- git.kernel.org/stable/c/2f5cc7fd73fd6253cc71214f0dd499cc62feb469 commit
- git.kernel.org/stable/c/2ba06e57f933f0eac242e8b389433da1cc00d4d5 commit
- git.kernel.org/stable/c/cb87af2c19c0993f6e21f75b963a5599c5a73e76 commit
- git.kernel.org/stable/c/02d7d89f816951e0862147d751b1150d67aaebdd commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-50245 updated
kernel: rapidio: fix possible UAF when kfifo_alloc() fails
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.17% chance of exploitation in the next 30 days, higher than 6% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-416 Use After Free
- Technology feeds
References
-
git.kernel.org
/stable/c/2a6c75adf8192f07ddcdd4a1a13488c890a73919
patch
-
git.kernel.org
/stable/c/2dfd60724d271a6ab99f93f40f38f2ced1ddbb87
patch
-
git.kernel.org
/stable/c/a253dde0403a153075ffb254f6f7b2635e49e97a
patch
-
git.kernel.org
/stable/c/311b488405ac45af46756b1c8f1d27007b68b07e
patch
-
git.kernel.org
/stable/c/5ee850645e42f541ce1ea8130c2b27cc495f965c
patch
-
git.kernel.org
/stable/c/2f5cc7fd73fd6253cc71214f0dd499cc62feb469
patch
-
git.kernel.org
/stable/c/2ba06e57f933f0eac242e8b389433da1cc00d4d5
patch
-
git.kernel.org
/stable/c/cb87af2c19c0993f6e21f75b963a5599c5a73e76
patch
-
git.kernel.org
/stable/c/02d7d89f816951e0862147d751b1150d67aaebdd
patch
Sources
- CVE List CVE-2022-50245
- NVD CVE-2022-50245
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.