High, CVSS 7.5crates.ioPublished
Double free in glsl-layout
CVE-2021-25902 · GHSA-cx4j-fxr7-jxg8
- Affected
- crates.io glsl-layout < 0.4.0
- Fixed in
- 0.4.0· Vendor fix available
- Issue
- Affected versions of this crate did not guard against panic within the user-provided function f (2nd parameter of fn maparray), and thus panic within f causes double drop of a single object. The flaw was corrected in the 0.4.0 release by wrapping the object vulnerable to a double drop within ManuallyDrop<T.
Recommended action: Upgrade to 0.4.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.