Bug 1529145 (CVE-2017-17786)

Summary: CVE-2017-17786 gimp: Heap-based buffer over-read in ReadImage function in plug-ins/common/file-tga.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jridky, nphilipp, phracek
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 19:52:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1529149, 1857521    
Bug Blocks: 1856625    

Description Pedro Sampaio 2017-12-26 18:17:24 UTC
In GIMP 2.8.22, there is a heap-based buffer over-read in ReadImage in plug-ins/common/file-tga.c (related to bgr2rgb.part.1) via an unexpected bits-per-pixel value for an RGBA image.

Upstream bug:

https://bugzilla.gnome.org/show_bug.cgi?id=739134

Upstream patch:

https://git.gnome.org/browse/GIMP/commit/?id=674b62ad45b6579ec6d7923dc3cb1ef4e8b5498b
https://git.gnome.org/browse/GIMP/commit/?id=8ea316667c8a3296bce2832b3986b58d0fdfc077
https://git.gnome.org/browse/GIMP/commit/?id=22e2571c25425f225abdb11a566cc281fca6f366

Comment 1 Pedro Sampaio 2017-12-26 18:31:18 UTC
Created gimp tracking bugs for this issue:

Affects: fedora-all [bug 1529149]