NetSight
critical9.8

CVE-2021-26956

Arbitrary return types in xcb

Impact

The function xcb::xproto::GetPropertyReply::value() returns a slice of type T where T is an unconstrained type parameter. The raw bytes received from the X11 server are interpreted as the requested type. The users of the xcb crate are advised to only call this function with the intended types. These are u8, u16, and u32. This issue is tracked here: https://github.com/rust-x-bindings/rust-xcb/issues/95

Affected packages

EcosystemPackageAffectedFixed in
rustxcb< 1.0.01.0.0

Affected products

VendorProductAffected versions
Xcb ProjectXcb
through 2021-02-04

Weakness classification

References