{"id":"CVE-2022-50421","published":"2025-10-01T11:41:54Z","modified":"2026-08-05T08:58:44Z","title":"rpmsg: char: Avoid double destroy of default endpoint","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nrpmsg: char: Avoid double destroy of default endpoint\n\nThe rpmsg_dev_remove() in rpmsg_core is the place for releasing\nthis default endpoint.\n\nSo need to avoid destroying the default endpoint in\nrpmsg_chrdev_eptdev_destroy(), this should be the same as\nrpmsg_eptdev_release(). Otherwise there will be double destroy\nissue that ept->refcount report warning:\n\nrefcount_t: underflow; use-after-free.\n\nCall trace:\n refcount_warn_saturate+0xf8/0x150\n virtio_rpmsg_destroy_ept+0xd4/0xec\n rpmsg_dev_remove+0x60/0x70\n\nThe issue can be reproduced by stopping remoteproc before\nclosing the /dev/rpmsgX.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00161,"percentile":0.05399,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/ef828a39d6a7028836eaf37df3ad568c8c2dd6f9","tags":[]},{"url":"https://git.kernel.org/stable/c/3f20ef7a845c2c8d7ec82ecffa20d95cab5ecfeb","tags":[]},{"url":"https://git.kernel.org/stable/c/467233a4ac29b215d492843d067a9f091e6bf0c5","tags":[]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":1.08},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= bea9b79c2d10fecf7bfa26e212ecefe61d232e39, < ef828a39d6a7028836eaf37df3ad568c8c2dd6f9",">= bea9b79c2d10fecf7bfa26e212ecefe61d232e39, < 3f20ef7a845c2c8d7ec82ecffa20d95cab5ecfeb",">= bea9b79c2d10fecf7bfa26e212ecefe61d232e39, < 467233a4ac29b215d492843d067a9f091e6bf0c5"]},{"vendor":"Linux","product":"Linux","versions":["5.18"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-14T17:39:44.735824Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-32867","exploited":false,"provenance":"source"}}