Bug 1955664

Summary: fig2dev: Heap-buffer-overflow in gensvg.c in function gensvg_text
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: databases-maint, hdegoede, hhorak, jmlich83, kasal, mschorm, odubaj, panovotn, pkubat, steve.traylen
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-05-20 13:28:44 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:    
Bug Blocks: 1955678    

Description Pedro Sampaio 2021-04-30 15:55:10 UTC
A flaw was found in fig2dev Version 3.2.8a. A heap buffer overflow in function gensvg_text in gensvg.c may cause memory corruption and other potential consequences.

Upstream bug:

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

Upstream fix:

https://sourceforge.net/p/mcj/fig2dev/ci/f8ce1ff8837056b12c046f56e3b5248b2c8eeaa1/

Comment 1 Riccardo Schirone 2021-05-12 13:13:25 UTC
This is a buffer over-read and not a buffer over-write according to the ASAN log, so it is a much lower impact as a bug. No memory corruption can occur just by reading the memory, unless something else is done later.