Bug 1661604 (CVE-2018-5819) - CVE-2018-5819 LibRaw: DoS in parse_sinar_ia function in internal/dcraw_common.cpp
Summary: CVE-2018-5819 LibRaw: DoS in parse_sinar_ia function in internal/dcraw_common...
Keywords:
Status: NEW
Alias: CVE-2018-5819
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=low,public=20181213,reported=2...
Depends On: 1661605 1661607 1543597 1654688 1661606 1663163 1663164
Blocks: 1661524
TreeView+ depends on / blocked
 
Reported: 2018-12-21 17:55 UTC by Laura Pardo
Modified: 2019-06-08 23:47 UTC (History)
1 user (show)

Fixed In Version: LibRaw 0.19.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Laura Pardo 2018-12-21 17:55:20 UTC
LibRaw is vulnerable to a denial of service, caused by a flaw in the parse_sinar_ia function in internal/dcraw_common.cpp. By persuading a victim to open a specially-crafted file, a remote attacker could exploit this vulnerability to cause a denial of service condition.


References:
https://www.flexera.com/company/secunia-research/advisories/SR-2018-27.html

Comment 1 Laura Pardo 2018-12-21 17:55:40 UTC
Created LibRaw tracking bugs for this issue:

Affects: epel-6 [bug 1661607]
Affects: fedora-28 [bug 1661605]


Created mingw-LibRaw tracking bugs for this issue:

Affects: fedora-all [bug 1661606]

Comment 2 Riccardo Schirone 2019-01-03 10:26:19 UTC
Upstream patch:
https://github.com/LibRaw/LibRaw/commit/e67a9862d10ebaa97712f532eca1eb5e2e410a22

Comment 3 Riccardo Schirone 2019-01-03 10:31:32 UTC
Function parse_sinar_ia() execute a loop for X times, where X is read from the file and is not properly checked. By providing a very large number (or a negative one) it is possible to execute the loop many time and waste resources.

Comment 7 Debarshi Ray 2019-02-01 13:54:15 UTC
Fixed in LibRaw-0.19.1


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