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:20Z
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::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)].

Database specific
{
    "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"
}
References

Affected packages

crates.io / raw-cpuid

Package

Name
raw-cpuid
View open source insights on deps.dev
Purl
pkg:cargo/raw-cpuid

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-hvqc-pc78-x9wh/GHSA-hvqc-pc78-x9wh.json"