Bug 1992790 (CVE-2020-21683)

Summary: CVE-2020-21683 transfig: A global buffer overflow in the shade_or_tint_name_after_declare_color in genpstricks.c could result in a denial of service
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: databases-maint, hhorak, kasal, mschorm, panovotn, pkubat
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: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1998593, 1998594    
Bug Blocks: 1992794    

Description Michael Kaplan 2021-08-11 18:15:37 UTC
A global buffer overflow in the shade_or_tint_name_after_declare_color in genpstricks.c of fig2dev 3.2.7b allows attackers to cause a denial of service (DOS) via converting a xfig file into pstricks format.

Reference:

https://sourceforge.net/p/mcj/tickets/77/

Comment 1 Garrett Tucker 2021-08-27 17:07:16 UTC
A DoS could be triggered via a buffer overflow due to the implementation of shading or tinting when converting to pstricks. The problem is a result of handling an unknown color when tinting or shading which lead to an incorrect offset and an eventual DoS. The patch for remediation is: https://sourceforge.net/p/mcj/fig2dev/ci/639c36010a120e97a6e82e7cd57cbf9dbf4b64f1/