Bug 1665223 (CVE-2018-20330) - CVE-2018-20330 libjpeg-turbo: heap-based buffer overflow in tjLoadImage
Summary: CVE-2018-20330 libjpeg-turbo: heap-based buffer overflow in tjLoadImage
Status: NEW
Alias: CVE-2018-20330
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=20181125,reported=2...
Keywords: Security
Depends On: 1665227 1665224 1665225
Blocks: 1665226
TreeView+ depends on / blocked
 
Reported: 2019-01-10 17:36 UTC by Laura Pardo
Modified: 2019-06-08 23:47 UTC (History)
2 users (show)

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


Attachments (Terms of Use)

Description Laura Pardo 2019-01-10 17:36:26 UTC
A flaw was found in libjpeg-turbo 2.0.1. The tjLoadImage function has an integer overflow with a resultant heap-based buffer overflow via a BMP image because multiplication of pitch and height is mishandled.


References:
https://github.com/libjpeg-turbo/libjpeg-turbo/issues/304

Upstream Patch:
https://github.com/libjpeg-turbo/libjpeg-turbo/commit/3d9c64e9f8aa1ee954d1d0bb3390fc894bb84da3

Comment 1 Laura Pardo 2019-01-10 17:37:49 UTC
Created libjpeg-turbo tracking bugs for this issue:

Affects: fedora-all [bug 1665224]


Created mingw-libjpeg-turbo tracking bugs for this issue:

Affects: epel-7 [bug 1665227]
Affects: fedora-all [bug 1665225]

Comment 3 Stefan Cornelius 2019-01-11 09:51:44 UTC
RHEL versions don't have this function. Looks like this was introduced via https://github.com/libjpeg-turbo/libjpeg-turbo/commit/aa7459050d7a50e1d8a99488902d41fbc118a50f

Comment 4 Stefan Cornelius 2019-01-11 09:51:46 UTC
Statement:

This issue did not affect the versions of libjpeg-turbo as shipped with Red Hat Enterprise Linux 6 and 7.


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