CVE-2022-50119

rpmsg: Fix possible refcount leak in rpmsg_register_device_override()

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
May 11, 2026
Reserved
Jun 18, 2025

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b585daa34a0a852e6d5e553132b411b6a0192d27 to before 280ae5a028ef5d14ef9277746a3026a30aaebe4fAffected
  • c14c6676ad5b78950a45121a7ee6cfb85778e71f to before c449b28e437d18ae807479c4ac6b69d87b287c79Affected
  • 3d14785980571ebb313a976e589b9d3563adc704 to before 01e6885b75e25a2dd0726455ef18ef9ce5e7dc87Affected
  • 5f1bb9f4d4b55c39180329c4e379aa740039eed3 to before 3fdd5b2bb09fc2b5bf3504778f51c89bb48c097fAffected
  • bfd4a664ddfbe12f008efb0b0ab6bf25a8ab2538 to before d4c8bf5635c4bedaf2470761ced1f502b2d5434eAffected
  • bb17d110cbf270d5247a6e261c5ad50e362d1675 to before c29335612ff44df979678a38e1f55c62004f421cAffected
  • bb17d110cbf270d5247a6e261c5ad50e362d1675 to before d7bd416d35121c95fe47330e09a5c04adbc5f928Affected
LinuxLinux
  • 5.19Affected
  • before 5.19Not affected
  • 5.19.2 through 5.19.*Not affected
  • 6.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.