Skip to content

CVE-2021-26955 Unchecked Return Value in xcb

CriticalCVSS 9.8 EPSS 1.7%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

6 packages: 5 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/rust-xcb(Ubuntu 22.04) = 0.9.0-2; All versions No fix listed No fix yet
crates.io xcb(crates.io) < 1.0.0 1.0.0 Fixed
debian/rust-xcb(Debian 12) < 1.1.1-1 1.1.1-1 Fixed
debian/rust-xcb(Debian 13) < 1.1.1-1 1.1.1-1 Fixed
debian/rust-xcb(Debian 14) < 1.1.1-1 1.1.1-1 Fixed
xcb project xcb <= 2021-02-04 after 2021-02-04 Fixed

Affected products

ProductAffected versionsFixed in
crates.io xcb(crates.io) < 1.0.0 1.0.0
debian/rust-xcb(Debian:12) < 1.1.1-1 1.1.1-1
debian/rust-xcb(Debian:13) < 1.1.1-1 1.1.1-1
debian/rust-xcb(Debian:14) < 1.1.1-1 1.1.1-1
xcb project xcb <= 2021-02-04 No fix listed
ubuntu/rust-xcb(Ubuntu:22.04) All versions No fix listed
ubuntu/rust-xcb(Ubuntu:22.04) = 0.9.0-2 No fix listed

References