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...
Alias: CVE-2018-20337
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1661556 1661557 1661558 1663138 1671744
Blocks: 1661524
TreeView+ depends on / blocked
Reported: 2018-12-21 14:08 UTC by Laura Pardo
Modified: 2021-02-16 22:36 UTC (History)
1 user (show)

Fixed In Version: LibRaw 0.19.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2020-04-22 04:32:15 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:1766 0 None None None 2020-04-28 15:50:47 UTC

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. 


Upstream Patch:

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

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):


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

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