CVE-2022-50857 (GCVE-0-2022-50857)

Vulnerability from cvelistv5 – Published: 2025-12-30 12:15 – Updated: 2026-05-11 19:26
VLAI
Title
rapidio: rio: fix possible name leak in rio_register_mport()
Summary
In the Linux kernel, the following vulnerability has been resolved: rapidio: rio: fix possible name leak in rio_register_mport() If device_register() 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 list_del() is called to delete the port from rio_mports.
Severity
No CVSS data available.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 2aaf308b95b24649a6dcfed89cd956e972089b2a , < 0a71344f99289250e4d5b8adbac76f444485c840 (git)
Affected: 2aaf308b95b24649a6dcfed89cd956e972089b2a , < 117fede82e9d6ea3de30746d500eb5edc2eb8310 (git)
Affected: 2aaf308b95b24649a6dcfed89cd956e972089b2a , < a73a626c0510d203e369aeb26c4d6ec9c75af027 (git)
Affected: 2aaf308b95b24649a6dcfed89cd956e972089b2a , < 1bbad5793f404cf218757e3beb600eca6080330f (git)
Affected: 2aaf308b95b24649a6dcfed89cd956e972089b2a , < 97d9eb45ffa67ffa112a6659953321b8f7db0065 (git)
Affected: 2aaf308b95b24649a6dcfed89cd956e972089b2a , < a47de2fd3f88a7788be19f94ade72c2244a98045 (git)
Affected: 2aaf308b95b24649a6dcfed89cd956e972089b2a , < 4ddbeae5f224d924cf0b12460dda88c7480aa452 (git)
Affected: 2aaf308b95b24649a6dcfed89cd956e972089b2a , < 9abba4aa60874c5216fc8de7dededadc791de696 (git)
Affected: 2aaf308b95b24649a6dcfed89cd956e972089b2a , < e92a216d16bde65d21a3227e0fb2aa0794576525 (git)
guessed Create a notification for this product.
Linux Linux Affected: 3.15
Unaffected: 0 , < 3.15 (semver)
Unaffected: 4.9.337 , ≤ 4.9.* (semver)
Unaffected: 4.14.303 , ≤ 4.14.* (semver)
Unaffected: 4.19.270 , ≤ 4.19.* (semver)
Unaffected: 5.4.229 , ≤ 5.4.* (semver)
Unaffected: 5.10.163 , ≤ 5.10.* (semver)
Unaffected: 5.15.86 , ≤ 5.15.* (semver)
Unaffected: 6.0.16 , ≤ 6.0.* (semver)
Unaffected: 6.1.2 , ≤ 6.1.* (semver)
Unaffected: 6.2 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/rapidio/rio.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0a71344f99289250e4d5b8adbac76f444485c840",
              "status": "affected",
              "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
              "versionType": "git"
            },
            {
              "lessThan": "117fede82e9d6ea3de30746d500eb5edc2eb8310",
              "status": "affected",
              "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
              "versionType": "git"
            },
            {
              "lessThan": "a73a626c0510d203e369aeb26c4d6ec9c75af027",
              "status": "affected",
              "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
              "versionType": "git"
            },
            {
              "lessThan": "1bbad5793f404cf218757e3beb600eca6080330f",
              "status": "affected",
              "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
              "versionType": "git"
            },
            {
              "lessThan": "97d9eb45ffa67ffa112a6659953321b8f7db0065",
              "status": "affected",
              "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
              "versionType": "git"
            },
            {
              "lessThan": "a47de2fd3f88a7788be19f94ade72c2244a98045",
              "status": "affected",
              "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
              "versionType": "git"
            },
            {
              "lessThan": "4ddbeae5f224d924cf0b12460dda88c7480aa452",
              "status": "affected",
              "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
              "versionType": "git"
            },
            {
              "lessThan": "9abba4aa60874c5216fc8de7dededadc791de696",
              "status": "affected",
              "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
              "versionType": "git"
            },
            {
              "lessThan": "e92a216d16bde65d21a3227e0fb2aa0794576525",
              "status": "affected",
              "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/rapidio/rio.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.15"
            },
            {
              "lessThan": "3.15",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.9.*",
              "status": "unaffected",
              "version": "4.9.337",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.14.*",
              "status": "unaffected",
              "version": "4.14.303",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "4.19.*",
              "status": "unaffected",
              "version": "4.19.270",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.4.*",
              "status": "unaffected",
              "version": "5.4.229",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.10.*",
              "status": "unaffected",
              "version": "5.10.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.86",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.0.*",
              "status": "unaffected",
              "version": "6.0.16",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.9.337",
                  "versionStartIncluding": "3.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.14.303",
                  "versionStartIncluding": "3.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "4.19.270",
                  "versionStartIncluding": "3.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.4.229",
                  "versionStartIncluding": "3.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.10.163",
                  "versionStartIncluding": "3.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.86",
                  "versionStartIncluding": "3.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0.16",
                  "versionStartIncluding": "3.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.2",
                  "versionStartIncluding": "3.15",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.2",
                  "versionStartIncluding": "3.15",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nrapidio: rio: fix possible name leak in rio_register_mport()\n\nIf device_register() returns error, the name allocated by dev_set_name()\nneed be freed.  It should use put_device() to give up the reference in the\nerror path, so that the name can be freed in kobject_cleanup(), and\nlist_del() is called to delete the port from rio_mports."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:26:27.847Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/0a71344f99289250e4d5b8adbac76f444485c840"
        },
        {
          "url": "https://git.kernel.org/stable/c/117fede82e9d6ea3de30746d500eb5edc2eb8310"
        },
        {
          "url": "https://git.kernel.org/stable/c/a73a626c0510d203e369aeb26c4d6ec9c75af027"
        },
        {
          "url": "https://git.kernel.org/stable/c/1bbad5793f404cf218757e3beb600eca6080330f"
        },
        {
          "url": "https://git.kernel.org/stable/c/97d9eb45ffa67ffa112a6659953321b8f7db0065"
        },
        {
          "url": "https://git.kernel.org/stable/c/a47de2fd3f88a7788be19f94ade72c2244a98045"
        },
        {
          "url": "https://git.kernel.org/stable/c/4ddbeae5f224d924cf0b12460dda88c7480aa452"
        },
        {
          "url": "https://git.kernel.org/stable/c/9abba4aa60874c5216fc8de7dededadc791de696"
        },
        {
          "url": "https://git.kernel.org/stable/c/e92a216d16bde65d21a3227e0fb2aa0794576525"
        }
      ],
      "title": "rapidio: rio: fix possible name leak in rio_register_mport()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50857",
    "datePublished": "2025-12-30T12:15:31.873Z",
    "dateReserved": "2025-12-30T12:06:07.135Z",
    "dateUpdated": "2026-05-11T19:26:27.847Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50857",
      "date": "2026-09-27",
      "epss": "0.00242",
      "percentile": "0.13826"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/rapidio/rio.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "0a71344f99289250e4d5b8adbac76f444485c840",
                    "status": "affected",
                    "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "117fede82e9d6ea3de30746d500eb5edc2eb8310",
                    "status": "affected",
                    "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a73a626c0510d203e369aeb26c4d6ec9c75af027",
                    "status": "affected",
                    "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "1bbad5793f404cf218757e3beb600eca6080330f",
                    "status": "affected",
                    "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "97d9eb45ffa67ffa112a6659953321b8f7db0065",
                    "status": "affected",
                    "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "a47de2fd3f88a7788be19f94ade72c2244a98045",
                    "status": "affected",
                    "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "4ddbeae5f224d924cf0b12460dda88c7480aa452",
                    "status": "affected",
                    "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "9abba4aa60874c5216fc8de7dededadc791de696",
                    "status": "affected",
                    "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "e92a216d16bde65d21a3227e0fb2aa0794576525",
                    "status": "affected",
                    "version": "2aaf308b95b24649a6dcfed89cd956e972089b2a",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/rapidio/rio.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "3.15"
                  },
                  {
                    "lessThan": "3.15",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.9.*",
                    "status": "unaffected",
                    "version": "4.9.337",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.14.*",
                    "status": "unaffected",
                    "version": "4.14.303",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "4.19.*",
                    "status": "unaffected",
                    "version": "4.19.270",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.4.*",
                    "status": "unaffected",
                    "version": "5.4.229",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.10.*",
                    "status": "unaffected",
                    "version": "5.10.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.86",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.0.*",
                    "status": "unaffected",
                    "version": "6.0.16",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.2",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nrapidio: rio: fix possible name leak in rio_register_mport()\n\nIf device_register() returns error, the name allocated by dev_set_name()\nneed be freed.  It should use put_device() to give up the reference in the\nerror path, so that the name can be freed in kobject_cleanup(), and\nlist_del() is called to delete the port from rio_mports."
          }
        ],
        "id": "CVE-2022-50857",
        "lastModified": "2026-06-17T05:24:18.380",
        "metrics": {},
        "published": "2025-12-30T13:16:00.437",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/0a71344f99289250e4d5b8adbac76f444485c840"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/117fede82e9d6ea3de30746d500eb5edc2eb8310"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/1bbad5793f404cf218757e3beb600eca6080330f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/4ddbeae5f224d924cf0b12460dda88c7480aa452"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/97d9eb45ffa67ffa112a6659953321b8f7db0065"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/9abba4aa60874c5216fc8de7dededadc791de696"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a47de2fd3f88a7788be19f94ade72c2244a98045"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/a73a626c0510d203e369aeb26c4d6ec9c75af027"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/e92a216d16bde65d21a3227e0fb2aa0794576525"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Deferred"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "None",
      "current_release_date": "2026-06-30T10:18:20+00:00",
      "cve": "CVE-2022-50857",
      "id": "CVE-2022-50857",
      "initial_release_date": "2022-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "274",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: rapidio: rio: fix possible name leak in rio_register_mport()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50857.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-05T00:54:06Z",
      "cve": "CVE-2022-50857",
      "id": "CVE-2022-50857",
      "initial_release_date": "2025-12-31T00:31:09Z",
      "product_status:known_affected": "121",
      "product_status:known_not_affected": "178",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-50857",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-50857.json",
      "version": "13"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…