Skip to content

CVE-2021-26958 Unchecked Return Value in xcb

HighCVSS 8.8 EPSS 1.6%
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 transmutation to the wrong type can happen after xcb::base::cast_event uses std::mem::transmute to return a reference to an arbitrary type.

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