Bug 2039445 (CVE-2021-43579)

Summary: CVE-2021-43579 htmldoc: stack-based buffer overflow in image_load_bmp() in htmldoc/image.cxx
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: extras-orphan, pahan, rdieter
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: 2022-01-11 18:30:45 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: 2039447, 2039446    
Bug Blocks:    

Description Guilherme de Almeida Suckevicz 2022-01-11 17:57:24 UTC
A stack-based buffer overflow in image_load_bmp() in HTMLDOC <= 1.9.13 results in remote code execution if the victim converts an HTML document linking to a crafted BMP file.

References:
https://github.com/michaelrsweet/htmldoc/issues/453
https://github.com/michaelrsweet/htmldoc/issues/456

Upstream patch:
https://github.com/michaelrsweet/htmldoc/commit/27d08989a5a567155d506ac870ae7d8cc88fa58b

Comment 1 Guilherme de Almeida Suckevicz 2022-01-11 17:57:42 UTC
Created htmldoc tracking bugs for this issue:

Affects: epel-7 [bug 2039447]
Affects: fedora-34 [bug 2039446]

Comment 2 Product Security DevOps Team 2022-01-11 18:30:43 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.