Bug 1730568 (CVE-2019-1010305)

Summary: CVE-2019-1010305 libmspack: buffer overflow in function chmd_read_headers()
Product: [Other] Security Response Reporter: Dhananjay Arunesh <darunesh>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: dan, ldu, orion, rjones
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libmspack-0.10alpha Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 16:33: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: 1730569, 1730570, 1736744, 1736745    
Bug Blocks: 1730573    

Description Dhananjay Arunesh 2019-07-17 07:22:58 UTC
libmspack 0.9.1alpha is affected by: Buffer Overflow. The impact is: Information Disclosure. The component is: function chmd_read_headers() in libmspack(file libmspack/mspack/chmd.c). The attack vector is: the victim must open a specially crafted chm file.

Reference:
https://github.com/kyz/libmspack/commit/2f084136cfe0d05e5bf5703f3e83c6d955234b4d
https://github.com/kyz/libmspack/issues/27

Comment 1 Dhananjay Arunesh 2019-07-17 07:23:30 UTC
Created libmspack tracking bugs for this issue:

Affects: epel-6 [bug 1730569]

Comment 2 Dhananjay Arunesh 2019-07-17 07:24:30 UTC
Created libmspack tracking bugs for this issue:

Affects: fedora-all [bug 1730570]

Comment 4 Marco Benatto 2019-08-02 14:33:23 UTC
When opening Windows compressed archives, libmspack starts reading the archive header to retrieve files and compression information. During this stage at chmd_read_headers() if a CHM file starts file '::' and is shorter than 33 bytes a heap-based buffer overflow happens due to out-of-bands read. This happens when the user opens a specially crafted CHM file. The flaw itself has a very low impact and is not easily exploitable, its may be produce small heap data leaks but with no further consequences.

Comment 6 Marco Benatto 2019-08-02 14:50:14 UTC
Statement:

This issue affects versions of libmspack as shipped with Red Hat Enterprise Linux 7 and 8. This flaw was rated as having a Low security impact by the Red Hat Product Security Team.

Comment 7 errata-xmlrpc 2020-04-28 15:40:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:1686 https://access.redhat.com/errata/RHSA-2020:1686

Comment 8 Product Security DevOps Team 2020-04-28 16:33:27 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-1010305

Comment 9 errata-xmlrpc 2020-09-29 19:14:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:3848 https://access.redhat.com/errata/RHSA-2020:3848