Bug 1591897 (CVE-2018-5806)

Summary: CVE-2018-5806 LibRaw: NULL pointer dereference in leaf_hdr_load_raw() 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 ERRATA 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:
A NULL pointer dereference vulnerability in internal/dcraw_common.cpp:leaf_hdr_load_raw() function was found in LibRaw. A user can cause a denial of service when processing specially-crafted RAW data.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:29:18 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: 1591898, 1591899, 1591900, 1591901, 1591902, 1591903, 1610501, 1610511, 1610707    
Bug Blocks: 1591907    

Description Pedro Sampaio 2018-06-15 18:12:21 UTC
An error within the "leaf_hdr_load_raw()" function
(internal/dcraw_common.cpp) can be exploited to trigger a NULL pointer
dereference.

References:

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

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

Affects: epel-6 [bug 1591900]
Affects: fedora-all [bug 1591899]


Created dcraw tracking bugs for this issue:

Affects: fedora-all [bug 1591901]


Created libkdcraw tracking bugs for this issue:

Affects: fedora-all [bug 1591903]


Created mingw-LibRaw tracking bugs for this issue:

Affects: fedora-all [bug 1591902]


Created rawtherapee tracking bugs for this issue:

Affects: fedora-all [bug 1591898]

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

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

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.

Comment 6 errata-xmlrpc 2018-10-30 07:29:30 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:3065 https://access.redhat.com/errata/RHSA-2018:3065

Comment 7 Debarshi Ray 2018-11-22 17:15:20 UTC
This was fixed in LibRaw-0.18.8 and LibRaw-0.19.0-Beta1.