In the standard library in Rust before 1.49.0, String::retain() function has a panic safety problem. It allows creation of a non-UTF-8 Rust string when the provided closure panics. This bug could result in a memory safety violation when other string APIs assume that UTF-8 encoding is used on the same string. Reference: https://github.com/rust-lang/rust/issues/78498 Upstream patch: https://github.com/rust-lang/rust/pull/78499
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2021:1935 https://access.redhat.com/errata/RHSA-2021:1935
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2020-36317
This issue has been addressed in the following products: Red Hat Developer Tools Via RHSA-2021:2243 https://access.redhat.com/errata/RHSA-2021:2243