{"id":"CVE-2022-50119","summary":"rpmsg: Fix possible refcount leak in rpmsg_register_device_override()","details":"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.","modified":"2026-04-02T08:28:14.486968Z","published":"2025-06-18T11:02:49.264Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50119.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/01e6885b75e25a2dd0726455ef18ef9ce5e7dc87"},{"type":"WEB","url":"https://git.kernel.org/stable/c/280ae5a028ef5d14ef9277746a3026a30aaebe4f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3fdd5b2bb09fc2b5bf3504778f51c89bb48c097f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c29335612ff44df979678a38e1f55c62004f421c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c449b28e437d18ae807479c4ac6b69d87b287c79"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4c8bf5635c4bedaf2470761ced1f502b2d5434e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d7bd416d35121c95fe47330e09a5c04adbc5f928"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50119.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50119"},{"type":"PACKAGE","url":"https://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":"b585daa34a0a852e6d5e553132b411b6a0192d27"},{"fixed":"280ae5a028ef5d14ef9277746a3026a30aaebe4f"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"c14c6676ad5b78950a45121a7ee6cfb85778e71f"},{"fixed":"c449b28e437d18ae807479c4ac6b69d87b287c79"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"3d14785980571ebb313a976e589b9d3563adc704"},{"fixed":"01e6885b75e25a2dd0726455ef18ef9ce5e7dc87"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"5f1bb9f4d4b55c39180329c4e379aa740039eed3"},{"fixed":"3fdd5b2bb09fc2b5bf3504778f51c89bb48c097f"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bfd4a664ddfbe12f008efb0b0ab6bf25a8ab2538"},{"fixed":"d4c8bf5635c4bedaf2470761ced1f502b2d5434e"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"bb17d110cbf270d5247a6e261c5ad50e362d1675"},{"fixed":"c29335612ff44df979678a38e1f55c62004f421c"},{"fixed":"d7bd416d35121c95fe47330e09a5c04adbc5f928"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50119.json"}}],"schema_version":"1.7.5"}