CVE-2021-26955 Memory corruption in n/a

Critical 9.8 Published Updated

A soundness violation in the Rust xcb crate allows attackers to trigger memory corruption or crashes by sending unvalidated bytes from an X server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-26955?

CVE-2021-26955 is a critical memory corruption vulnerability in n/a, published on 9 Feb 2021. An attacker can exploit it over the internet without logging in, 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 xcb::xproto::GetAtomNameReply::name() calls std::str::from_utf8_unchecked() on unvalidated bytes from an X server.

Weakness: CWE-252

Which versions are affected by CVE-2021-26955?

It affects 1 product.

Products include Xcb Project Xcb.

How do I fix CVE-2021-26955?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-26955 being exploited?

There is no known exploitation of CVE-2021-26955 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2021-26955, UBUNTU-CVE-2021-26955.

Is CVE-2021-26955 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free