Breaking News: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2022-50421

kernel: rpmsg: char: Avoid double destroy of default endpoint

Overview

Published
1 Oct 2025
Modified
17 Jun 2026
High CVE
0 Registry packages
83 OS packages
4 Linux distributions
Yes Fix available

Description

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

rpmsg: char: Avoid double destroy of default endpoint

The rpmsg_dev_remove() in rpmsg_core is the place for releasing
this default endpoint.

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

refcount_t: underflow; use-after-free.

Call trace:
 refcount_warn_saturate+0xf8/0x150
 virtio_rpmsg_destroy_ept+0xd4/0xec
 rpmsg_dev_remove+0x60/0x70

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

Source: OX vulnerability database

Severity

7.8 · HIGH

CVSS 3.1 base score, scored by NVD.

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness: CWE-416

Affected packages · 0

No registry package. This ID affects operating system packages only.

Operating systems · 8 fixes

Red Hat 1 release · 2 packages

affected 1 fixed 1
kernel-rt kernel
Red Hat fixes for CVE-2022-50421
ReleasePackageFixed inAdvisory
9 kernel-rt +20 affected —
9 kernel +73 0:5.14.0-570.12.1.el9_6 RHSA-2025:6966

debian 3 releases · 1 package

fixed 3
linux
debian fixes for CVE-2022-50421
ReleasePackageFixed in
12 linux 6.0.3-1
13 linux 6.0.3-1
14 linux 6.0.3-1

echo 1 release · 1 package

fixed 1
linux
echo fixes for CVE-2022-50421
ReleasePackageFixed in
linux 6.0.3-1

root.io debian 2 releases · 1 package

fixed 2
rootio-linux
root.io debian fixes for CVE-2022-50421
ReleasePackageFixed in
12 rootio-linux 6.0.3-1
13 rootio-linux 6.0.3-1

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.