Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 612216 (CVE-2017-5985) - <app-emulation/lxc-2.0.9: didn't verify network namespace ownership
Summary: <app-emulation/lxc-2.0.9: didn't verify network namespace ownership
Status: RESOLVED FIXED
Alias: CVE-2017-5985
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo Security
URL: http://www.openwall.com/lists/oss-sec...
Whiteboard: B3 [noglsa cve]
Keywords:
Depends on:
Blocks: 520348 CVE-2016-10124
  Show dependency tree
 
Reported: 2017-03-10 16:26 UTC by Agostino Sarubbo
Modified: 2018-05-14 22:13 UTC (History)
5 users (show)

See Also:
Package list:
app-emulation/lxc-2.0.9
Runtime testing required: ---
stable-bot: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2017-03-10 16:26:18 UTC
From ${URL} :

Jann Horn discovered that the lxc-user-nic program could be tricked into
operating on a network namespace over which the caller did not hold
privilege.

The behavior didn't follow what was documented in the lxc-user-nic(1)
man page:

 It ensures that the calling user is privileged over the network
 namespace to which the interface will be attached.

This issue is CVE-2017-5985.

https://lists.linuxcontainers.org/pipermail/lxc-users/2017-March/012925.html
https://launchpad.net/bugs/1654676
https://github.com/lxc/lxc/commit/16af238036a5464ae8f2420ed3af214f0de875f9


@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 Aaron Bauman (RETIRED) gentoo-dev 2017-07-17 01:14:33 UTC
Fix is present in 2.0.8 upstream... please bump!
Comment 2 Virgil Dupras (RETIRED) gentoo-dev 2017-12-13 17:43:05 UTC
2.0.8 has been there for a while. Can we stabilize?
Comment 3 Virgil Dupras (RETIRED) gentoo-dev 2017-12-13 19:28:25 UTC
I've also verified that the fix is indeed in v2.0.8. However, it's not the commit that is linked above, but rather a cherry-pick:

https://github.com/lxc/lxc/commit/d512bd5efb0e407eba350c4e649c464a65b712a3

$ git tag --contains d512bd5efb0e407eba350c4e649c464a65b712a3
lxc-2.0.8
lxc-2.0.9
Comment 4 Matthias Maier gentoo-dev 2017-12-16 00:32:53 UTC
ppc64, please keyword, test and mark stable
      =app-emulation/lxc-2.0.9

x86, amd64, please test and mark stable
      =app-emulation/lxc-2.0.9

Please note: It turns out that sys-process/criu is an entirely OPTIONAL runtime dependency (the lxc binary simply calls the criu binary). I have dropped the dependency for 2.0.9 so that we can stabilize on x86 and ppc64 (independently of criu).
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2017-12-19 15:50:14 UTC
x86 stable
Comment 6 Agostino Sarubbo gentoo-dev 2017-12-20 13:09:32 UTC
amd64 stable
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2018-02-28 22:23:51 UTC
ppc64 stable
Comment 8 Aaron Bauman (RETIRED) gentoo-dev 2018-04-23 02:46:56 UTC
@maintainer(s), can we please clean the vulnerable?
Comment 9 Aaron Bauman (RETIRED) gentoo-dev 2018-05-14 22:13:13 UTC
GLSA Vote: No