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

Severity:high
Title:Binary diff: Heap-based buffer overflow
Date:03/19/2020
Bugs: #701848
ID:202003-44

Synopsis

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

Background

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

Affected packages

Package Vulnerable Unaffected Architecture(s)
dev-util/bsdiff < 4.3-r4 >= 4.3-r4 All supported architectures

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

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-202003-44.xml

Concerns?

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!