Bug 1967014 (CVE-2021-23165)

Summary: CVE-2021-23165 htmldoc: heap-buffer-overflow in pspdf_prepare_outpages()
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: ajak, extras-orphan, pahan, rdieter, tuxmealux+redhatbz
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-06-02 11:32:12 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: 1967017, 1967016    
Bug Blocks: 1967015    

Description Dhananjay Arunesh 2021-06-02 10:48:12 UTC
A flaw was found in htmldoc in v1.9.12. Heap buffer overflow in pspdf_prepare_outpages(), in ps-pdf.cxx may lead to execute arbitrary code and denial of service.

Reference:
https://github.com/michaelrsweet/htmldoc/issues/413

Upstream patch:
https://github.com/michaelrsweet/htmldoc/commit/369b2ea1fd0d0537ba707f20a2f047b6afd2fbdc

Comment 1 Dhananjay Arunesh 2021-06-02 10:49:39 UTC
Created htmldoc tracking bugs for this issue:

Affects: epel-7 [bug 1967017]
Affects: fedora-all [bug 1967016]

Comment 2 Product Security DevOps Team 2021-06-02 11:32:12 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.

Comment 3 Gianluca Gabrielli 2021-06-03 13:38:36 UTC
This has the same fix of 1967009 (CVE-2021-26252)

Comment 4 Gianluca Gabrielli 2021-06-03 13:58:57 UTC
Please discard my previous message. This is a different bug than 1967009 (CVE-2021-26252). Upstream patch [0].

[0] https://github.com/michaelrsweet/htmldoc/commit/6e8a95561988500b5b5ae4861b3b0cbf4fba517f.patch

Comment 5 John Helmert III 2022-03-19 05:19:30 UTC
Why did it take so long for CVE-2021-23165 (this bug) and CVE-2021-23158 (bug 1967018) to be released? The bugs were opened in 2021-06 but CVEs were released in 2022-03, 9 months later. This is a big gap for those who depend on on CVEs to know what needs to be patched.