Advisory

GHSA-hvqc-pc78-x9wh

Also known as: CVE-2021-26306, CVE-2021-26307, GHSA-jrf8-cmgg-gv2m, RUSTSEC-2021-0013

Summary

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:53 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

raw-cpuid

crates.io · All systems

Affected

  • introduced 0, fixed 9.0.0 (semver)

Fixed versions

9.0.0

Fix

  • Fixed version 9.0.0
    cargo update -p raw-cpuid --precise 9.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences