Name | CVE-2021-28877 |
Description | In the standard library in Rust before 1.51.0, the Zip implementation calls __iterator_get_unchecked() for the same index more than once when nested. This bug can lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 986803 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
rustc (PTS) | jessie, jessie (lts) | 1.34.2+dfsg1-1~deb8u1 | vulnerable |
| stretch (security), stretch (lts), stretch | 1.41.1+dfsg1-1~deb9u1 | vulnerable |
| buster | 1.41.1+dfsg1-1~deb10u1 | vulnerable |
| bullseye | 1.48.0+dfsg1-2 | vulnerable |
| bookworm | 1.63.0+dfsg1-2 | fixed |
| sid, trixie | 1.82.0+dfsg1-2 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
rustc | source | jessie | (unfixed) | end-of-life | | |
rustc | source | (unstable) | 1.53.0+dfsg1-1 | | | 986803 |
Notes
[bullseye] - rustc <no-dsa> (Minor issue)
[buster] - rustc <no-dsa> (Minor issue)
[stretch] - rustc <no-dsa> (Minor issue)
https://github.com/rust-lang/rust/pull/80670