Bug 1661555 (CVE-2018-20337)

Summary: CVE-2018-20337 LibRaw: stack-based buffer overflow in the parse_makernote function of dcraw_common.cpp
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: debarshir
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: LibRaw 0.19.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-22 04:32: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: 1661556, 1661557, 1661558, 1663138, 1671744    
Bug Blocks: 1661524    

Description Laura Pardo 2018-12-21 14:08:38 UTC
A flaw was found in LibRaw 0.19.1. A stack-based buffer overflow in the parse_makernote function of dcraw_common.cpp. Crafted input will lead to a denial of service. 


References:
https://github.com/LibRaw/LibRaw/issues/192

Upstream Patch:
https://github.com/LibRaw/LibRaw/commit/fbf60377c006eaea8d3eca3f5e4c654909dcdfd2

Comment 1 Laura Pardo 2018-12-21 14:09:00 UTC
Created LibRaw tracking bugs for this issue:

Affects: epel-6 [bug 1661558]
Affects: fedora-all [bug 1661557]


Created mingw-LibRaw tracking bugs for this issue:

Affects: fedora-all [bug 1661556]

Comment 2 Riccardo Schirone 2019-01-03 09:50:24 UTC
Function parse_makernote() in internal/dcraw_common.cpp does not correctly sanitize the ynum_len when dealing with FUJI raw images, possibly causing a stack-based buffer overflow.

Comment 3 Riccardo Schirone 2019-01-03 09:51:46 UTC
Statement:

This issue did not affect the versions of LibRaw as shipped with Red Hat Enterprise Linux 7 as they did not include support for Fuji maker notes.

Comment 5 Debarshi Ray 2019-02-01 13:49:32 UTC
This is fixed in LibRaw-0.19.2

Comment 7 Product Security DevOps Team 2020-04-22 04:32:15 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2018-20337

Comment 8 errata-xmlrpc 2020-04-28 15:50:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:1766 https://access.redhat.com/errata/RHSA-2020:1766