<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9012</bug_id>
          
          <creation_ts>2016-01-28 15:52:18 +0000</creation_ts>
          <short_desc>CVE-2016-2090;  Heap buffer overflow in fgetwln function of libbsd</short_desc>
          <delta_ts>2016-05-11 07:02:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Armin Kuster">akuster</reporter>
          <assigned_to name="Armin Kuster">akuster</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>58303</commentid>
    <comment_count>0</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-01-28 15:52:18 +0000</bug_when>
    <thetext>https://blog.fuzzing-project.org/36-Heap-buffer-overflow-in-fgetwln-function-of-libbsd.html

libbsd is a library to provide common functions from BSD systems on
Linux.

libbsd 0.8.1 and earlier contains a buffer overflow in the function
fgetwln(). An if checks if it is necessary to reallocate memory in the
target buffer. However this check is off by one, therefore an out of
bounds write happens.

Upstream has released version 0.8.2 to fix this.

I have checked where this function gets used. I didn&apos;t find any code
using it, so I assume the impact is limited.

This bug was found with the help of Address Sanitizer.

https://bugs.freedesktop.org/show_bug.cgi?id=93881
http://cgit.freedesktop.org/libbsd/commit/?id=c8f0723d2b4520bdd6b9eb7c3e7976de726d7ff7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58307</commentid>
    <comment_count>1</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-01-28 16:07:37 +0000</bug_when>
    <thetext>master: is at 0.8.1
jethro and fido: 0.7.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59305</commentid>
    <comment_count>2</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2016-02-20 00:53:35 +0000</bug_when>
    <thetext>
jethro:
http://cgit.openembedded.org/openembedded-core/commit/?h=jethro&amp;id=e56aba3a822f072f8ed2062a691762a4a970a3f0

fido:
http://cgit.openembedded.org/openembedded-core/commit/?h=fido&amp;id=ab29efb8e85020a3621079c7fde217c1bfaa5289

master was updated to 0.8.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62082</commentid>
    <comment_count>3</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-05-11 07:02:06 +0000</bug_when>
    <thetext>Verified on: 
fido: 6b2102cd59c1ac48b8550dbbea0b83eada7e7b32
jethro: 6b2102cd59c1ac48b8550dbbea0b83eada7e7b32
master 7ca60ec8bff7656b4e52f5a4d238913e851da089</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>