Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 578814 (CVE-2016-3096)

Summary: <app-admin/ansible-{1.9.6,2.0.2.0-r1}: Code execution vulnerability in lxc_container (CVE-2016-3096)
Product: Gentoo Security Reporter: Agostino Sarubbo <ago>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED FIXED    
Severity: normal CC: chainsaw, pinkbyte, prometheanfire
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugzilla.redhat.com/show_bug.cgi?id=1322925
Whiteboard: B2 [glsa cve]
Package list:
Runtime testing required: ---
Bug Depends on: 580126    
Bug Blocks:    

Description Agostino Sarubbo gentoo-dev 2016-04-02 10:49:35 UTC
From ${URL} :

A vulnerability in lxc_container, ansible module, was found allowing to get root inside the container. The 
problem is in the create_script function, which tries to write to /opt/.lxc-attach-script inside of the 
container. If the attacker can write to /opt/.lxc-attach-script before that, he can overwrite arbitrary 
files or execute commands as root.


@maintainer(s): after the bump, in case we need to stabilize the package, please let us know if it is ready for the stabilization or not.
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2016-04-02 20:07:53 UTC
as per redhat's bugzilla

(fixes) Will be in upstream releases 1.9.6, 2.0.2, and 2.1.0.
Comment 2 GLSAMaker/CVETool Bot gentoo-dev 2016-06-25 23:39:50 UTC
CVE-2016-3096 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2016-3096):
  The create_script function in the lxc_container module in Ansible before
  1.9.6-1 and 2.x before 2.0.2.0 allows local users to write to arbitrary
  files or gain privileges via a symlink attack on (1)
  /opt/.lxc-attach-script, (2) the archived container in the archive_path
  directory, or the (3) lxc-attach-script.log or (4) lxc-attach-script.err
  files in the temporary directory.
Comment 3 Aaron Bauman (RETIRED) gentoo-dev 2016-06-25 23:46:07 UTC
2.1.0.0 does not get marked stable.

New GLSA request filed.
Comment 4 GLSAMaker/CVETool Bot gentoo-dev 2016-07-20 11:29:56 UTC
This issue was resolved and addressed in
 GLSA 201607-14 at https://security.gentoo.org/glsa/201607-14
by GLSA coordinator Aaron Bauman (b-man).
Comment 5 Aaron Bauman (RETIRED) gentoo-dev 2016-07-20 11:30:39 UTC
@maintainer(s), reopening for cleanup.
Comment 6 Sergey Popov gentoo-dev 2016-07-20 11:39:04 UTC
Cleanup is done