<?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>7181</bug_id>
          
          <creation_ts>2015-01-19 09:02:50 +0000</creation_ts>
          <short_desc>rpm: CVE-2014-8118 &amp; CVE-2013-6435</short_desc>
          <delta_ts>2015-08-12 22:06:42 +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>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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>1.8.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sona Sarmadi">sona.sarmadi</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48023</commentid>
    <comment_count>0</comment_count>
    <who name="Sona Sarmadi">sona.sarmadi</who>
    <bug_when>2015-01-19 09:02:50 +0000</bug_when>
    <thetext>Two vulnerabilities in RPM:

CVE-2014-8118 integer overflow and stack overflow in CPIO header parsing 
CVE-2013-6435 race condition during the installation process

From the Red Hat advisory:

It was found that RPM wrote file contents to the target installation directory under a temporary name, and verified its cryptographic signature only after the temporary file has been written completely. Under certain conditions, the system interprets the unverified temporary file contents and extracts commands from it. This could allow an attacker to modify signed RPM files in such a way that they would execute code chosen by the attacker during package installation. (CVE-2013-6435)

It was found that RPM could encounter an integer overflow, leading to a stack-based buffer overflow, while parsing a crafted CPIO header in the payload section of an RPM file. This could allow an attacker to modify signed RPM files in such a way that they would execute code chosen by the attacker during package installation. (CVE-2014-8118)

References:
https://bugzilla.redhat.com/show_bug.cgi?id=1168715
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-6435
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-8118</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48042</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2015-01-19 16:01:01 +0000</bug_when>
    <thetext>I spoke w/ Jeff Johnson the RPM5 maintainer.  He forwarded me the following:

CVE-2014-8118:

rpm5 unaffected afaict because:
    1) size_t not int (so no integer overflow)
    2) malloc&apos;d not automatic stack based input buffer
    3) check on buffer overrun

So unless someone has a reproducer that affects RPM5, this CVE does not apply.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50572</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2015-04-28 18:25:54 +0000</bug_when>
    <thetext>Saul, we need someone assigned to investigate any security impact on the RPM4 implemented in 1.8 and master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51970</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-06-26 20:04:31 +0000</bug_when>
    <thetext>Now, on master

db34474679587502fe0b6a0a5cd72351e29991a2 rpm: Fix CVE-2013-6435

3886107521ed64d72afb93bfc123f2b81bc4e959 rpm: Fix CVE-2014-8118</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53063</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2015-08-12 22:06:42 +0000</bug_when>
    <thetext>Commits on master branch:

db34474679587502fe0b6a0a5cd72351e29991a2 Leonardo Sandoval Wed Jun 10 14:58:38 2015 +0000 rpm: Fix CVE-2013-6435
3886107521ed64d72afb93bfc123f2b81bc4e959 Leonardo Sandoval Wed Jun 10 14:55:14 2015 +0000 rpm: Fix CVE-2014-8118</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>