CVE-2021-25902 Double free in glsl-layout

High 7.5 Published Updated

A double drop vulnerability in the glsl-layout Rust crate can cause a panic and denial of service when processing array maps.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-25902?

CVE-2021-25902 is a high-severity use after free vulnerability in n/a, published on 22 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in the glsl-layout crate before 0.4.0 for Rust. When a panic occurs, map_array can perform a double drop.

Which versions are affected by CVE-2021-25902?

3 open source packages ship an affected version, including glsl-layout. It affects 1 product.

PackageAffectedFixed in
glsl-layout crates.ioAll versions0.4.0
glsl-layout crates.ioAll versions0.4.0
glsl-layout crates.ioFrom 0.0.0-00.4.0

Products include Glsl-Layout Project Glsl-Layout.

How do I fix CVE-2021-25902?

Upgrade glsl-layout to 0.4.0 or later.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2021-25902 being exploited?

There is no known exploitation of CVE-2021-25902 in the wild and no public exploit code.

Sources

Also known as GHSA-cx4j-fxr7-jxg8, RUSTSEC-2021-0005.

Is CVE-2021-25902 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free