summaryrefslogtreecommitdiff
blob: ba9128df72c2eabf4f56f826a23cfadd9d11eec6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="201607-13">
  <title>libbsd: Arbitrary code execution</title>
  <synopsis>A buffer overflow in libbsd might allow remote attackers to execute
    arbitrary code.
  </synopsis>
  <product type="ebuild"/>
  <announced>2016-07-20</announced>
  <revised count="1">2016-07-20</revised>
  <bug>573160</bug>
  <access>remote</access>
  <affected>
    <package name="dev-libs/libbsd" auto="yes" arch="*">
      <unaffected range="ge">0.8.2</unaffected>
      <vulnerable range="lt">0.8.2</vulnerable>
    </package>
  </affected>
  <background>
    <p>This library provides useful functions commonly found on BSD systems,
      and lacking on others like GNU systems, thus making it easier to port
      projects with strong BSD origins, without needing to embed the same code
      over and over again on each project.
    </p>
  </background>
  <description>
    <p>libbsd contains a buffer overflow in the fgetwln() function. An if
      statement, which is responsible for checking the necessity to reallocate
      memory in the target buffer, is off by one therefore an out of bounds
      write occurs.
    </p>
  </description>
  <impact type="normal">
    <p>Remote attackers could potentially execute arbitrary code with the
      privileges of the process.
    </p>
  </impact>
  <workaround>
    <p>There is no known workaround at this time.</p>
  </workaround>
  <resolution>
    <p>All libbsd users should upgrade to the latest version:</p>
    
    <code>
      # emerge --sync
      # emerge --ask --verbose --oneshot "&gt;=dev-libs/libbsd-0.8.2"
    </code>
  </resolution>
  <references>
    <uri link="https://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-2090">CVE-2016-2090</uri>
  </references>
  <metadata tag="requester" timestamp="2016-03-19T13:08:02Z">b-man</metadata>
  <metadata tag="submitter" timestamp="2016-07-20T11:20:49Z">b-man</metadata>
</glsa>