CVE-2022-50245

rapidio: fix possible UAF when kfifo_alloc() fails

HIGH
7.8
CVSS Score
Published: September 15, 2025 at 02:02 PM UTC
Updated: June 17, 2026 at 05:23 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.10 ≤ v < 4.14.3034.15 ≤ v < 4.19.2704.20 ≤ v < 5.4.2294.6 ≤ v < 4.14.3034.6 ≤ v < 4.19.2704.6 ≤ v < 4.9.3374.6 ≤ v < 5.10.1634.6 ≤ v < 5.15.864.6 ≤ v < 5.4.2294.6 ≤ v < 6.0.164.6 ≤ v < 6.1.24.6 ≤ v < 6.25.11 ≤ v < 5.15.865.16 ≤ v < 6.0.165.5 ≤ v < 5.10.1636.1 ≤ v < 6.1.24.6e8de370188d098bb49483c287b44925957c3c9b6
Vendor states this is fixed in 02d7d89f816951e0862147d751b1150d67aaebdd (fixed)
Vendor states this is fixed in 2a6c75adf8192f07ddcdd4a1a13488c890a73919 (fixed)
Vendor states this is fixed in 2ba06e57f933f0eac242e8b389433da1cc00d4d5 (fixed)
Vendor states this is fixed in 2dfd60724d271a6ab99f93f40f38f2ced1ddbb87 (fixed)
Vendor states this is fixed in 2f5cc7fd73fd6253cc71214f0dd499cc62feb469 (fixed)
Vendor states this is fixed in 311b488405ac45af46756b1c8f1d27007b68b07e (fixed)
Vendor states this is fixed in 5ee850645e42f541ce1ea8130c2b27cc495f965c (fixed)
Vendor states this is fixed in a253dde0403a153075ffb254f6f7b2635e49e97a (fixed)
Vendor states this is fixed in cb87af2c19c0993f6e21f75b963a5599c5a73e76 (fixed)
Vendor states this is fixed in 4.14.303 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 4.6 (unaffected)
Vendor states this is fixed in 4.9.337 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/02d7d89f816951e0862147d751b1150d67aaebdd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2a6c75adf8192f07ddcdd4a1a13488c890a73919
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2ba06e57f933f0eac242e8b389433da1cc00d4d5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2dfd60724d271a6ab99f93f40f38f2ced1ddbb87
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2f5cc7fd73fd6253cc71214f0dd499cc62feb469
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/311b488405ac45af46756b1c8f1d27007b68b07e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5ee850645e42f541ce1ea8130c2b27cc495f965c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a253dde0403a153075ffb254f6f7b2635e49e97a

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card