Advisory

RUSTSEC-2021-0005

Also known as: CVE-2021-25902, GHSA-cx4j-fxr7-jxg8

Summary

Double drop upon panic in 'fn map_array()'

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: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2021-01-10 12:00 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

glsl-layout

crates.io · All systems

Affected

  • introduced 0.0.0-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: RustSec Advisory Database · CC0-1.0

Sources & licences