Bug 1553467 (CVE-2018-7712)

Summary: CVE-2018-7712 opencv: assertion failure in validateInputImageSize function in modules/imgcodecs/src/loadsave.cpp
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: andrew, databases-maint, hhorak, jmlich83, jridky, karlthered, kwizart, pkajaba, rakesh.pandit, sergio, viktor.vix.jancik
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: 2018-05-01 19:11:26 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: 1553468    
Bug Blocks: 1553474    

Description Laura Pardo 2018-03-08 22:42:53 UTC
The validateInputImageSize function in modules/imgcodecs/src/loadsave.cpp in OpenCV 3.4.1 allows remote attackers to cause a denial of service (assertion failure) because (size.height <= (1<<20)) may be false.


References:
https://github.com/opencv/opencv/issues/10998
https://github.com/xiaoqx/pocs/tree/master/opencv/dos-by-assert

Comment 1 Laura Pardo 2018-03-08 22:43:53 UTC
Created opencv tracking bugs for this issue:

Affects: fedora-all [bug 1553468]