Advisory

GHSA-cx4j-fxr7-jxg8

Also known as: CVE-2021-25902, RUSTSEC-2021-0005

Summary

Double free in glsl-layout

Details

Affected versions of this crate did not guard against panic within the user-provided function f (2nd parameter of fn map_array), 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>.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 20:53 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

glsl-layout

crates.io · All systems

Affected

  • introduced 0, fixed 0.4.0 (semver)

Fixed versions

0.4.0

Fix

  • Fixed version 0.4.0
    cargo update -p glsl-layout --precise 0.4.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences