Ubuntu 4.10 / 5.04 : bzip2 vulnerabilities (USN-127-1)

medium Nessus Plugin ID 20517
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

The remote Ubuntu host is missing one or more security-related patches.

Description

Imran Ghory discovered a race condition in the file permission restore code of bunzip2. While a user was decompressing a file, a local attacker with write permissions in the directory of that file could replace the target file with a hard link. This would cause bzip2 to restore the file permissions to the hard link target instead of to the bzip2 output file, which could be exploited to gain read or even write access to files of other users. (CAN-2005-0953)

Specially crafted bzip2 archives caused an infinite loop in the decompressor which resulted in an indefinitively large output file ('decompression bomb'). This could be exploited to a Denial of Service attack due to disk space exhaustion on systems which automatically process user-supplied bzip2 compressed files. (CAN-2005-1260).

Note that Tenable Network Security has extracted the preceding description block directly from the Ubuntu security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.

Solution

Update the affected bzip2, libbz2-1.0 and / or libbz2-dev packages.

Plugin Details

Severity: Medium

ID: 20517

File Name: ubuntu_USN-127-1.nasl

Version: 1.16

Type: local

Agent: unix

Published: 1/15/2006

Updated: 1/19/2021

Dependencies: ssh_get_info.nasl

Risk Information

VPR

Risk Factor: Medium

Score: 5.3

CVSS v2

Risk Factor: Medium

Base Score: 5

Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P

Vulnerability Information

CPE: p-cpe:/a:canonical:ubuntu_linux:bzip2, p-cpe:/a:canonical:ubuntu_linux:libbz2-1.0, p-cpe:/a:canonical:ubuntu_linux:libbz2-dev, cpe:/o:canonical:ubuntu_linux:4.10, cpe:/o:canonical:ubuntu_linux:5.04

Required KB Items: Host/cpu, Host/Ubuntu, Host/Ubuntu/release, Host/Debian/dpkg-l

Patch Publication Date: 5/17/2005

Reference Information

CVE: CVE-2005-0953, CVE-2005-1260

USN: 127-1