CVE-2022-50343

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-50343
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50343.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50343
Downstream
Published
2025-09-16T16:11:22.514Z
Modified
2025-11-26T19:33:10.745279Z
Summary
rapidio: fix possible name leaks when rio_add_device() fails
Details

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

rapidio: fix possible name leaks when rioadddevice() 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 rioadddevice() fails. - patch #2 fixes a name leak while rioregistermport() fails.

This patch (of 2):

If rioadddevice() returns error, the name allocated by devsetname() need be freed. It should use putdevice() to give up the reference in the error path, so that the name can be freed in kobjectcleanup(), and the 'rdev' can be freed in rioreleasedev().

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/9c3874e559580d6c6ec8d449812ac11277724770/cves/2022/50xxx/CVE-2022-50343.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1fa5ae857bb14f6046205171d98506d8112dd74e
Fixed
3b4676f274a6b5d001176f15d0542100bbf4b59a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1fa5ae857bb14f6046205171d98506d8112dd74e
Fixed
c482cb0deb57924335103fe592c379a076d867f8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1fa5ae857bb14f6046205171d98506d8112dd74e
Fixed
80fad2e53eaed2b3a2ff596575f65669e13ceda5
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1fa5ae857bb14f6046205171d98506d8112dd74e
Fixed
440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1fa5ae857bb14f6046205171d98506d8112dd74e
Fixed
88fa351b20ca300693a206ccd3c4b0e0647944d8
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1fa5ae857bb14f6046205171d98506d8112dd74e
Fixed
ec3f04f74f50d0b6bac04d795c93c2b852753a7a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1fa5ae857bb14f6046205171d98506d8112dd74e
Fixed
c413f65011ff8caffabcde0e1c3ceede48a48d6f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1fa5ae857bb14f6046205171d98506d8112dd74e
Fixed
85fbf58b15c09d3a6a03098c1e42ebfe9002f39d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1fa5ae857bb14f6046205171d98506d8112dd74e
Fixed
f9574cd48679926e2a569e1957a5a1bcc8a719ac

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.30
Fixed
4.9.337
Type
ECOSYSTEM
Events
Introduced
4.10.0
Fixed
4.14.303
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.270
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.229
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.86
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2