Bug 1661555 (CVE-2018-20337) - CVE-2018-20337 LibRaw: stack-based buffer overflow in the parse_makernote function of dcraw_common.cpp
Summary: CVE-2018-20337 LibRaw: stack-based buffer overflow in the parse_makernote fun...
Status: NEW
Alias: CVE-2018-20337
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=moderate,public=20181218,repor...
Keywords: Security
Depends On: 1661558 1663138 1661556 1661557
Blocks: 1661524
TreeView+ depends on / blocked
 
Reported: 2018-12-21 14:08 UTC by Laura Pardo
Modified: 2019-06-08 23:47 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.