All reports
High

Soundness issue in raw-cpuid

Affected versions

Rust / Cargoraw-cpuid
Affected versions
< 9.0.0
Fixed version
9.0.0

Exploitation

CVE-2021-26306

Probability of exploitation in the next 30 days: 1.28%

FIRST EPSS · 2026-11-19

Description

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

Links