VDB
Sign up
HIGH7.5

GHSA-hvqc-pc78-x9wh

Soundness issue in raw-cpuid

Details

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)].

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/raw-cpuid
Introduced in: 0Fixed in: 9.0.0

Upgrade raw-cpuid to 9.0.0 or newer (ecosystem crates.io).

References