Skip to content
OpenAdvisories
High · 7.5 CVE-2021-45681 EUVD-2022-0715GHSA-9rg7-3j4f-cf4xGHSA-w4cc-pc2h-whcjRUSTSEC-2021-0083

QueryInterface should call AddRef before returning pointer

Published Dec 26, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Description

An issue was discovered in the derive-com-impl crate before 0.1.2 for Rust. An invalid reference (and memory corruption) can occur because AddRef might not be called before returning a pointer.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io derive-com-impl < 0.1.2 0.1.2 GHSA-9rg7-3j4f-cf4x
crates.io derive-com-impl all versions — GHSA-w4cc-pc2h-whcj
crates.io derive-com-impl >= 0.0.0-0, < 0.1.2 0.1.2 RUSTSEC-2021-0083

References