{ "schema_version": "1.4.0", "id": "GHSA-hvqc-pc78-x9wh", "modified": "2023-06-13T20:30:27Z", "published": "2021-08-25T20:53:10Z", "aliases": [ "CVE-2021-26306" ], "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.\nThis flaw has been fixed in v9.0.0, by making the relevant structs #[repr(C)].", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" } ], "affected": [ { "package": { "ecosystem": "crates.io", "name": "raw-cpuid" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "fixed": "9.0.0" } ] } ] } ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-26306" }, { "type": "WEB", "url": "https://github.com/gz/rust-cpuid/issues/40" }, { "type": "WEB", "url": "https://github.com/RustSec/advisory-db/pull/614" }, { "type": "PACKAGE", "url": "https://github.com/gz/rust-cpuid" }, { "type": "WEB", "url": "https://rustsec.org/advisories/RUSTSEC-2021-0013.html" } ], "database_specific": { "cwe_ids": [ "CWE-198", "CWE-400" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2021-08-19T18:02:19Z", "nvd_published_at": "2021-01-29T03:15:00Z" } }