CVE-2018-6556The lxc-user-nic component of LXC allows unprivileged users to open arbitrary files
lxc-user-nic when asked to delete a network interface will unconditionally open a user provided path. This code path may be used by an unprivileged user to check for the existence of a path which they wouldn't otherwise be able to reach. It may also be used to trigger side effects by causing a (read-only) open of special kernel files (ptmx, proc, sys). Affected releases are LXC: 2.0 versions above and including 2.0.9; 3.0 versions above and including 3.0.0, prior to 3.0.2.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | lxc | Fixed | 3.0.1-0ubuntu1~18.04.2 | UBUNTU-CVE-2018-6556 |
| Ubuntu 16.04 | lxc | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | lxc | Not affected vulnerable_code_not_present | ||
| Debian 14 | lxc | Fixed | 1:2.0.9-6.1 | DEBIAN-CVE-2018-6556 |
| Debian 13 | lxc | Fixed | 1:2.0.9-6.1 | DEBIAN-CVE-2018-6556 |
| Debian 12 | lxc | Fixed | 1:2.0.9-6.1 | DEBIAN-CVE-2018-6556 |
| Alpine Linux 3.24 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.23 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.22 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.21 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.20 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.19 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.18 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.17 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.16 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.15 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.14 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.13 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.12 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.11 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.10 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.9 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.8 | lxc | Fixed | 2.1.1-r9 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.7 | lxc | Fixed | 2.1.1-r3 | ALPINE-CVE-2018-6556 |
| Alpine Linux 3.6 | lxc | Fixed | 2.0.9-r1 | ALPINE-CVE-2018-6556 |
What the vendor says
As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- LXC: affected: 2.0.9 to before 2.0*, 3.0.0 to before 3.0*; fixed in
3.0.2
Vendor advisories:
- https://usn.ubuntu.com/usn/usn-3730-1 (vendor-advisory)
- https://security.gentoo.org/glsa/201808-02 (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00074.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00076.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00091.html (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00073.html (vendor-advisory)
References
- https://usn.ubuntu.com/usn/usn-3730-1
- https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1783591
- https://security.gentoo.org/glsa/201808-02
- https://bugzilla.suse.com/show_bug.cgi?id=988348
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00074.html
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00076.html
- http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00091.html
- http://lists.opensuse.org/opensuse-security-announce/2019-05/msg00073.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.