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)].
{
"cwe_ids": [
"CWE-198",
"CWE-400"
],
"github_reviewed": true,
"github_reviewed_at": "2021-08-19T18:02:19Z",
"nvd_published_at": "2021-01-29T03:15:00Z",
"severity": "HIGH"
}