Bug 1327213 (CVE-2016-3981)

Summary: CVE-2016-3981 optipng: heap buffer overflow in the bmp_read_rows function
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cbuissar, jgrulich, opensource
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: optipng 0.7.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 08:18:22 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: 1323936, 1323937, 1327221, 1327222    
Bug Blocks: 1308551    

Description Andrej Nemec 2016-04-14 13:20:23 UTC
Heap-based buffer overflow in the bmp_read_rows function in pngxrbmp.c
in OptiPNG before 0.7.6 allows remote attackers to cause a denial of
service (out-of-bounds read or write access and crash) or possibly
execute arbitrary code via a crafted image file.

External references, including reproducer and patch:

https://sourceforge.net/p/optipng/bugs/56/

Comment 1 Andrej Nemec 2016-04-14 13:56:44 UTC
Created optipng tracking bugs for this issue:

Affects: fedora-all [bug 1327221]
Affects: epel-all [bug 1327222]

Comment 3 Cedric Buissart 2016-07-18 15:42:48 UTC
Patch is merged with CVE-2016-2191, presented as a set of 2 patches :
  -> https://sourceforge.net/p/optipng/bugs/56/#5168
  -> https://sourceforge.net/p/optipng/bugs/56/#d6e6

Comment 4 Cedric Buissart 2016-07-19 08:16:39 UTC
Statement:

Red Hat Product Security has rated this issue as having Moderate security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.