1. CVE archive
  2. 2018
  3. CVE-2018-20482

CVE-2018-20482

4.7 Medium severity CVSS v3.1 · source NVD CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H 4.7 – Medium

Description

GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which allows local users to cause a denial of service (infinite read loop in sparse_dump_region in sparse.c) by modifying a file that is supposed to be archived by a different user's process (e.g., a system backup running as root).

Affected products

VendorProductVersionPlatform
debian debian linux 8.0 –
debian debian linux 9.0 –
gnu tar <= 1.30 –
opensuse leap 15.0 –
All 20 Gnu Tar vulnerabilities

Vulnerability type

CWE-835 Loop with Unreachable Exit Condition

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

Impact on systems

ScopeImpact
Availability DoS: Resource Consumption (CPU), DoS: Resource Consumption (Memory), DoS: Amplification
An infinite loop will cause unexpected consumption of resources, such as CPU cycles or memory. The software's operation may slow down, or cause a long time to respond.

All 992 CWE-835 CVEs, with trend and prevention

Source: MITRE CWE catalog · cwe.mitre.org