CVE-2021-28876 Memory corruption in n/a

Medium 5.3 Published Updated

A panic safety issue in the Rust standard library's Zip implementation can lead to memory safety violations, potentially allowing code execution or denial of service.

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-28876?

CVE-2021-28876 is a medium-severity memory corruption vulnerability in Fedoraproject Fedora, published on 11 Apr 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls __iterator_get_unchecked() more than once for the same index when the underlying iterator panics (in certain conditions). This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

Weakness: CWE-755

Which versions are affected by CVE-2021-28876?

It affects 2 products.

Products include Fedoraproject Fedora, Rust-Lang Rust.

How do I fix CVE-2021-28876?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-28876 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-28876, GHSA-f266-7p9x-6359, UBUNTU-CVE-2021-28876.

Is CVE-2021-28876 in your software?

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

Check your SBOMs for free