Bug 2005471 (CVE-2020-21530)

Summary: CVE-2020-21530 transfig: segmentation fault in the read_objects() in read.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: CLOSED WONTFIX QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: databases-maint, hhorak, kasal, mschorm, 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:
In transfig's fig2dev 3.2.7b it is possible for an attacker to create a specially crafted file that causes a buffer overflow due to usage of fgets. This leads to a denial of service via segmentation fault, impacting availability of the program.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-12-13 13:42: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: 2005920    
Bug Blocks: 2005482    

Description Guilherme de Almeida Suckevicz 2021-09-17 18:14:53 UTC
fig2dev 3.2.7b contains a segmentation fault in the read_objects function in read.c.

Reference:
https://sourceforge.net/p/mcj/tickets/61/

Comment 1 Garrett Tucker 2021-09-20 13:40:39 UTC
After analysis of this flaw, all versions of RHEL 8 are affected. RHEL 9 remains unaffected as the patch to fix this flaw was applied and introduced in RHEL 9. The patch applied is: https://sourceforge.net/p/mcj/fig2dev/ci/41b9bb838a3d544539f6e68aa4f87d70ef7d45ce/. This flaw was caused by the use of fgets which led to a buffer overflow and segmentation fault in read_objects when a specially crafted file was used as input to the program.