<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd"> <glsa id="202003-44"> <title>Binary diff: Heap-based buffer overflow</title> <synopsis>A heap-based buffer overflow in Binary diff might allow remote attackers to execute arbitrary code. </synopsis> <product type="ebuild">bsdiff</product> <announced>2020-03-19</announced> <revised count="1">2020-03-19</revised> <bug>701848</bug> <access>local, remote</access> <affected> <package name="dev-util/bsdiff" auto="yes" arch="*"> <unaffected range="ge">4.3-r4</unaffected> <vulnerable range="lt">4.3-r4</vulnerable> </package> </affected> <background> <p>bsdiff and bspatch are tools for building and applying patches to binary files. </p> </background> <description> <p>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. </p> </description> <impact type="high"> <p>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. </p> </impact> <workaround> <p>There is no known workaround at this time.</p> </workaround> <resolution> <p>All Binary diff users should upgrade to the latest version:</p> <code> # emerge --sync # emerge --ask --oneshot --verbose ">=dev-util/bsdiff-4.3-r4" </code> </resolution> <references> <uri link="https://nvd.nist.gov/vuln/detail/CVE-2014-9862">CVE-2014-9862</uri> </references> <metadata tag="requester" timestamp="2020-03-19T18:34:43Z">whissi</metadata> <metadata tag="submitter" timestamp="2020-03-19T18:40:24Z">whissi</metadata> </glsa>