Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-26955 CVE-2021-26956CVE-2021-26957CVE-2021-26958EUVD-2021-1523GHSA-2xpg-3hx4-fm9rGHSA-3288-cwgw-ch86GHSA-3cj3-jrrp-9rxfGHSA-mp6r-fgw2-rxfxRUSTSEC-2021-0019

Out of bounds read in xcb

Published Feb 9, 2021 · Updated Aug 3, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-xcb 1.1.1-1 —
Debian 13 rust-xcb 1.1.1-1 —
Debian 12 rust-xcb 1.1.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS rust-xcb No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io xcb < 1.0.0 1.0.0 GHSA-2xpg-3hx4-fm9r
crates.io xcb >= 0.0.0-0, < 1.0.0 1.0.0 RUSTSEC-2021-0019

References