portage-ng / portage / dev-util / bsdiff / 4.3-r4
portage-ng glsa
1 advisory reference dev-util/bsdiff · none place version 4.3-r4 in a vulnerable range
▸ GLSA 202003-44 Binary diff: Heap-based buffer overflow this version unaffected high local, remote 2020-03-19

A heap-based buffer overflow in Binary diff might allow remote attackers to execute arbitrary code.

Announced
2020-03-19
Revised
2020-03-19
Access
local, remote
Bugs
#701848
Advisory
https://security.gentoo.org/glsa/202003-44

Affected packages

PackageArchVulnerableUnaffected
dev-util/bsdiff*< 4.3-r4>= 4.3-r4

Background

bsdiff and bspatch are tools for building and applying patches to binary files.

Description

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.

Resolution

All Binary diff users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-util/bsdiff-4.3-r4"

References