CVE-2022-50245
rapidio: fix possible UAF when kfifo_alloc() fails
Mitigation
- Upgrade Linux to 02d7d89f816951e0862147d751b1150d67aaebdd or later.
Who should check
- Anyone running Linux >= e8de370188d098bb49483c287b44925957c3c9b6, < 2a6c75adf8192f07ddcdd4a1a13488c890a73919; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2dfd60724d271a6ab99f93f40f38f2ced1ddbb87; >= e8de370188d098bb49483c287b44925957c3c9b6, < a253dde0403a153075ffb254f6f7b2635e49e97a; >= e8de370188d098bb49483c287b44925957c3c9b6, < 311b488405ac45af46756b1c8f1d27007b68b07e; >= e8de370188d098bb49483c287b44925957c3c9b6, < 5ee850645e42f541ce1ea8130c2b27cc495f965c; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2f5cc7fd73fd6253cc71214f0dd499cc62feb469; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2ba06e57f933f0eac242e8b389433da1cc00d4d5; >= e8de370188d098bb49483c287b44925957c3c9b6, < cb87af2c19c0993f6e21f75b963a5599c5a73e76; >= e8de370188d098bb49483c287b44925957c3c9b6, < 02d7d89f816951e0862147d751b1150d67aaebdd
- Anyone running Linux 4.6
Vulnerability facts
- Affected
- Linux >= e8de370188d098bb49483c287b44925957c3c9b6, < 2a6c75adf8192f07ddcdd4a1a13488c890a73919; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2dfd60724d271a6ab99f93f40f38f2ced1ddbb87; >= e8de370188d098bb49483c287b44925957c3c9b6, < a253dde0403a153075ffb254f6f7b2635e49e97a; >= e8de370188d098bb49483c287b44925957c3c9b6, < 311b488405ac45af46756b1c8f1d27007b68b07e; >= e8de370188d098bb49483c287b44925957c3c9b6, < 5ee850645e42f541ce1ea8130c2b27cc495f965c; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2f5cc7fd73fd6253cc71214f0dd499cc62feb469; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2ba06e57f933f0eac242e8b389433da1cc00d4d5; >= e8de370188d098bb49483c287b44925957c3c9b6, < cb87af2c19c0993f6e21f75b963a5599c5a73e76; >= e8de370188d098bb49483c287b44925957c3c9b6, < 02d7d89f816951e0862147d751b1150d67aaebdd; Linux 4.6
- Fixed in
- Linux 2a6c75adf8192f07ddcdd4a1a13488c890a73919, Linux 2dfd60724d271a6ab99f93f40f38f2ced1ddbb87, Linux 311b488405ac45af46756b1c8f1d27007b68b07e, Linux 5ee850645e42f541ce1ea8130c2b27cc495f965c, Linux 2f5cc7fd73fd6253cc71214f0dd499cc62feb469, Linux 2ba06e57f933f0eac242e8b389433da1cc00d4d5, Linux 02d7d89f816951e0862147d751b1150d67aaebdd
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
- CWE
- CWE-416
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= e8de370188d098bb49483c287b44925957c3c9b6, < 2a6c75adf8192f07ddcdd4a1a13488c890a73919; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2dfd60724d271a6ab99f93f40f38f2ced1ddbb87; >= e8de370188d098bb49483c287b44925957c3c9b6, < a253dde0403a153075ffb254f6f7b2635e49e97a; >= e8de370188d098bb49483c287b44925957c3c9b6, < 311b488405ac45af46756b1c8f1d27007b68b07e; >= e8de370188d098bb49483c287b44925957c3c9b6, < 5ee850645e42f541ce1ea8130c2b27cc495f965c; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2f5cc7fd73fd6253cc71214f0dd499cc62feb469; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2ba06e57f933f0eac242e8b389433da1cc00d4d5; >= e8de370188d098bb49483c287b44925957c3c9b6, < cb87af2c19c0993f6e21f75b963a5599c5a73e76; >= e8de370188d098bb49483c287b44925957c3c9b6, < 02d7d89f816951e0862147d751b1150d67aaebdd | — | cvelist |
| Linux | 4.6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-50245. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50245.md Affected: Linux >= e8de370188d098bb49483c287b44925957c3c9b6, < 2a6c75adf8192f07ddcdd4a1a13488c890a73919; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2dfd60724d271a6ab99f93f40f38f2ced1ddbb87; >= e8de370188d098bb49483c287b44925957c3c9b6, < a253dde0403a153075ffb254f6f7b2635e49e97a; >= e8de370188d098bb49483c2… Fixed in: Linux 2a6c75adf8192f07ddcdd4a1a13488c890a73919, Linux 2dfd60724d271a6ab99f93f40f38f2ced1ddbb87, Linux 311b488405ac45af46756b1c8f1d27007b68b07e, Linux 5ee850645e42f541ce1ea8130c2b27cc495f965c, Linux 2f5cc7fd73fd6253cc71214f0dd499cc62feb469, Linux 2ba06e57f933f0eac242e8b389433da1cc00d4d5, Linux 02d7d… Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/2a6c75adf8192f07ddcdd4a1a13488c890a73919
- https://git.kernel.org/stable/c/2dfd60724d271a6ab99f93f40f38f2ced1ddbb87
- https://git.kernel.org/stable/c/a253dde0403a153075ffb254f6f7b2635e49e97a
- https://git.kernel.org/stable/c/311b488405ac45af46756b1c8f1d27007b68b07e
- https://git.kernel.org/stable/c/5ee850645e42f541ce1ea8130c2b27cc495f965c
- https://git.kernel.org/stable/c/2f5cc7fd73fd6253cc71214f0dd499cc62feb469
- https://git.kernel.org/stable/c/2ba06e57f933f0eac242e8b389433da1cc00d4d5
- https://git.kernel.org/stable/c/cb87af2c19c0993f6e21f75b963a5599c5a73e76
- https://git.kernel.org/stable/c/02d7d89f816951e0862147d751b1150d67aaebdd
FAQ
Is CVE-2022-50245 being exploited?
There is no confirmed exploitation: CVE-2022-50245 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50245?
High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-50245?
Linux >= e8de370188d098bb49483c287b44925957c3c9b6, < 2a6c75adf8192f07ddcdd4a1a13488c890a73919; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2dfd60724d271a6ab99f93f40f38f2ced1ddbb87; >= e8de370188d098bb49483c287b44925957c3c9b6, < a253dde0403a153075ffb254f6f7b2635e49e97a; >= e8de370188d098bb49483c287b44925957c3c9b6, < 311b488405ac45af46756b1c8f1d27007b68b07e; >= e8de370188d098bb49483c287b44925957c3c9b6, < 5ee850645e42f541ce1ea8130c2b27cc495f965c; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2f5cc7fd73fd6253cc71214f0dd499cc62feb469; >= e8de370188d098bb49483c287b44925957c3c9b6, < 2ba06e57f933f0eac242e8b389433da1cc00d4d5; >= e8de370188d098bb49483c287b44925957c3c9b6, < cb87af2c19c0993f6e21f75b963a5599c5a73e76; >= e8de370188d098bb49483c287b44925957c3c9b6, < 02d7d89f816951e0862147d751b1150d67aaebdd; Linux 4.6.
Is there a fix for CVE-2022-50245?
Yes. Fixed in Linux 2a6c75adf8192f07ddcdd4a1a13488c890a73919, Linux 2dfd60724d271a6ab99f93f40f38f2ced1ddbb87, Linux 311b488405ac45af46756b1c8f1d27007b68b07e, Linux 5ee850645e42f541ce1ea8130c2b27cc495f965c, Linux 2f5cc7fd73fd6253cc71214f0dd499cc62feb469, Linux 2ba06e57f933f0eac242e8b389433da1cc00d4d5, Linux 02d7d89f816951e0862147d751b1150d67aaebdd. Upgrade Linux to 02d7d89f816951e0862147d751b1150d67aaebdd or later.
How do I check if I'm affected by CVE-2022-50245?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.