Skip to content
OpenAdvisories
Unscored CVE-2020-36323 EUVD-2020-23862GHSA-9v8g-q8xx-7374

In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be expose…

Published Apr 14, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Description

In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rustc 1.53.0+dfsg1-1 —
Debian 13 rustc 1.53.0+dfsg1-1 —
Debian 12 rustc 1.53.0+dfsg1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS rustc 1.53.0+dfsg1+llvm-4ubuntu1 —
Ubuntu 20.04 LTS rustc 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS rustc No fix yet —
Ubuntu Pro 14.04 LTS rustc No fix yet —
ReleasePackageFixed inAdvisory
RHEL 8 rls +13 1.52.1-1.module+el8.4.0+11282+0729bac9 RHSA-2021:3063
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Devtools 2021 rust-toolset-1.52 +2 1.52.1-1.el7_9 RHSA-2021:3042
Red Hat Devtools 2021 rust-toolset-1.52-rls +12 1.52.1-2.el7_9 RHSA-2021:3042

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 rust +1 1.52.1-1.module+el8.4.0+641+ca238f88 RLSA-2021:3063
ReleasePackageFixed inAdvisory
Alpine v3.24 rust +1 1.51.0-r2 —
Alpine v3.23 rust 1.51.0-r2 —
Alpine v3.22 rust 1.51.0-r2 —
Alpine v3.21 rust 1.51.0-r2 —
Alpine v3.20 rust 1.51.0-r2 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 rust 1.51.0-r2 —
Alpine v3.18 rust 1.51.0-r2 —
Alpine v3.17 rust 1.51.0-r2 —
Alpine v3.16 rust 1.51.0-r2 —
Alpine v3.15 rust 1.51.0-r2 —
Alpine v3.14 rust 1.51.0-r2 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 rls +11 1.56.1-1.amzn2.0.1 ALAS2-2022-1816

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 rls +13 1.52.1-1.module+el8.4.0+20287+5ada6442 ELSA-2021-3063

Advisories 5

References