Bug 1563137 (CVE-2018-0493)

Summary: CVE-2018-0493 remctl: Use-after-free leading to a daemon crash, memory corruption, or arbitrary command execution.
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: abo, ktdreyer, simon
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: remctl 3.14 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:19:26 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: 1563139, 1563140    
Bug Blocks:    

Description Andrej Nemec 2018-04-03 08:57:38 UTC
An incorrect memory management was found in the remctld and remctl-shell servers when handling commands with the sudo configuration option. For remctld, it may be possible (although appears to be difficult) for a client to execute arbitrary commands on the server. To exploit this vulnerability, the client must have access to run a command that uses the sudo configuration option. The client would then need to run the command using sudo multiple times in a single connection using keep-alive.

External References:

https://www.eyrie.org/~eagle/software/remctl/security/2018-04-01.html

Upstream patch:

https://git.eyrie.org/?p=kerberos/remctl.git;a=commit;h=86c7e44090c988112a37589d2c7a94029eb5e641

Comment 1 Andrej Nemec 2018-04-03 08:59:11 UTC
Created remctl tracking bugs for this issue:

Affects: fedora-all [bug 1563139]
Affects: epel-all [bug 1563140]

Comment 2 Product Security DevOps Team 2019-06-10 10: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.