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
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1665224 1665225 1665227
Blocks: 1665226
TreeView+ depends on / blocked
Reported: 2019-01-10 17:36 UTC by Laura Pardo
Modified: 2019-09-29 15:04 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
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.


Upstream Patch:

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

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.