# CVE-2022-50343: rapidio: fix possible name leaks when rio\_add\_device() fails

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2025-09-16T16:11:22.514Z
- **Modified:** 2026-06-17T05:23:16.640Z

## Who should check

- Anyone running Linux \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 3b4676f274a6b5d001176f15d0542100bbf4b59a; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< c482cb0deb57924335103fe592c379a076d867f8; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 80fad2e53eaed2b3a2ff596575f65669e13ceda5; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 88fa351b20ca300693a206ccd3c4b0e0647944d8; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< ec3f04f74f50d0b6bac04d795c93c2b852753a7a; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< c413f65011ff8caffabcde0e1c3ceede48a48d6f; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 85fbf58b15c09d3a6a03098c1e42ebfe9002f39d; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< f9574cd48679926e2a569e1957a5a1bcc8a719ac
- Anyone running Linux 2.6.30

## Description

In the Linux kernel, the following vulnerability has been resolved:

rapidio: fix possible name leaks when rio\_add\_device() fails

Patch series "rapidio: fix three possible memory leaks".

This patchset fixes three name leaks in error handling.
 - patch \#1 fixes two name leaks while rio\_add\_device() fails.
 - patch \#2 fixes a name leak while  rio\_register\_mport() fails.


This patch (of 2):

If rio\_add\_device() returns error, the name allocated by dev\_set\_name()
need be freed.  It should use put\_device() to give up the reference in the
error path, so that the name can be freed in kobject\_cleanup(), and the
'rdev' can be freed in rio\_release\_dev().

## Affected and fixed versions

- Linux: \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 3b4676f274a6b5d001176f15d0542100bbf4b59a; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< c482cb0deb57924335103fe592c379a076d867f8; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 80fad2e53eaed2b3a2ff596575f65669e13ceda5; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 88fa351b20ca300693a206ccd3c4b0e0647944d8; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< ec3f04f74f50d0b6bac04d795c93c2b852753a7a; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< c413f65011ff8caffabcde0e1c3ceede48a48d6f; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 85fbf58b15c09d3a6a03098c1e42ebfe9002f39d; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< f9574cd48679926e2a569e1957a5a1bcc8a719ac (cvelist)
- Linux: 2.6.30 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50343. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50343.md
Affected: Linux >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 3b4676f274a6b5d001176f15d0542100bbf4b59a; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < c482cb0deb57924335103fe592c379a076d867f8; >= 1fa5ae857bb14f6046205171d98506d8112dd74e, < 80fad2e53eaed2b3a2ff596575f65669e13ceda5; >= 1fa5ae857bb14f604620517…
Fixed in: Linux 3b4676f274a6b5d001176f15d0542100bbf4b59a, Linux 80fad2e53eaed2b3a2ff596575f65669e13ceda5, Linux 440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8, Linux 88fa351b20ca300693a206ccd3c4b0e0647944d8, Linux 85fbf58b15c09d3a6a03098c1e42ebfe9002f39d

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.
```

## FAQ

### Is CVE-2022-50343 being exploited?

There is no confirmed exploitation: CVE-2022-50343 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.24% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50343?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2022-50343?

Linux \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 3b4676f274a6b5d001176f15d0542100bbf4b59a; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< c482cb0deb57924335103fe592c379a076d867f8; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 80fad2e53eaed2b3a2ff596575f65669e13ceda5; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 88fa351b20ca300693a206ccd3c4b0e0647944d8; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< ec3f04f74f50d0b6bac04d795c93c2b852753a7a; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< c413f65011ff8caffabcde0e1c3ceede48a48d6f; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< 85fbf58b15c09d3a6a03098c1e42ebfe9002f39d; \>= 1fa5ae857bb14f6046205171d98506d8112dd74e, \< f9574cd48679926e2a569e1957a5a1bcc8a719ac; Linux 2.6.30.

### Is there a fix for CVE-2022-50343?

Yes. Fixed in Linux 3b4676f274a6b5d001176f15d0542100bbf4b59a, Linux 80fad2e53eaed2b3a2ff596575f65669e13ceda5, Linux 440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8, Linux 88fa351b20ca300693a206ccd3c4b0e0647944d8, Linux 85fbf58b15c09d3a6a03098c1e42ebfe9002f39d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50343?

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.

## References

- patch: <https://git.kernel.org/stable/c/3b4676f274a6b5d001176f15d0542100bbf4b59a>
- patch: <https://git.kernel.org/stable/c/c482cb0deb57924335103fe592c379a076d867f8>
- patch: <https://git.kernel.org/stable/c/80fad2e53eaed2b3a2ff596575f65669e13ceda5>
- patch: <https://git.kernel.org/stable/c/440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8>
- patch: <https://git.kernel.org/stable/c/88fa351b20ca300693a206ccd3c4b0e0647944d8>
- patch: <https://git.kernel.org/stable/c/ec3f04f74f50d0b6bac04d795c93c2b852753a7a>
- patch: <https://git.kernel.org/stable/c/c413f65011ff8caffabcde0e1c3ceede48a48d6f>
- patch: <https://git.kernel.org/stable/c/85fbf58b15c09d3a6a03098c1e42ebfe9002f39d>
- patch: <https://git.kernel.org/stable/c/f9574cd48679926e2a569e1957a5a1bcc8a719ac>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50343>

HTML: <https://flawdb.com/CVE-2022-50343> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50343>
