Bug 2025628 (CVE-2021-21899)

Summary: CVE-2021-21899 librecad: heap out-of-bounds write in dwgCompressor:copyCompBytes21
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: hobbes1069, redhat, spotrh
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-11-22 16:19:27 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: 2025629, 2025630    
Bug Blocks:    

Description Michael Kaplan 2021-11-22 16:04:32 UTC
A code execution vulnerability exists in the dwgCompressor::copyCompBytes21 functionality of LibreCad libdxfrw 2.2.0-rc2-19-ge02f3580. A specially-crafted .dwg file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.

References:

https://talosintelligence.com/vulnerability_reports/TALOS-2021-1350

Comment 1 Michael Kaplan 2021-11-22 16:04:51 UTC
Created librecad tracking bugs for this issue:

Affects: epel-7 [bug 2025630]
Affects: fedora-all [bug 2025629]

Comment 2 Product Security DevOps Team 2021-11-22 16:19:26 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.