<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns="http://www.icasi.org/CVRF/schema/cvrf/1.1" xmlns:cvrf="http://www.icasi.org/CVRF/schema/cvrf/1.1">
  <DocumentTitle xml:lang="en">Security update for libgit2</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>SUSE-SU-2018:3440-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2018-10-25T12:19:42Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2018-10-25T12:19:42Z</InitialReleaseDate>
    <CurrentReleaseDate>2018-10-25T12:19:42Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf.pl</Engine>
      <Date>2017-02-24T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">Security update for libgit2</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for libgit2 fixes the following issues:

- CVE-2018-8099: Fixed possible denial of service attack via different vectors by not being able to differentiate between these status codes (bsc#1085256).
- CVE-2018-11235: With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs 'git clone --recurse-submodules' because submodule 'names' are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with '../' in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.  (bsc#1095219)
- CVE-2018-10887: It has been discovered that an unexpected sign extension in git_delta_apply function in delta.c file may have lead to an integer overflow which in turn leads to an out of bound read, allowing to read before the base object. An attacker could have used this flaw to leak memory addresses or cause a Denial of Service. (bsc#1100613)
- CVE-2018-10888: A missing check in git_delta_apply function in delta.c file, may lead to an out-of-bound read while reading a binary delta file. An attacker may use this flaw to cause a Denial of Service. (bsc#1100612)
- CVE-2018-15501: A remote attacker can send a crafted smart-protocol 'ng' packet that lacks a '\0' byte to trigger an out-of-bounds read that leads to DoS.  (bsc#1104641)
</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="3" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
    <Note Title="Patchnames" Type="Details" Ordinal="4" xml:lang="en">SUSE-SLE-SDK-12-SP3-2018-2459,SUSE-SUSE-Manager-Server-3.1-2018-2459,SUSE-SUSE-Manager-Server-3.2-2018-2459</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright SUSE LLC under the Creative Commons License 4.0 with Attribution (CC-BY-4.0)</DocumentDistribution>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/update/announcement/2018/suse-su-20183440-1/</URL>
      <Description>Link for SUSE-SU-2018:3440-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://lists.suse.com/pipermail/sle-security-updates/2018-October/004790.html</URL>
      <Description>E-Mail link for SUSE-SU-2018:3440-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1085256</URL>
      <Description>SUSE Bug 1085256</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1095219</URL>
      <Description>SUSE Bug 1095219</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1100612</URL>
      <Description>SUSE Bug 1100612</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1100613</URL>
      <Description>SUSE Bug 1100613</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1104641</URL>
      <Description>SUSE Bug 1104641</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2018-10887/</URL>
      <Description>SUSE CVE CVE-2018-10887 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2018-10888/</URL>
      <Description>SUSE CVE CVE-2018-10888 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2018-11235/</URL>
      <Description>SUSE CVE CVE-2018-11235 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2018-15501/</URL>
      <Description>SUSE CVE CVE-2018-15501 page</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2018-8099/</URL>
      <Description>SUSE CVE CVE-2018-8099 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="SUSE Linux Enterprise Software Development Kit 12 SP3">
      <Branch Type="Product Name" Name="SUSE Linux Enterprise Software Development Kit 12 SP3">
        <FullProductName ProductID="SUSE Linux Enterprise Software Development Kit 12 SP3" CPE="cpe:/o:suse:sle-sdk:12:sp3">SUSE Linux Enterprise Software Development Kit 12 SP3</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Manager Server 3.1">
      <Branch Type="Product Name" Name="SUSE Manager Server 3.1">
        <FullProductName ProductID="SUSE Manager Server 3.1" CPE="cpe:/o:suse:suse-manager-server:3.1">SUSE Manager Server 3.1</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="SUSE Manager Server 3.2">
      <Branch Type="Product Name" Name="SUSE Manager Server 3.2">
        <FullProductName ProductID="SUSE Manager Server 3.2" CPE="cpe:/o:suse:suse-manager-server:3.2">SUSE Manager Server 3.2</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="libgit2-24-0.24.1-7.6.1">
      <FullProductName ProductID="libgit2-24-0.24.1-7.6.1">libgit2-24-0.24.1-7.6.1</FullProductName>
    </Branch>
    <Relationship ProductReference="libgit2-24-0.24.1-7.6.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Linux Enterprise Software Development Kit 12 SP3">
      <FullProductName ProductID="SUSE Linux Enterprise Software Development Kit 12 SP3:libgit2-24-0.24.1-7.6.1">libgit2-24-0.24.1-7.6.1 as a component of SUSE Linux Enterprise Software Development Kit 12 SP3</FullProductName>
    </Relationship>
    <Relationship ProductReference="libgit2-24-0.24.1-7.6.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Manager Server 3.1">
      <FullProductName ProductID="SUSE Manager Server 3.1:libgit2-24-0.24.1-7.6.1">libgit2-24-0.24.1-7.6.1 as a component of SUSE Manager Server 3.1</FullProductName>
    </Relationship>
    <Relationship ProductReference="libgit2-24-0.24.1-7.6.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Manager Server 3.2">
      <FullProductName ProductID="SUSE Manager Server 3.2:libgit2-24-0.24.1-7.6.1">libgit2-24-0.24.1-7.6.1 as a component of SUSE Manager Server 3.2</FullProductName>
    </Relationship>
  </ProductTree>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A flaw was found in libgit2 before version 0.27.3. It has been discovered that an unexpected sign extension in git_delta_apply function in delta.c file may lead to an integer overflow which in turn leads to an out of bound read, allowing to read before the base object. An attacker may use this flaw to leak memory addresses or cause a Denial of Service.</Note>
    </Notes>
    <CVE>CVE-2018-10887</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Linux Enterprise Software Development Kit 12 SP3:libgit2-24-0.24.1-7.6.1</ProductID>
        <ProductID>SUSE Manager Server 3.1:libgit2-24-0.24.1-7.6.1</ProductID>
        <ProductID>SUSE Manager Server 3.2:libgit2-24-0.24.1-7.6.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2018/suse-su-20183440-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-10887.html</URL>
        <Description>CVE-2018-10887</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1100613</URL>
        <Description>SUSE Bug 1100613</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="2">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">A flaw was found in libgit2 before version 0.27.3. A missing check in git_delta_apply function in delta.c file, may lead to an out-of-bound read while reading a binary delta file. An attacker may use this flaw to cause a Denial of Service.</Note>
    </Notes>
    <CVE>CVE-2018-10888</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Linux Enterprise Software Development Kit 12 SP3:libgit2-24-0.24.1-7.6.1</ProductID>
        <ProductID>SUSE Manager Server 3.1:libgit2-24-0.24.1-7.6.1</ProductID>
        <ProductID>SUSE Manager Server 3.2:libgit2-24-0.24.1-7.6.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2018/suse-su-20183440-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-10888.html</URL>
        <Description>CVE-2018-10888</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1100612</URL>
        <Description>SUSE Bug 1100612</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="3">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In Git before 2.13.7, 2.14.x before 2.14.4, 2.15.x before 2.15.2, 2.16.x before 2.16.4, and 2.17.x before 2.17.1, remote code execution can occur. With a crafted .gitmodules file, a malicious project can execute an arbitrary script on a machine that runs "git clone --recurse-submodules" because submodule "names" are obtained from this file, and then appended to $GIT_DIR/modules, leading to directory traversal with "../" in a name. Finally, post-checkout hooks from a submodule are executed, bypassing the intended design in which hooks are not obtained from a remote server.</Note>
    </Notes>
    <CVE>CVE-2018-11235</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Linux Enterprise Software Development Kit 12 SP3:libgit2-24-0.24.1-7.6.1</ProductID>
        <ProductID>SUSE Manager Server 3.1:libgit2-24-0.24.1-7.6.1</ProductID>
        <ProductID>SUSE Manager Server 3.2:libgit2-24-0.24.1-7.6.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>important</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2018/suse-su-20183440-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-11235.html</URL>
        <Description>CVE-2018-11235</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1095219</URL>
        <Description>SUSE Bug 1095219</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="4">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">In ng_pkt in transports/smart_pkt.c in libgit2 before 0.26.6 and 0.27.x before 0.27.4, a remote attacker can send a crafted smart-protocol "ng" packet that lacks a '\0' byte to trigger an out-of-bounds read that leads to DoS.</Note>
    </Notes>
    <CVE>CVE-2018-15501</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Linux Enterprise Software Development Kit 12 SP3:libgit2-24-0.24.1-7.6.1</ProductID>
        <ProductID>SUSE Manager Server 3.1:libgit2-24-0.24.1-7.6.1</ProductID>
        <ProductID>SUSE Manager Server 3.2:libgit2-24-0.24.1-7.6.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2018/suse-su-20183440-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-15501.html</URL>
        <Description>CVE-2018-15501</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1104641</URL>
        <Description>SUSE Bug 1104641</Description>
      </Reference>
    </References>
  </Vulnerability>
  <Vulnerability xmlns="http://www.icasi.org/CVRF/schema/vuln/1.1" Ordinal="5">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">Incorrect returning of an error code in the index.c:read_entry() function leads to a double free in libgit2 before v0.26.2, which allows an attacker to cause a denial of service via a crafted repository index file.</Note>
    </Notes>
    <CVE>CVE-2018-8099</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Linux Enterprise Software Development Kit 12 SP3:libgit2-24-0.24.1-7.6.1</ProductID>
        <ProductID>SUSE Manager Server 3.1:libgit2-24-0.24.1-7.6.1</ProductID>
        <ProductID>SUSE Manager Server 3.2:libgit2-24-0.24.1-7.6.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://www.suse.com/support/update/announcement/2018/suse-su-20183440-1/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2018-8099.html</URL>
        <Description>CVE-2018-8099</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1085256</URL>
        <Description>SUSE Bug 1085256</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1085257</URL>
        <Description>SUSE Bug 1085257</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
