CVE-2022-50421: rpmsg: char: Avoid double destroy of default endpoint

Published Oct 1, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

rpmsg: char: Avoid double destroy of default endpoint

The rpmsgdevremove() in rpmsgcore is the place for releasing this default endpoint.

So need to avoid destroying the default endpoint in rpmsgchrdeveptdevdestroy(), this should be the same as rpmsgeptdevrelease(). Otherwise there will be double destroy issue that ept->refcount report warning:

refcountt: underflow; use-after-free.

Call trace: refcountwarnsaturate+0xf8/0x150 virtiorpmsgdestroyept+0xd4/0xec rpmsgdevremove+0x60/0x70

The issue can be reproduced by stopping remoteproc before closing the /dev/rpmsgX.

Affected Software

3 affected components
Linux Kernel
Linux Linux kernel>=5.18<5.19.17
Linux Linux kernel>=6.0<6.0.3

Event History

Oct 1, 2025
CVE Published
via MITRE·11:41 AM
Data Sourced
via MITRE·11:41 AM
DescriptionSeverity
Data Sourced
via NVD·12:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50421?

CVE-2022-50421 has been rated as a moderate severity vulnerability due to its potential impact on system stability.

2

How do I fix CVE-2022-50421?

To fix CVE-2022-50421, update the Linux kernel to a version that is not affected, specifically 5.19.17 and later, or 6.0.3 and later.

3

What software is affected by CVE-2022-50421?

CVE-2022-50421 affects versions of the Linux Kernel between 5.18 and 5.19.17, and between 6.0 and 6.0.3.

4

What is the impact of CVE-2022-50421?

The impact of CVE-2022-50421 includes potential system crashes and unexpected behavior due to the improper handling of default endpoints.

5

Was CVE-2022-50421 publicly disclosed?

Yes, CVE-2022-50421 was publicly disclosed in the Linux kernel's stable release notes.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203