CVE-2021-26958 Memory corruption in n/a
A soundness violation in the Rust xcb crate allows memory corruption via unsafe transmutation, potentially leading to code execution or crashes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-26958?
CVE-2021-26958 is a high-severity memory corruption vulnerability in n/a, published on 9 Feb 2021. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
An issue was discovered in the xcb crate through 2021-02-04 for Rust. It has a soundness violation because transmutation to the wrong type can happen after xcb::base::cast_event uses std::mem::transmute to return a reference to an arbitrary type.
Weakness: CWE-252
Which versions are affected by CVE-2021-26958?
It affects 1 product.
Products include Xcb Project Xcb.
How do I fix CVE-2021-26958?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-26958 being exploited?
There is no known exploitation of CVE-2021-26958 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2021-26958, UBUNTU-CVE-2021-26958.