CVE-2022-50119 (GCVE-0-2022-50119)

Vulnerability from cvelistv5 – Published: 2025-06-18 11:02 – Updated: 2026-05-11 19:13
VLAI
Title
rpmsg: Fix possible refcount leak in rpmsg_register_device_override()
Summary
In the Linux kernel, the following vulnerability has been resolved: rpmsg: Fix possible refcount leak in rpmsg_register_device_override() rpmsg_register_device_override need to call put_device to free vch when driver_set_override fails. Fix this by adding a put_device() to the error path.
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: b585daa34a0a852e6d5e553132b411b6a0192d27 , < 280ae5a028ef5d14ef9277746a3026a30aaebe4f (git)
Affected: c14c6676ad5b78950a45121a7ee6cfb85778e71f , < c449b28e437d18ae807479c4ac6b69d87b287c79 (git)
Affected: 3d14785980571ebb313a976e589b9d3563adc704 , < 01e6885b75e25a2dd0726455ef18ef9ce5e7dc87 (git)
Affected: 5f1bb9f4d4b55c39180329c4e379aa740039eed3 , < 3fdd5b2bb09fc2b5bf3504778f51c89bb48c097f (git)
Affected: bfd4a664ddfbe12f008efb0b0ab6bf25a8ab2538 , < d4c8bf5635c4bedaf2470761ced1f502b2d5434e (git)
Affected: bb17d110cbf270d5247a6e261c5ad50e362d1675 , < c29335612ff44df979678a38e1f55c62004f421c (git)
Affected: bb17d110cbf270d5247a6e261c5ad50e362d1675 , < d7bd416d35121c95fe47330e09a5c04adbc5f928 (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.19
Unaffected: 0 , < 5.19 (semver)
Unaffected: 5.19.2 , ≤ 5.19.* (semver)
Unaffected: 6.0 , ≤ * (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/rpmsg/rpmsg_core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "280ae5a028ef5d14ef9277746a3026a30aaebe4f",
              "status": "affected",
              "version": "b585daa34a0a852e6d5e553132b411b6a0192d27",
              "versionType": "git"
            },
            {
              "lessThan": "c449b28e437d18ae807479c4ac6b69d87b287c79",
              "status": "affected",
              "version": "c14c6676ad5b78950a45121a7ee6cfb85778e71f",
              "versionType": "git"
            },
            {
              "lessThan": "01e6885b75e25a2dd0726455ef18ef9ce5e7dc87",
              "status": "affected",
              "version": "3d14785980571ebb313a976e589b9d3563adc704",
              "versionType": "git"
            },
            {
              "lessThan": "3fdd5b2bb09fc2b5bf3504778f51c89bb48c097f",
              "status": "affected",
              "version": "5f1bb9f4d4b55c39180329c4e379aa740039eed3",
              "versionType": "git"
            },
            {
              "lessThan": "d4c8bf5635c4bedaf2470761ced1f502b2d5434e",
              "status": "affected",
              "version": "bfd4a664ddfbe12f008efb0b0ab6bf25a8ab2538",
              "versionType": "git"
            },
            {
              "lessThan": "c29335612ff44df979678a38e1f55c62004f421c",
              "status": "affected",
              "version": "bb17d110cbf270d5247a6e261c5ad50e362d1675",
              "versionType": "git"
            },
            {
              "lessThan": "d7bd416d35121c95fe47330e09a5c04adbc5f928",
              "status": "affected",
              "version": "bb17d110cbf270d5247a6e261c5ad50e362d1675",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/rpmsg/rpmsg_core.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.19"
            },
            {
              "lessThan": "5.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.19.*",
              "status": "unaffected",
              "version": "5.19.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.0",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.19.2",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.0",
                  "versionStartIncluding": "5.19",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nrpmsg: Fix possible refcount leak in rpmsg_register_device_override()\n\nrpmsg_register_device_override need to call put_device to free vch when\ndriver_set_override fails.\n\nFix this by adding a put_device() to the error path."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-05-11T19:13:12.784Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/280ae5a028ef5d14ef9277746a3026a30aaebe4f"
        },
        {
          "url": "https://git.kernel.org/stable/c/c449b28e437d18ae807479c4ac6b69d87b287c79"
        },
        {
          "url": "https://git.kernel.org/stable/c/01e6885b75e25a2dd0726455ef18ef9ce5e7dc87"
        },
        {
          "url": "https://git.kernel.org/stable/c/3fdd5b2bb09fc2b5bf3504778f51c89bb48c097f"
        },
        {
          "url": "https://git.kernel.org/stable/c/d4c8bf5635c4bedaf2470761ced1f502b2d5434e"
        },
        {
          "url": "https://git.kernel.org/stable/c/c29335612ff44df979678a38e1f55c62004f421c"
        },
        {
          "url": "https://git.kernel.org/stable/c/d7bd416d35121c95fe47330e09a5c04adbc5f928"
        }
      ],
      "title": "rpmsg: Fix possible refcount leak in rpmsg_register_device_override()",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2022-50119",
    "datePublished": "2025-06-18T11:02:49.264Z",
    "dateReserved": "2025-06-18T10:57:27.415Z",
    "dateUpdated": "2026-05-11T19:13:12.784Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2022-50119",
      "date": "2026-09-27",
      "epss": "0.00189",
      "percentile": "0.07656"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/rpmsg/rpmsg_core.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "280ae5a028ef5d14ef9277746a3026a30aaebe4f",
                    "status": "affected",
                    "version": "b585daa34a0a852e6d5e553132b411b6a0192d27",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "c449b28e437d18ae807479c4ac6b69d87b287c79",
                    "status": "affected",
                    "version": "c14c6676ad5b78950a45121a7ee6cfb85778e71f",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "01e6885b75e25a2dd0726455ef18ef9ce5e7dc87",
                    "status": "affected",
                    "version": "3d14785980571ebb313a976e589b9d3563adc704",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "3fdd5b2bb09fc2b5bf3504778f51c89bb48c097f",
                    "status": "affected",
                    "version": "5f1bb9f4d4b55c39180329c4e379aa740039eed3",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "d4c8bf5635c4bedaf2470761ced1f502b2d5434e",
                    "status": "affected",
                    "version": "bfd4a664ddfbe12f008efb0b0ab6bf25a8ab2538",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "c29335612ff44df979678a38e1f55c62004f421c",
                    "status": "affected",
                    "version": "bb17d110cbf270d5247a6e261c5ad50e362d1675",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "d7bd416d35121c95fe47330e09a5c04adbc5f928",
                    "status": "affected",
                    "version": "bb17d110cbf270d5247a6e261c5ad50e362d1675",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/rpmsg/rpmsg_core.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.19"
                  },
                  {
                    "lessThan": "5.19",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.19.*",
                    "status": "unaffected",
                    "version": "5.19.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "6.0",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "configurations": [
          {
            "nodes": [
              {
                "cpeMatch": [
                  {
                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                    "matchCriteriaId": "A1A2A5A5-4598-4D7E-BA07-4660398D6C8F",
                    "versionEndExcluding": "5.19.2",
                    "versionStartIncluding": "5.19",
                    "vulnerable": true
                  }
                ],
                "negate": false,
                "operator": "OR"
              }
            ]
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nrpmsg: Fix possible refcount leak in rpmsg_register_device_override()\n\nrpmsg_register_device_override need to call put_device to free vch when\ndriver_set_override fails.\n\nFix this by adding a put_device() to the error path."
          },
          {
            "lang": "es",
            "value": "En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: rpmsg: Se corrige una posible fuga de recuento en rpmsg_register_device_override(). rpmsg_register_device_override necesita llamar a put_device para liberar vch cuando driver_set_override falla. Se soluciona a\u00f1adiendo put_device() a la ruta de error."
          }
        ],
        "id": "CVE-2022-50119",
        "lastModified": "2026-06-17T05:22:47.973",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "LOCAL",
                "availabilityImpact": "HIGH",
                "baseScore": 5.5,
                "baseSeverity": "MEDIUM",
                "confidentialityImpact": "NONE",
                "integrityImpact": "NONE",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 1.8,
              "impactScore": 3.6,
              "source": "nvd@nist.gov",
              "type": "Primary"
            }
          ]
        },
        "published": "2025-06-18T11:15:41.573",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/01e6885b75e25a2dd0726455ef18ef9ce5e7dc87"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/280ae5a028ef5d14ef9277746a3026a30aaebe4f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/3fdd5b2bb09fc2b5bf3504778f51c89bb48c097f"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/c29335612ff44df979678a38e1f55c62004f421c"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/c449b28e437d18ae807479c4ac6b69d87b287c79"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/d4c8bf5635c4bedaf2470761ced1f502b2d5434e"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "tags": [
              "Patch"
            ],
            "url": "https://git.kernel.org/stable/c/d7bd416d35121c95fe47330e09a5c04adbc5f928"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Analyzed",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "NVD-CWE-Other"
              }
            ],
            "source": "nvd@nist.gov",
            "type": "Primary"
          }
        ]
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-06-29T21:39:48+00:00",
      "cve": "CVE-2022-50119",
      "id": "CVE-2022-50119",
      "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: rpmsg: Fix possible refcount leak in rpmsg_register_device_override()",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-50119.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-08-29T02:23:07Z",
      "cve": "CVE-2022-50119",
      "id": "CVE-2022-50119",
      "initial_release_date": "2025-06-19T03:41:15Z",
      "product_status:known_not_affected": "509",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2022-50119",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2022-50119.json",
      "version": "9"
    }
  }
}



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…