A flaw was found in LXC that allows processes intended to be run inside of confined LXC containers to escape SELinux confinement. A malicious container can create a fake proc filesystem, possibly by mounting tmpfs on top of the container's /proc, and wait for a lxc-attach to be ran from the host environment. lxc-attach incorrectly trusts the container's /proc/PID/attr/{current,exec} files to set up the SELinux domain transitions, which may result in no confinement being used. This flaw is reported to affect LXC 0.9.0 and later. Additional information: https://launchpad.net/bugs/1475050 Upstream patches: https://github.com/lxc/lxc/commit/5c3fcae78b63ac9dd56e36075903921bd9461f9e (master) https://github.com/lxc/lxc/commit/659e807c8dd1525a5c94bdecc47599079fad8407 (stable-1.1) https://github.com/lxc/lxc/commit/15ec0fd9d490dd5c8a153401360233c6ee947c24 (stable-1.0)
Created lxc tracking bugs for this issue: Affects: fedora-all [bug 1245942] Affects: epel-all [bug 1245943]
(In reply to Martin Prpic from comment #0) > https://github.com/lxc/lxc/commit/659e807c8dd1525a5c94bdecc47599079fad8407 > (stable-1.1) That does not apply cleanly to 1.1.2. Three options: - merge and fix by hand, yields http://ur1.ca/n7io5 - not sure if that is ok - pick more commits, e.g. https://github.com/lxc/lxc/commit/8af7999 - wait for 1.1.3 which should be released soon Also asked upstream, waiting for response.
Got no reply from upstream, used variant 1. (Also seems to be the similar to what Ubuntu did.)
lxc-1.1.2-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
lxc-1.1.2-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
lxc-1.0.7-2.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
lxc-1.0.7-2.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
lxc-1.0.7-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
Please close.
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.