Kernel memory corruption via double-destroyed rpmsg endpoint
Published Oct 1, 2025 · Updated Oct 1, 2025
Use-after-free in Linux kernel rpmsg character devices allows local users to corrupt kernel memory during endpoint teardown. rpmsg_chrdev_eptdev_destroy() destroys a default endpoint that rpmsg_dev_remove() then destroys again, underflowing its reference count and accessing freed memory. The path requires an open /dev/rpmsgX default endpoint followed by remoteproc shutdown or equivalent device removal; triggering it can crash the kernel or support control-flow hijacking.
Summary
What happened
Use-after-free in Linux kernel rpmsg character devices allows local users to corrupt kernel memory during endpoint teardown. rpmsg_chrdev_eptdev_destroy() destroys a default endpoint that rpmsg_dev_remove() then destroys again, underflowing its reference count and accessing freed memory. The path requires an open /dev/rpmsgX default endpoint followed by remoteproc shutdown or equivalent device removal; triggering it can crash the kernel or support control-flow hijacking.
The record
- CVE
- CVE-2022-50421
- Published
- Oct 1, 2025
- Updated
- Oct 1, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Oct 1, 2025CVE publishedPublication date reported by the CVE source.
- Oct 1, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=5.18
- Affected versionversion=bea9b79c2d10fecf7bfa26e212ecefe61d232e39 <3f20ef7a845c2c8d7ec82ecffa20d95cab5ecfeb
- Affected versionversion=bea9b79c2d10fecf7bfa26e212ecefe61d232e39 <467233a4ac29b215d492843d067a9f091e6bf0c5
- Affected versionversion=bea9b79c2d10fecf7bfa26e212ecefe61d232e39 <ef828a39d6a7028836eaf37df3ad568c8c2dd6f9
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo