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

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