Bug 1553332 (CVE-2018-5800) - CVE-2018-5800 LibRaw: Heap-based buffer overflow in LibRaw::kodak_ycbcr_load_raw function in internal/dcraw_common.cpp
Summary: CVE-2018-5800 LibRaw: Heap-based buffer overflow in LibRaw::kodak_ycbcr_load_...
Alias: CVE-2018-5800
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1543597 Engineering1557202 Engineering1557203 Engineering1558954 1826574 1826575 1826576 1826577 1826578 1826579
Blocks: Embargoed1553339
TreeView+ depends on / blocked
Reported: 2018-03-08 17:10 UTC by Pedro Sampaio
Modified: 2021-02-17 00:40 UTC (History)
15 users (show)

Fixed In Version: LibRaw 0.18.7
Doc Type: If docs needed, set a value
Doc Text:
A heap-based out-of-bounds access flaw was found in the way LibRaw processed images. An attacker could potentially use this flaw to crash applications using LibRaw by tricking them into processing crafted images.
Clone Of:
Last Closed: 2019-06-10 10:17:12 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:3065 0 None None None 2018-10-30 07:28:54 UTC

Description Pedro Sampaio 2018-03-08 17:10:12 UTC
An off-by-one error within the "LibRaw::kodak_ycbcr_load_raw()" function (internal/dcraw_common.cpp) can be exploited to cause a heap-based buffer overflow and subsequently cause a crash.

External References:


Upstream Patch:


Comment 9 Debarshi Ray 2018-09-27 13:42:11 UTC
This was fixed in LibRaw-0.18.7. The commit message has 7 typoed as 17.

Comment 10 errata-xmlrpc 2018-10-30 07:28:45 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 12 Doran Moppert 2020-04-22 03:22:04 UTC
Created LibRaw tracking bugs for this issue:

Affects: epel-6 [bug 1826579]
Affects: fedora-all [bug 1826574]

Created dcraw tracking bugs for this issue:

Affects: fedora-all [bug 1826576]

Created libkdcraw tracking bugs for this issue:

Affects: fedora-all [bug 1826577]

Created mingw-LibRaw tracking bugs for this issue:

Affects: fedora-all [bug 1826575]

Created rawtherapee tracking bugs for this issue:

Affects: fedora-all [bug 1826578]

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