CVE Vulnerabilities

CVE-2021-29482

Loop with Unreachable Exit Condition ('Infinite Loop')

Published: Apr 28, 2021 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

xz is a compression and decompression library focusing on the xz format completely written in Go. The function readUvarint used to read the xz container format may not terminate a loop provide malicous input. The problem has been fixed in release v0.5.8. As a workaround users can limit the size of the compressed file input to a reasonable size for their use case. The standard library had recently the same issue and got the CVE-2020-16845 allocated.

Weakness

The product contains an iteration or loop with an exit condition that cannot be reached, i.e., an infinite loop.

Affected Software

NameVendorStart VersionEnd Version
XzXz_project*0.5.8 (excluding)
OADP-1.0-RHEL-8RedHatoadp/oadp-velero-plugin-rhel8:1.0.1-5*
OpenShift Service Mesh 2.0RedHatservicemesh-0:2.0.9-3.el8*
Red Hat OpenStack Platform 16.2RedHatrhosp-rhel8-tech-preview/osp-director-operator:1.2.3-2*
RHEL-8-CNV-4.8RedHatcontainer-native-virtualization/vm-import-operator-rhel8:v4.8.0-18*
Golang-github-ulikunitz-xzUbuntudevel*
Golang-github-ulikunitz-xzUbuntuesm-apps/focal*
Golang-github-ulikunitz-xzUbuntuesm-apps/jammy*
Golang-github-ulikunitz-xzUbuntuesm-apps/noble*
Golang-github-ulikunitz-xzUbuntufocal*
Golang-github-ulikunitz-xzUbuntugroovy*
Golang-github-ulikunitz-xzUbuntuhirsute*
Golang-github-ulikunitz-xzUbuntuimpish*
Golang-github-ulikunitz-xzUbuntujammy*
Golang-github-ulikunitz-xzUbuntukinetic*
Golang-github-ulikunitz-xzUbuntulunar*
Golang-github-ulikunitz-xzUbuntumantic*
Golang-github-ulikunitz-xzUbuntunoble*
Golang-github-ulikunitz-xzUbuntuoracular*
Golang-github-ulikunitz-xzUbuntuplucky*
Golang-github-ulikunitz-xzUbuntuquesting*
Golang-github-ulikunitz-xzUbuntutrusty*
Golang-github-ulikunitz-xzUbuntuupstream*

References