Gentoo: GLSA-202003-44: Binary diff: Heap-based buffer overflow
Summary
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.
Resolution
All Binary diff users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=dev-util/bsdiff-4.3-r4"
References
[ 1 ] CVE-2014-9862 https://nvd.nist.gov/vuln/detail/CVE-2014-9862
Availability
This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:
https://security.gentoo.org/glsa/202003-44
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.
Background
bsdiff and bspatch are tools for building and applying patches to binary files.
Affected Packages
------------------------------------------------------------------- Package / Vulnerable / Unaffected ------------------------------------------------------------------- 1 dev-util/bsdiff < 4.3-r4 >= 4.3-r4
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.