GHSA-hvqc-pc78-x9wh

Suggest an improvement
Source
https://github.com/advisories/GHSA-hvqc-pc78-x9wh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-hvqc-pc78-x9wh/GHSA-hvqc-pc78-x9wh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-hvqc-pc78-x9wh
Aliases
Published
2021-08-25T20:53:10Z
Modified
2023-11-08T04:05:20.849093Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Soundness issue in raw-cpuid
Details

VendorInfo::asstring(), SoCVendorBrand::asstring(), and ExtendedFunctionInfo::processorbrandstring() construct byte slices using std::slice::fromrawparts(), 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

Affected packages

crates.io / raw-cpuid

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
9.0.0