# CVE-2021-29922: rustfmt: Rust Toolset provides the Rust programming language compiler rustc, the cargo build tool and dependency manager, and...

CVE-2021-29922 is fixed in 19 products on 1 platform, first by libstd-rust-1.53 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1, released August 7, 2021. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-29922
- Priority: High
- CVSS: 9.1 (Moderate)
- EPSS: 0.0245
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Aug 7, 2021

## Description

Rust Toolset provides the Rust programming language compiler rustc, the cargo build tool and dependency manager, and required libraries.   The following packages have been upgraded to a later upstream version: rust (1.54.0). (BZ#1945805)  Security Fix(es):  * rust: incorrect parsing of extraneous zero characters at the beginning of an IP address string (CVE-2021-29922)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.  Additional Changes:  For detailed information on changes in this release, see the Red Hat Enterprise Linux 8.5 Release Notes linked from the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | cargo RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | cargo ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | cargo-doc RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | cargo-doc ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | clippy RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | clippy ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | libstd-rust-1.53 Ubuntu 20.04 LTS (focal) | 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1 | [libstd-rust-1.53 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libstd-rust-1.53-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1.md) | Aug 7, 2021 |
| Linux | libstd-rust-1.53 Ubuntu 22.04.1 LTS (jammy) | 1.53.0+dfsg1+llvm-4ubuntu1 | [libstd-rust-1.53 1.53.0+dfsg1+llvm-4ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libstd-rust-1.53-1.53.0-dfsg1-llvm-4ubuntu1.md) | Aug 7, 2021 |
| Linux | rls RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rls ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust rocky 8 | 0:1.54.0-2.module+el8.5.0+678+cf7bc64b | [RLSA-2021:4270](https://patchblox.com/security/data/fix/linux/rlsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-all Ubuntu 20.04 LTS (focal) | 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1 | [rust-all 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-rust-all-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1.md) | Aug 7, 2021 |
| Linux | rust-all Ubuntu 22.04.1 LTS (jammy) | 1.53.0+dfsg1+llvm-4ubuntu1 | [rust-all 1.53.0+dfsg1+llvm-4ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-rust-all-1.53.0-dfsg1-llvm-4ubuntu1.md) | Aug 7, 2021 |
| Linux | rust-analysis RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-analysis ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust-clippy Ubuntu 20.04 LTS (focal) | 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1 | [rust-clippy 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-rust-clippy-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1.md) | Aug 7, 2021 |
| Linux | rust-clippy Ubuntu 22.04.1 LTS (jammy) | 1.53.0+dfsg1+llvm-4ubuntu1 | [rust-clippy 1.53.0+dfsg1+llvm-4ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-rust-clippy-1.53.0-dfsg1-llvm-4ubuntu1.md) | Aug 7, 2021 |
| Linux | rust-debugger-common RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-debugger-common ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust-doc RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-doc ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust-gdb RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-gdb Ubuntu 20.04 LTS (focal) | 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1 | [rust-gdb 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-rust-gdb-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1.md) | Aug 7, 2021 |
| Linux | rust-gdb Ubuntu 22.04.1 LTS (jammy) | 1.53.0+dfsg1+llvm-4ubuntu1 | [rust-gdb 1.53.0+dfsg1+llvm-4ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-rust-gdb-1.53.0-dfsg1-llvm-4ubuntu1.md) | Aug 7, 2021 |
| Linux | rust-gdb ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust-lldb RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-lldb Ubuntu 20.04 LTS (focal) | 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1 | [rust-lldb 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-rust-lldb-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1.md) | Aug 7, 2021 |
| Linux | rust-lldb Ubuntu 22.04.1 LTS (jammy) | 1.53.0+dfsg1+llvm-4ubuntu1 | [rust-lldb 1.53.0+dfsg1+llvm-4ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-rust-lldb-1.53.0-dfsg1-llvm-4ubuntu1.md) | Aug 7, 2021 |
| Linux | rust-lldb ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust-src RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-src Ubuntu 20.04 LTS (focal) | 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1 | [rust-src 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-rust-src-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1.md) | Aug 7, 2021 |
| Linux | rust-src Ubuntu 22.04.1 LTS (jammy) | 1.53.0+dfsg1+llvm-4ubuntu1 | [rust-src 1.53.0+dfsg1+llvm-4ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-rust-src-1.53.0-dfsg1-llvm-4ubuntu1.md) | Aug 7, 2021 |
| Linux | rust-src ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust-std-static RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-std-static ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust-std-static-wasm32-unknown-unknown RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-std-static-wasm32-unknown-unknown ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust-toolset RHEL 8 | 0:1.54.0-1.module+el8.5.0+12195+effd8a03 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-toolset almalinux 8 | 1.54.0-1.module_el8.5.0+2599+d655d86c | [ALSA-2021:4270](https://patchblox.com/security/data/fix/linux/alsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rust-toolset ol 8 | 0:1.54.0-1.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |
| Linux | rust-toolset rocky 8 | 0:1.54.0-1.module+el8.5.0+678+cf7bc64b | [RLSA-2021:4270](https://patchblox.com/security/data/fix/linux/rlsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rustc Ubuntu 20.04 LTS (focal) | 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1 | [rustc 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-rustc-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1.md) | Aug 7, 2021 |
| Linux | rustc Ubuntu 22.04.1 LTS (jammy) | 1.53.0+dfsg1+llvm-4ubuntu1 | [rustc 1.53.0+dfsg1+llvm-4ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-rustc-1.53.0-dfsg1-llvm-4ubuntu1.md) | Aug 7, 2021 |
| Linux | rustfmt RHEL 8 | 0:1.54.0-2.module+el8.5.0+12254+dc27bae9 | [RHSA-2021:4270](https://patchblox.com/security/data/fix/linux/rhsa-2021-4270.md) | Nov 9, 2021 |
| Linux | rustfmt Ubuntu 20.04 LTS (focal) | 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1 | [rustfmt 1.53.0+dfsg1+llvm-4ubuntu1~20.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-rustfmt-1.53.0-dfsg1-llvm-4ubuntu1-20.04.1.md) | Aug 7, 2021 |
| Linux | rustfmt Ubuntu 22.04.1 LTS (jammy) | 1.53.0+dfsg1+llvm-4ubuntu1 | [rustfmt 1.53.0+dfsg1+llvm-4ubuntu1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-rustfmt-1.53.0-dfsg1-llvm-4ubuntu1.md) | Aug 7, 2021 |
| Linux | rustfmt ol 8 | 0:1.54.0-2.module+el8.5.0+20381+6e029bfc | [ELSA-2021-4270](https://patchblox.com/security/data/fix/linux/elsa-2021-4270.md) | Nov 16, 2021 |

---

Data as of 2026-11-08T19:12:23Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
