~ / search / GHSA-hvqc-pc78-x9wh

GHSA-hvqc-pc78-x9wh

Soundness issue in raw-cpuid

Source: GitHub Advisory Database (reviewed) High CVE-2021-26306

Packages

EcosystemPackageAffectedFixed in
crates.io raw-cpuid < 9.0.0 9.0.0

Details

As written in the advisory (Markdown source, shown as plain text).

VendorInfo::as_string(), SoCVendorBrand::as_string(), and ExtendedFunctionInfo::processor_brand_string() construct byte slices using std::slice::from_raw_parts(), with data coming from #[repr(Rust)] structs. This is always undefined behavior. This flaw has been fixed in v9.0.0, by making the relevant structs #[repr(C)].

References

External links from the advisory. They lead to third-party sites.