Bug 805197 (CVE-2012-1571)

Summary: CVE-2012-1571 file: out of bounds read in CDF parser
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: aneelica, dkutalek, fedora, jkaluza, jkurik, jorton, jrusnack, mmaslano, packaging-team-maint, pmatilai, rcollet, webstack-team
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: file 5.11 Doc Type: Bug Fix
Doc Text:
A denial of service flaw was found in the way the File Information (fileinfo) extension parsed certain Composite Document Format (CDF) files. A remote attacker could use this flaw to crash a PHP application using fileinfo via a specially crafted CDF file.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-31 10:37:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1114438, 1114520, 1114521, 1119563, 1119564, 1120503, 1120504    
Bug Blocks: 735399, 1065838, 1101912    

Description Jan Lieskovsky 2012-03-20 16:29:05 UTC
Multiple out-of heap-based buffer read flaws and invalid pointer dereference flaws were found in the way file, utility for determining of file types processed header section for certain Composite Document Format (CDF) files. A remote attacker could provide a specially-crafted CDF file, which once inspected by the file utility of the victim would lead to file executable crash.

Upstream patches:
https://github.com/file/file/commit/1859fdb4e67c49c463c4e0078054335cd46ba295
https://github.com/file/file/commit/1140872578eedaeecf828f1841d17ff574372dba
https://github.com/file/file/commit/1aec04dbf8a24b8a6ba64c4f74efa0628e36db0b

References:
http://mx.gw.com/pipermail/file/2012/000914.html
http://www.openwall.com/lists/oss-security/2012/02/20/7
http://www.debian.org/security/2012/dsa-2422
http://mx.gw.com/pipermail/file/2012/000915.html
http://mx.gw.com/pipermail/file/2012/000916.html

Comment 1 Jan Lieskovsky 2012-03-20 16:32:20 UTC
This issue did NOT affect the version of the file package, as shipped with Red Hat Enterprise Linux 5 as it did not include support for processing of Composite Document Files (CDF) yet.

--

This issue affects the version of the file package, as shipped with Red Hat Enterprise Linux 6.

--

This issue affects the versions of the file package, as shipped with Fedora release of 15 and 16.

Comment 3 Jan Lieskovsky 2012-03-20 17:12:37 UTC
CVE request:
[8] http://www.openwall.com/lists/oss-security/2012/03/20/11

Comment 4 Kurt Seifried 2012-03-20 17:19:20 UTC
Added CVE as per http://www.openwall.com/lists/oss-security/2012/03/20/11

Comment 5 Jan Lieskovsky 2012-03-20 17:32:46 UTC
Statement:

This issue did not affect the versions of the php and file packages as shipped with Red Hat Enterprise Linux 5 and 7.

Comment 7 Francisco Alonso 2014-06-30 06:08:27 UTC
Created file tracking bugs for this issue:

Affects: fedora-all [bug 1114438]

Comment 10 Fedora Update System 2014-07-05 14:53:22 UTC
file-5.19-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Martin Prpič 2014-07-28 11:12:25 UTC
IssueDescription:

A denial of service flaw was found in the way the File Information (fileinfo) extension parsed certain Composite Document Format (CDF) files. A remote attacker could use this flaw to crash a PHP application using fileinfo via a specially crafted CDF file.

Comment 16 errata-xmlrpc 2014-08-06 05:15:08 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6
  Red Hat Enterprise Linux 5

Via RHSA-2014:1012 https://rhn.redhat.com/errata/RHSA-2014-1012.html

Comment 17 errata-xmlrpc 2014-10-14 08:29:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2014:1606 https://rhn.redhat.com/errata/RHSA-2014-1606.html