Bug 1591879 (CVE-2018-5804)

Summary: CVE-2018-5804 LibRaw: type confusion error in identify() function in internal/dcraw_common.cpp
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: debarshir, extras-orphan, gwync, hobbes1069, jridky, manisandro, mattdm, mattia.verga, nphilipp, ry, sebastian, siddharth.kde, siddhesh, than, thibault.north
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: LibRaw 0.18.8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:29:15 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: 1591880, 1591881, 1591882, 1591883, 1591884, 1591885, 1610499    
Bug Blocks: 1591907    

Description Pedro Sampaio 2018-06-15 18:05:04 UTC
A type confusion error within the "identify()" function
(internal/dcraw_common.cpp) can be exploited to trigger a division by
zero.

References:

https://secuniaresearch.flexerasoftware.com/secunia_research/2018-03

Comment 1 Pedro Sampaio 2018-06-15 18:05:33 UTC
Created LibRaw tracking bugs for this issue:

Affects: epel-6 [bug 1591885]
Affects: fedora-all [bug 1591880]


Created dcraw tracking bugs for this issue:

Affects: fedora-all [bug 1591882]


Created libkdcraw tracking bugs for this issue:

Affects: fedora-all [bug 1591883]


Created mingw-LibRaw tracking bugs for this issue:

Affects: fedora-all [bug 1591881]


Created rawtherapee tracking bugs for this issue:

Affects: fedora-all [bug 1591884]

Comment 4 Adam Mariš 2018-07-31 19:06:27 UTC
Statement:

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

This issue did not affect the versions of dcraw as shipped with Red Hat Enterprise Linux 5, 6 and 7 as they did not include the vulnerable code.

This issue did not affect the versions of libkdcraw as shipped with Red Hat Enterprise Linux 7 as they did not include the vulnerable code.

Comment 5 Debarshi Ray 2018-11-22 17:14:08 UTC
This was fixed in LibRaw-0.18.8 and LibRaw-0.19.0-Beta1.