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

7 affected componentsFixes available
Linux Kernel
Linux Linux kernel>=5.18<5.19.17
Linux Linux kernel>=6.0<6.0.3
debian/linux<6.0.3-1
6.0.3-1
debian/linux<6.0.3-1
6.0.3-1
debian/linux<6.0.3-1
6.0.3-1
debian/linux
6.0.3-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.0.3-1
  2. Compensating control

    Change rpmsg_chrdev_eptdev_destroy() so it does not destroy the default endpoint; leave its release to rpmsg_dev_remove() in rpmsg_core, consistent with rpmsg_eptdev_release().

Event History

Oct 1, 2025
CVE Published
via MITRE·11:41 AM
Data Sourced
via MITRE·11:41 AM
Description
Data Sourced
via Red Hat·12:04 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·12:15 PM
Description
Data Sourced
via OSV·12:15 PM
DescriptionSeverityAffected Software
Dec 11, 2025
Data Sourced
via NVD·06:24 PM
RemedySeverityWeaknessAffected Software
Jan 14, 2026
Updated
via NVD·06:16 PM
SeverityWeakness
Aug 4, 2026
Data Sourced
via MITRE·09:09 AM
Severity

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