CVE-2017-5985
Low · 3.3CVSS
3.3
EPSS
0.3%
Published
Mar 14, 2017
CISA due date
—
Cloudanix analysis
A container tool flaw lets users with partial rights create and name network connections directly on the main computer, which could interfere with network operations.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Tampering
- Component
- Container Runtime
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw allows a local user with lxc-usernet allocation to create network interfaces on the host and specify their names due to missing ownership checks on network namespaces.
Why it matters to the business
Attackers with limited access can manipulate host network configuration, potentially disrupting container networking or enabling lateral movement in environments using LXC.
How an attack unfolds
An attacker with a valid lxc-usernet allocation invokes lxc-user-nic and supplies parameters that bypass the absent netns ownership verification, resulting in creation of arbitrary host network interfaces with attacker-chosen names.
How to fix it
Upgrade lxc/lxc to the version containing commit 16af238036a5464ae8f2420ed3af214f0de875f9 or later.
How to confirm the fix worked
Confirm the installed lxc-user-nic binary originates from a build that includes commit 16af238036a5464ae8f2420ed3af214f0de875f9; attempt interface creation from a non-privileged context to verify enforcement.
Typical attack path
- Obtain or be granted an lxc-usernet allocation
- Invoke lxc-user-nic with crafted interface name and namespace parameters
- Trigger creation of unauthorized network interface on the host
How to detect it
Review system logs for invocations of lxc-user-nic by non-root users; inspect network interface creation events for unexpected names or owners; correlate with container namespace activity.
- lxc-user-nic
- netns ownership
- unexpected host interface creation
What your security team should do
- Apply the fixed commit 16af238036a5464ae8f2420ed3af214f0de875f9 across all LXC installations
- Audit existing lxc-usernet allocations and revoke unnecessary grants
- Restrict local users from direct execution of lxc-user-nic where possible
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | lxc | 0 | 1:2.0.7-2 |
| Debian:12 | lxc | 0 | 1:2.0.7-2 |
| Debian:13 | lxc | 0 | 1:2.0.7-2 |
| Mageia:5 | lxc | 0 | 1.0.10-1.mga5 |
| Ubuntu:14.04:LTS | lxc | 0 | 1.0.9-0ubuntu3 |
| Ubuntu:16.04:LTS | lxc | 0 | 2.0.7-0ubuntu1~16.04.2 |
| openSUSE:Tumbleweed | lxc | 0 | 4.0.9-1.1 |
Related vulnerabilities
- CVE-2016-8649 lxc-attach in LXC before 1.0.9 and 2.x before 2.0.6 allows an attacker inside of an… Also affects lxc
- CVE-2016-10124 An issue was discovered in Linux Containers (LXC) before 2016-02-22. Also affects lxc
- CVE-2015-1335 lxc-start in lxc before 1.0.8 and 1.1.x before 1.1.4 allows local container… Also affects lxc
- CVE-2015-1331 lxclock.c in LXC 1.1.2 and earlier allows local users to create arbitrary files via a… Also affects lxc
- CVE-2026-39402 lxc is a Linux container runtime. Also affects lxc
- CVE-2026-96391 Missing Authorization vulnerability in Drupal Webform REST allows Forceful Browsing. CWE-862
- CVE-2026-96380 Missing Authorization vulnerability in Drupal CSS Usage Analyzer allows Forceful Browsing. CWE-862
- CVE-2026-96386 Missing Authorization vulnerability in Drupal Smart Content allows Forceful Browsing. CWE-862