logo

CVE-2021-26306 raw-cpuid

Package

Manager: cargo
Name: raw-cpuid
Vulnerable Version: >=0 <9.0.0

Severity

Level: High

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

EPSS: 0.00389 pctl0.59205

Details

Soundness issue in raw-cpuid 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)].

Metadata

Created: 2021-08-25T20:53:10Z
Modified: 2023-06-13T20:30:27Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-hvqc-pc78-x9wh/GHSA-hvqc-pc78-x9wh.json
CWE IDs: ["CWE-198", "CWE-400"]
Alternative ID: GHSA-hvqc-pc78-x9wh
Finding: F113
Auto approve: 1