<?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 file</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2017:3067-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2017-11-23T17:28:25Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2017-11-23T17:28:25Z</InitialReleaseDate>
    <CurrentReleaseDate>2017-11-23T17:28:25Z</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 file</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">The GNU file utility was updated to version 5.22.

Security issues fixed:

- CVE-2014-9621: The ELF parser in file allowed remote attackers to cause a denial of service via a long string. (bsc#913650)
- CVE-2014-9620: The ELF parser in file allowed remote attackers to cause a denial of service via a large number of notes. (bsc#913651)
- CVE-2014-9653: readelf.c in file did not consider that pread calls sometimes read only a subset of the available data, which allows remote attackers to cause a denial of service (uninitialized memory access) or possibly have unspecified other impact via a crafted ELF file. (bsc#917152)
- CVE-2014-8116: The ELF parser (readelf.c) in file allowed remote attackers to cause a denial of service (CPU consumption or crash) via a large number of (1) program or (2) section headers or (3) invalid capabilities. (bsc#910253)
- CVE-2014-8117: softmagic.c in file did not properly limit recursion, which allowed remote attackers to cause a denial of service (CPU consumption or crash) via unspecified vectors. (bsc#910253)

Version update to file version 5.22

* add indirect relative for TIFF/Exif
* restructure elf note printing to avoid repeated messages
* add note limit, suggested by Alexander Cherepanov
* Bail out on partial pread()'s (Alexander Cherepanov)
* Fix incorrect bounds check in file_printable (Alexander Cherepanov)
* PR/405: ignore SIGPIPE from uncompress programs
* change printable -&gt; file_printable and use it in more places for safety
* in ELF, instead of '(uses dynamic libraries)' when PT_INTERP is present print the interpreter name.

Version update to file version 5.21

* there was an incorrect free in magic_load_buffers()
* there was an out of bounds read for some pascal strings
* there was a memory leak in magic lists
* don't interpret strings printed from files using the current
  locale, convert them to ascii format first.
* there was an out of bounds read in elf note reads

Update to file version 5.20

* recognize encrypted CDF documents
* add magic_load_buffers from Brooks Davis
* add thumbs.db support

Additional non-security bug fixes:

* Fixed a memory corruption during rpmbuild (bsc#1063269)
* Backport of a fix for an increased printable string length as found in file 5.30 (bsc#996511)
* file command throws 'Composite Document File V2 Document, corrupt: Can't read SSAT' error against excel 97/2003 file format. (bsc#1009966)

This update was imported from the SUSE:SLE-12:Update update project.</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>
  </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://lists.opensuse.org/opensuse-updates/2017-11/msg00071.html</URL>
      <Description>E-Mail link for openSUSE-SU-2017:3067-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://www.icasi.org/CVRF/schema/prod/1.1">
    <Branch Type="Product Family" Name="openSUSE Leap 42.2">
      <Branch Type="Product Name" Name="openSUSE Leap 42.2">
        <FullProductName ProductID="openSUSE Leap 42.2">openSUSE Leap 42.2</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="openSUSE Leap 42.3">
      <Branch Type="Product Name" Name="openSUSE Leap 42.3">
        <FullProductName ProductID="openSUSE Leap 42.3">openSUSE Leap 42.3</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="file-5.22-10.1">
      <FullProductName ProductID="file-5.22-10.1">file-5.22-10.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="file-devel-5.22-10.1">
      <FullProductName ProductID="file-devel-5.22-10.1">file-devel-5.22-10.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="file-magic-5.22-10.1">
      <FullProductName ProductID="file-magic-5.22-10.1">file-magic-5.22-10.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="libmagic1-5.22-10.1">
      <FullProductName ProductID="libmagic1-5.22-10.1">libmagic1-5.22-10.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="libmagic1-32bit-5.22-10.1">
      <FullProductName ProductID="libmagic1-32bit-5.22-10.1">libmagic1-32bit-5.22-10.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="python-magic-5.22-10.1">
      <FullProductName ProductID="python-magic-5.22-10.1">python-magic-5.22-10.1</FullProductName>
    </Branch>
    <Relationship ProductReference="file-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:file-5.22-10.1">file-5.22-10.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="file-devel-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:file-devel-5.22-10.1">file-devel-5.22-10.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="file-magic-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:file-magic-5.22-10.1">file-magic-5.22-10.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="libmagic1-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:libmagic1-5.22-10.1">libmagic1-5.22-10.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="libmagic1-32bit-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:libmagic1-32bit-5.22-10.1">libmagic1-32bit-5.22-10.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-magic-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.2">
      <FullProductName ProductID="openSUSE Leap 42.2:python-magic-5.22-10.1">python-magic-5.22-10.1 as a component of openSUSE Leap 42.2</FullProductName>
    </Relationship>
    <Relationship ProductReference="file-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:file-5.22-10.1">file-5.22-10.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="file-devel-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:file-devel-5.22-10.1">file-devel-5.22-10.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="file-magic-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:file-magic-5.22-10.1">file-magic-5.22-10.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="libmagic1-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:libmagic1-5.22-10.1">libmagic1-5.22-10.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="libmagic1-32bit-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:libmagic1-32bit-5.22-10.1">libmagic1-32bit-5.22-10.1 as a component of openSUSE Leap 42.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="python-magic-5.22-10.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 42.3">
      <FullProductName ProductID="openSUSE Leap 42.3:python-magic-5.22-10.1">python-magic-5.22-10.1 as a component of openSUSE Leap 42.3</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">The ELF parser (readelf.c) in file before 5.21 allows remote attackers to cause a denial of service (CPU consumption or crash) via a large number of (1) program or (2) section headers or (3) invalid capabilities.</Note>
    </Notes>
    <CVE>CVE-2014-8116</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.2:file-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:file-devel-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:file-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:libmagic1-32bit-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:libmagic1-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:python-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-devel-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libmagic1-32bit-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libmagic1-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-magic-5.22-10.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-updates/2017-11/msg00071.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2014-8116.html</URL>
        <Description>CVE-2014-8116</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/910252</URL>
        <Description>SUSE Bug 910252</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/910253</URL>
        <Description>SUSE Bug 910253</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/917152</URL>
        <Description>SUSE Bug 917152</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">softmagic.c in file before 5.21 does not properly limit recursion, which allows remote attackers to cause a denial of service (CPU consumption or crash) via unspecified vectors.</Note>
    </Notes>
    <CVE>CVE-2014-8117</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.2:file-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:file-devel-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:file-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:libmagic1-32bit-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:libmagic1-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:python-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-devel-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libmagic1-32bit-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libmagic1-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-magic-5.22-10.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-updates/2017-11/msg00071.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2014-8117.html</URL>
        <Description>CVE-2014-8117</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/910252</URL>
        <Description>SUSE Bug 910252</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/910253</URL>
        <Description>SUSE Bug 910253</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/917152</URL>
        <Description>SUSE Bug 917152</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">The ELF parser in file 5.08 through 5.21 allows remote attackers to cause a denial of service via a large number of notes.</Note>
    </Notes>
    <CVE>CVE-2014-9620</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.2:file-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:file-devel-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:file-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:libmagic1-32bit-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:libmagic1-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:python-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-devel-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libmagic1-32bit-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libmagic1-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-magic-5.22-10.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>low</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-updates/2017-11/msg00071.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2014-9620.html</URL>
        <Description>CVE-2014-9620</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/913651</URL>
        <Description>SUSE Bug 913651</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/917152</URL>
        <Description>SUSE Bug 917152</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">The ELF parser in file 5.16 through 5.21 allows remote attackers to cause a denial of service via a long string.</Note>
    </Notes>
    <CVE>CVE-2014-9621</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.2:file-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:file-devel-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:file-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:libmagic1-32bit-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:libmagic1-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:python-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-devel-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libmagic1-32bit-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libmagic1-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-magic-5.22-10.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>low</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-updates/2017-11/msg00071.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2014-9621.html</URL>
        <Description>CVE-2014-9621</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/913650</URL>
        <Description>SUSE Bug 913650</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/917152</URL>
        <Description>SUSE Bug 917152</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">readelf.c in file before 5.22, as used in the Fileinfo component in PHP before 5.4.37, 5.5.x before 5.5.21, and 5.6.x before 5.6.5, does not consider that pread calls sometimes read only a subset of the available data, which allows remote attackers to cause a denial of service (uninitialized memory access) or possibly have unspecified other impact via a crafted ELF file.</Note>
    </Notes>
    <CVE>CVE-2014-9653</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>openSUSE Leap 42.2:file-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:file-devel-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:file-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:libmagic1-32bit-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:libmagic1-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.2:python-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-devel-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:file-magic-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libmagic1-32bit-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:libmagic1-5.22-10.1</ProductID>
        <ProductID>openSUSE Leap 42.3:python-magic-5.22-10.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>low</Description>
      </Threat>
    </Threats>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">Please Install the update.</Description>
        <URL>https://lists.opensuse.org/opensuse-updates/2017-11/msg00071.html</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2014-9653.html</URL>
        <Description>CVE-2014-9653</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/917152</URL>
        <Description>SUSE Bug 917152</Description>
      </Reference>
    </References>
  </Vulnerability>
</cvrfdoc>
