Bug 1610156 (CVE-2018-5816)

Summary: CVE-2018-5816 LibRaw: Integer overflow in internal/dcraw_common.cpp:identify() allows for denial of service
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dchen, debarshir, gwync, hobbes1069, manisandro, siddharth.kde, siddhesh
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: LibRaw 0.18.12 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-31 14:40:43 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: 1610157, 1610158, 1610159, 1610160    
Bug Blocks: 1610155    

Description Sam Fowler 2018-07-31 04:56:34 UTC
LibRaw versions prior to 0.18.12 are vulnerable to an integer overflow in the internal/dcraw_common.cpp:identify() function. An attacker could exploit this to cause an divide-by-zero and resultant denial of service via a specially crafted NOKIARAW file.

This vulnerability was caused by an incomplete fix to CVE-2018-5804.


Reference:

http://seclists.org/bugtraq/2018/Jul/58

Comment 1 Sam Fowler 2018-07-31 04:59:16 UTC
Created LibRaw tracking bugs for this issue:

Affects: epel-6 [bug 1610159]
Affects: fedora-all [bug 1610157]


Created mingw-LibRaw tracking bugs for this issue:

Affects: fedora-all [bug 1610158]

Comment 3 Stefan Cornelius 2018-07-31 12:59:41 UTC
This looks like the patch:
https://github.com/LibRaw/LibRaw/commit/4a3e68a41cf6d67fd83cffd2651d97d75dffcb57

Comment 4 Stefan Cornelius 2018-07-31 14:40:43 UTC
I believed this was introduced via https://github.com/LibRaw/LibRaw/commit/d5715aa86a83c756e38fdbae0e034e5a07901d49

This is not in RHEL7.

Comment 5 Stefan Cornelius 2018-07-31 14:40:52 UTC
Statement:

This issue did not affect the versions of LibRaw as shipped with Red Hat Enterprise Linux 7.

Comment 6 Debarshi Ray 2018-09-27 13:54:18 UTC
This was fixed in LibRaw 0.19.0-Beta6 and 0.18.12.