Skip to content

GHSA-j8cj-hw74-64jv Hive has Double-free and Use After Free Vulnerabilities

Unknown
Published
Updated
Exploit status
No public exploit known

Description

Drop implementation for Hive did perform free, but so did Hive::close, which, at the end of the scope performed Drop, therefore triggering double-free.

Additionally, function Hive::from_handle was not marked as unsafe, making it, in combination with as_handle easy to clone and trigger double-free in safe code or triggering UB when using invalid pointer.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io hivex(crates.io) = 0.2.0; >= 0.0.0-0, < 0.2.1; >= 0.2.0, < 0.2.1 0.2.1 Fixed

Affected products

ProductAffected versionsFixed in
crates.io hivex(crates.io) >= 0.2.0, < 0.2.1 0.2.1
crates.io hivex(crates.io) = 0.2.0 No fix listed
crates.io hivex(crates.io) >= 0.0.0-0, < 0.2.1 0.2.1

References