Bug 1487246 (CVE-2017-1000198)

Summary: CVE-2017-1000198 tcmu-runner: glfs handler allows local DoS via crafted CheckConfig strings
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: prasanna.kalever, rhs-bugs, sisharma
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the implementation of CheckConfig method in handler_glfs.so of the tcmu-runner daemon. A local, non-root user with access to the D-Bus system bus could send a specially crafted string to CheckConfig method resulting in various kinds of segmentation fault.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 11:55:58 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: 1487255, 1494511, 1494514    
Bug Blocks: 1487254    

Description Andrej Nemec 2017-08-31 13:41:00 UTC
A local non-root user with access to the D-Bus system bus can call the
CheckConfig method implemented in the tcmu-runner daemon via
handler_glfs.so and cause various kinds of segmentation faults,
depending on the string passed to the method.

For example the "hosts" variable in glfs_check_config() is not zero
initialized, but always freed on error, causing invalid free and/or
invalid memory accesses.

Upstream patch:

https://github.com/open-iscsi/tcmu-runner/commit/61bd03e600d2abf309173e9186f4d465bb1b7157

References:

http://seclists.org/oss-sec/2017/q3/207

Comment 1 Andrej Nemec 2017-08-31 13:50:24 UTC
Created tcmu-runner tracking bugs for this issue:

Affects: fedora-all [bug 1487255]

Comment 4 errata-xmlrpc 2017-11-29 03:33:27 UTC
This issue has been addressed in the following products:

  Red Hat Gluster Storage 3.3 for RHEL 7

Via RHSA-2017:3277 https://access.redhat.com/errata/RHSA-2017:3277