GLSA-202003-44 : Binary diff: Heap-based buffer overflow

high Nessus Plugin ID 134730

Synopsis

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

Description

The remote host is affected by the vulnerability described in GLSA-202003-44 (Binary diff: Heap-based buffer overflow)

It was discovered that the implementation of bspatch did not check for a negative value on numbers of bytes read from the diff and extra streams.
Impact :

A remote attacker could entice a user to apply a specially crafted patch using bspatch, possibly resulting in execution of arbitrary code with the privileges of the process or a Denial of Service condition.
Workaround :

There is no known workaround at this time.

Solution

All Binary diff users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-util/bsdiff-4.3-r4'

See Also

https://security.gentoo.org/glsa/202003-44

Plugin Details

Severity: High

ID: 134730

File Name: gentoo_GLSA-202003-44.nasl

Version: 1.2

Type: local

Published: 3/20/2020

Updated: 3/24/2020

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.3

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

Temporal Vector: E:U/RL:OF/RC:C

CVSS v3

Risk Factor: High

Base Score: 7.8

Temporal Score: 6.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:bsdiff, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Ease: No known exploits are available

Patch Publication Date: 3/19/2020

Vulnerability Publication Date: 7/22/2016

Reference Information

CVE: CVE-2014-9862

GLSA: 202003-44