Bugzilla – Bug 1184598
VUL-0: CVE-2021-28876: rust: panic safety issue in the Zip implementation
Last modified: 2022-01-21 12:53:48 UTC
CVE-2021-28876 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. References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-28876 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28876 https://github.com/rust-lang/rust/issues/81740 https://github.com/rust-lang/rust/pull/81741
tracking as affected: - SUSE:SLE-15:Update/rust - SUSE:SLE-15-SP1:Update/rust also still a problem in openSUSE:Factory
Created attachment 848243 [details] QA reproducer > rustc CVE-2021-28876.rs && ./CVE-2021-28876 thread 'main' panicked at 'explicit panic', CVE-2021-28876.rs:42:21 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace [CVE-2021-28876.rs:49] ptr1 = 0x00007fff1dc88398 [CVE-2021-28876.rs:49] ptr2 = 0x00007fff1dc88398
also does not affect any supported version anymore, closing