CVEfocus › CVE database › CVE-2021-26958

CVE-2021-26958

CVSS 8.8 HighEPSS 1.6% (higher than 76% of CVEs)Published 2021-02-09Updated 2024-08-03Assigner: mitre

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.

What to do

Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04rust-xcbNot affected
vulnerable_code_not_present
Ubuntu 22.04rust-xcbWill not fix
the issue was addressed in version 1.0.0, which underwent a complete refactoring and a change in the api. Addressing the issue on versions <1.0.0 is likely to…
UBUNTU-CVE-2021-26958
Debian 14rust-xcbFixed1.1.1-1DEBIAN-CVE-2021-26958
Debian 13rust-xcbFixed1.1.1-1DEBIAN-CVE-2021-26958
Debian 12rust-xcbFixed1.1.1-1DEBIAN-CVE-2021-26958
crates.io libraryxcbFixed1.0.0GHSA-3cj3-jrrp-9rxf

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.