{"id":"CVE-2017-5985","aliases":["DEBIAN-CVE-2017-5985","EUVD-2017-15054","GHSA-wxh2-mqg8-qff6","MGASA-2017-0167","UBUNTU-CVE-2017-5985","USN-3224-1","openSUSE-SU-2024:11030-1"],"status":"published","title":"lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation to create...","description":"lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation to create network interfaces on the host and choose the name of those interfaces by leveraging lack of netns ownership check.","severity":{"version":"3.0","score":3.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00337,"percentile":0.27325,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-862"],"published":"2017-03-09T16:00:00Z","modified":"2026-10-20T13:24:21Z","fixes":[{"ecosystem":"Debian:12","package":"lxc","fixed_in":["1:2.0.7-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"lxc","fixed_in":["1:2.0.7-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"lxc","fixed_in":["1:2.0.7-2"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"lxc","fixed_in":["1.0.9-0ubuntu3"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"lxc","fixed_in":["2.0.7-0ubuntu1~16.04.2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"lxc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.0.7-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"lxc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.0.7-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"lxc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.0.7-2"}]}]},{"source":"osv","ecosystem":"Mageia:5","package":"lxc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.10-1.mga5"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"lxc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.9-0ubuntu3"}]}],"versions":["1.0.0~alpha1-0ubuntu11","1.0.0~alpha2-0ubuntu1","1.0.0~alpha2-0ubuntu3","1.0.0~alpha2-0ubuntu4","1.0.0~alpha2-0ubuntu5","1.0.0~alpha2-0ubuntu6","1.0.0~alpha3-0ubuntu1","1.0.0~alpha3-0ubuntu2","1.0.0~alpha3-0ubuntu3","1.0.0~alpha3-0ubuntu4","1.0.0~alpha3-0ubuntu5","1.0.0~alpha3-0ubuntu6","1.0.0~alpha3-0ubuntu7","1.0.0~alpha3-0ubuntu8","1.0.0~beta1-0ubuntu1","1.0.0~beta1-0ubuntu2","1.0.0~beta1-0ubuntu3","1.0.0~beta2-0ubuntu1","1.0.0~beta2-0ubuntu2","1.0.0~beta3-0ubuntu1","1.0.0~beta4-0ubuntu1","1.0.0~beta4-0ubuntu2","1.0.0~rc1-0ubuntu2","1.0.0~rc3-0ubuntu1","1.0.0~rc4-0ubuntu1","1.0.0-0ubuntu1","1.0.0-0ubuntu2","1.0.0-0ubuntu3","1.0.0-0ubuntu4","1.0.1-0ubuntu1","1.0.2-0ubuntu1","1.0.2-0ubuntu2","1.0.3-0ubuntu1","1.0.3-0ubuntu2","1.0.3-0ubuntu3","1.0.4-0ubuntu0.1","1.0.5-0ubuntu0.1","1.0.6-0ubuntu0.1","1.0.7-0ubuntu0.1","1.0.7-0ubuntu0.2","1.0.7-0ubuntu0.5","1.0.7-0ubuntu0.6","1.0.7-0ubuntu0.7","1.0.7-0ubuntu0.9","1.0.7-0ubuntu0.10","1.0.8-0ubuntu0.3","1.0.8-0ubuntu0.4","1.0.9-0ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"lxc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.7-0ubuntu1~16.04.2"}]}],"versions":["1.1.4-0ubuntu1","1.1.4-0ubuntu1.1","1.1.4-0ubuntu3","1.1.5-0ubuntu1","1.1.5-0ubuntu2","1.1.5-0ubuntu3","1.1.5-0ubuntu4","1.1.5-0ubuntu5","1.1.5-0ubuntu6","2.0.0~beta2-0ubuntu2","2.0.0~rc1-0ubuntu1","2.0.0~rc2-0ubuntu2","2.0.0~rc3-0ubuntu1","2.0.0~rc3-0ubuntu2","2.0.0~rc3-0ubuntu3","2.0.0~rc4-0ubuntu1","2.0.0~rc5-0ubuntu1","2.0.0~rc9-0ubuntu1","2.0.0~rc10-0ubuntu1","2.0.0~rc10-0ubuntu2","2.0.0~rc11-0ubuntu1","2.0.0~rc12-0ubuntu1","2.0.0~rc13-0ubuntu2","2.0.0~rc14-0ubuntu2","2.0.0~rc15-0ubuntu1","2.0.0-0ubuntu1","2.0.0-0ubuntu2","2.0.1-0ubuntu1~16.04.1","2.0.3-0ubuntu1~ubuntu16.04.1","2.0.4-0ubuntu1~ubuntu16.04.2","2.0.5-0ubuntu1~ubuntu16.04.1","2.0.5-0ubuntu1~ubuntu16.04.2","2.0.5-0ubuntu1~ubuntu16.04.3","2.0.6-0ubuntu1~ubuntu16.04.1","2.0.6-0ubuntu1~ubuntu16.04.2","2.0.7-0ubuntu1~16.04.1"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"lxc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.0.9-0ubuntu3"}]}],"versions":["1.0.0~alpha1-0ubuntu11","1.0.0~alpha2-0ubuntu1","1.0.0~alpha2-0ubuntu3","1.0.0~alpha2-0ubuntu4","1.0.0~alpha2-0ubuntu5","1.0.0~alpha2-0ubuntu6","1.0.0~alpha3-0ubuntu1","1.0.0~alpha3-0ubuntu2","1.0.0~alpha3-0ubuntu3","1.0.0~alpha3-0ubuntu4","1.0.0~alpha3-0ubuntu5","1.0.0~alpha3-0ubuntu6","1.0.0~alpha3-0ubuntu7","1.0.0~alpha3-0ubuntu8","1.0.0~beta1-0ubuntu1","1.0.0~beta1-0ubuntu2","1.0.0~beta1-0ubuntu3","1.0.0~beta2-0ubuntu1","1.0.0~beta2-0ubuntu2","1.0.0~beta3-0ubuntu1","1.0.0~beta4-0ubuntu1","1.0.0~beta4-0ubuntu2","1.0.0~rc1-0ubuntu2","1.0.0~rc3-0ubuntu1","1.0.0~rc4-0ubuntu1","1.0.0-0ubuntu1","1.0.0-0ubuntu2","1.0.0-0ubuntu3","1.0.0-0ubuntu4","1.0.1-0ubuntu1","1.0.2-0ubuntu1","1.0.2-0ubuntu2","1.0.3-0ubuntu1","1.0.3-0ubuntu2","1.0.3-0ubuntu3","1.0.4-0ubuntu0.1","1.0.5-0ubuntu0.1","1.0.6-0ubuntu0.1","1.0.7-0ubuntu0.1","1.0.7-0ubuntu0.2","1.0.7-0ubuntu0.5","1.0.7-0ubuntu0.6","1.0.7-0ubuntu0.7","1.0.7-0ubuntu0.9","1.0.7-0ubuntu0.10","1.0.8-0ubuntu0.3","1.0.8-0ubuntu0.4","1.0.9-0ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"lxc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.7-0ubuntu1~16.04.2"}]}],"versions":["1.1.4-0ubuntu1","1.1.4-0ubuntu1.1","1.1.4-0ubuntu3","1.1.5-0ubuntu1","1.1.5-0ubuntu2","1.1.5-0ubuntu3","1.1.5-0ubuntu4","1.1.5-0ubuntu5","1.1.5-0ubuntu6","2.0.0~beta2-0ubuntu2","2.0.0~rc1-0ubuntu1","2.0.0~rc2-0ubuntu2","2.0.0~rc3-0ubuntu1","2.0.0~rc3-0ubuntu2","2.0.0~rc3-0ubuntu3","2.0.0~rc4-0ubuntu1","2.0.0~rc5-0ubuntu1","2.0.0~rc9-0ubuntu1","2.0.0~rc10-0ubuntu1","2.0.0~rc10-0ubuntu2","2.0.0~rc11-0ubuntu1","2.0.0~rc12-0ubuntu1","2.0.0~rc13-0ubuntu2","2.0.0~rc14-0ubuntu2","2.0.0~rc15-0ubuntu1","2.0.0-0ubuntu1","2.0.0-0ubuntu2","2.0.1-0ubuntu1~16.04.1","2.0.3-0ubuntu1~ubuntu16.04.1","2.0.4-0ubuntu1~ubuntu16.04.2","2.0.5-0ubuntu1~ubuntu16.04.1","2.0.5-0ubuntu1~ubuntu16.04.2","2.0.5-0ubuntu1~ubuntu16.04.3","2.0.6-0ubuntu1~ubuntu16.04.1","2.0.6-0ubuntu1~ubuntu16.04.2","2.0.7-0ubuntu1~16.04.1"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"lxc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.0.9-1.1"}]}],"bundled":3}],"products":[{"vendor":"linuxcontainers","product":"lxc"}],"references":[{"url":"https://lists.linuxcontainers.org/pipermail/lxc-devel/2017-March/015535.html","tags":["mailing-list","x_refsource_MLIST","x_transferred","Vendor Advisory","advisory"]},{"url":"https://github.com/lxc/lxc/commit/16af238036a5464ae8f2420ed3af214f0de875f9","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","fix"]},{"url":"http://www.securityfocus.com/bid/96777","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1654676","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory"]},{"url":"http://www.ubuntu.com/usn/USN-3224-1","tags":["vendor-advisory","x_refsource_UBUNTU","x_transferred","Third Party Advisory","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2017/03/09/4","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00073.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-5985"},{"url":"https://github.com/advisories/GHSA-wxh2-mqg8-qff6"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-5985","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2017-0167.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=20439","tags":["report"]},{"url":"https://linuxcontainers.org/lxc/news/","tags":["web"]},{"url":"https://www.ubuntu.com/usn/usn-3136-1/","tags":["web"]},{"url":"https://www.ubuntu.com/usn/usn-3224-1/","tags":["web"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=19835","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2017-5985","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3224-1","tags":["advisory"]},{"url":"https://lists.linuxcontainers.org/pipermail/lxc-users/2017-March/012925.html","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-5985","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2017-5985","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-6556","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-5736","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-5985","description":"lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation to create network interfaces on the host and choose the name of those interfaces by leveraging lack of netns ownership check.","status":"published","published":"2017-03-14T17:00:00Z","modified":"2024-08-05T15:18:49.414Z","updated_at":"2026-11-02T14:33:12.942409Z"}],"euvd":[{"id":"EUVD-2017-15054","description":"lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation to create network interfaces on the host and choose the name of those interfaces by leveraging lack of netns ownership check.","status":"published","published":"2017-03-14T17:00:00Z","modified":"2024-08-05T15:18:49Z","updated_at":"2026-11-03T02:39:13.436112Z"}],"ghsa":[{"id":"GHSA-wxh2-mqg8-qff6","title":"lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation to create...","description":"lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation to create network interfaces on the host and choose the name of those interfaces by leveraging lack of netns ownership check.","status":"published","published":"2022-05-13T01:46:21Z","modified":"2023-02-02T05:01:24Z","cvss":[{"version":"3.0","score":3.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low"}],"cwes":["CWE-862"],"updated_at":"2026-11-02T14:51:10.774738Z"}],"nvd":[{"id":"CVE-2017-5985","description":"lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation to create network interfaces on the host and choose the name of those interfaces by leveraging lack of netns ownership check.","status":"published","published":"2017-03-14T17:59:00.183Z","modified":"2026-06-17T01:21:34.1Z","cvss":[{"version":"3.0","score":3.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low","assessor":"primary"},{"version":"2.0","score":2.1,"vector":"AV:L/AC:L/Au:N/C:N/I:P/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-862"],"updated_at":"2026-11-02T14:03:44.275273Z"}],"osv":[{"id":"CVE-2017-5985","description":"lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation to create network interfaces on the host and choose the name of those interfaces by leveraging lack of netns ownership check.","status":"published","published":"2017-03-14T17:59:00.183Z","modified":"2026-10-20T13:24:21.897350339Z","cvss":[{"version":"3.0","score":3.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low"}],"updated_at":"2026-11-02T15:44:06.029968Z"},{"id":"DEBIAN-CVE-2017-5985","description":"lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation to create network interfaces on the host and choose the name of those interfaces by leveraging lack of netns ownership check.","status":"published","published":"2017-03-14T17:59:00.183Z","modified":"2026-09-01T20:03:48.881177084Z","cvss":[{"version":"3.0","score":3.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low"}],"updated_at":"2026-11-02T15:45:29.412243Z"},{"id":"UBUNTU-CVE-2017-5985","description":"lxc-user-nic in Linux Containers (LXC) allows local users with a lxc-usernet allocation to create network interfaces on the host and choose the name of those interfaces by leveraging lack of netns ownership check.","status":"published","published":"2017-03-09T16:00:00Z","modified":"2026-04-22T11:28:07.774085Z","cvss":[{"version":"3.0","score":3.3,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low"}],"updated_at":"2026-11-02T15:54:15.388065Z"},{"id":"MGASA-2017-0167","title":"Updated lxc packages fix security vulnerabilities","description":"Roman Fiedler discovered a directory traversal flaw in lxc-attach. An\nattacker with access to an LXC container could exploit this flaw to\naccess files outside of the container (CVE-2016-8649).\n\nJann Horn discovered that LXC incorrectly verified permissions when\ncreating virtual network interfaces. A local attacker could possibly use\nthis issue to create virtual network interfaces in network namespaces\nthat they do not own (CVE-2017-5985).\n\nThe lxc package has been updated to version 1.0.10 to fix these issues\nand other bugs.\n","status":"published","published":"2017-06-12T07:42:23Z","modified":"2026-04-16T06:26:11.805856981Z","updated_at":"2026-11-02T15:49:40.103088Z"},{"id":"openSUSE-SU-2024:11030-1","title":"liblxc-devel-4.0.9-1.1 on GA media","description":"These are all security issues fixed in the liblxc-devel-4.0.9-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:35:59.205857Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"USN-3224-1","title":"lxc vulnerability","description":"Jann Horn discovered that LXC incorrectly verified permissions when creating\nvirtual network interfaces. A local attacker could possibly use this issue to\ncreate virtual network interfaces in network namespaces that they do not own.\n","status":"published","published":"2017-03-09T16:28:44Z","modified":"2026-04-22T09:32:49.686695Z","updated_at":"2026-11-02T16:58:10.303275Z"}]}}
