0.0
NA
CVE-2022-50343
rapidio: fix possible name leaks when rio_add_device() fails
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().

INFO

Published Date :

Sept. 16, 2025, 5:15 p.m.

Last Modified :

Sept. 16, 2025, 5:15 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2022-50343 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

No affected product recoded yet

Solution
Apply patches to the Linux kernel to fix memory leaks in error handling.
  • Apply the provided patch series to the Linux kernel.
  • Ensure error handling paths properly free allocated names.
  • Utilize put_device() in error paths for resource management.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-50343 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-50343 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-50343 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-50343 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Sep. 16, 2025

    Action Type Old Value New Value
    Added 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().
    Added Reference https://git.kernel.org/stable/c/3b4676f274a6b5d001176f15d0542100bbf4b59a
    Added Reference https://git.kernel.org/stable/c/440afd7fd9b164fdde6fc9da8c47d3d7f20dcce8
    Added Reference https://git.kernel.org/stable/c/80fad2e53eaed2b3a2ff596575f65669e13ceda5
    Added Reference https://git.kernel.org/stable/c/85fbf58b15c09d3a6a03098c1e42ebfe9002f39d
    Added Reference https://git.kernel.org/stable/c/88fa351b20ca300693a206ccd3c4b0e0647944d8
    Added Reference https://git.kernel.org/stable/c/c413f65011ff8caffabcde0e1c3ceede48a48d6f
    Added Reference https://git.kernel.org/stable/c/c482cb0deb57924335103fe592c379a076d867f8
    Added Reference https://git.kernel.org/stable/c/ec3f04f74f50d0b6bac04d795c93c2b852753a7a
    Added Reference https://git.kernel.org/stable/c/f9574cd48679926e2a569e1957a5a1bcc8a719ac
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
No CVSS metrics available for this vulnerability.