Description
util/virlog.c in libvirt does not properly determine the hostname on LXC container startup, which allows local guest OS users to bypass an intended container protection mechanism and execute arbitrary commands via a crafted NSS module.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libvirt | 4.0.0-2 | — |
| Debian 13 | libvirt | 4.0.0-2 | — |
| Debian 12 | libvirt | 4.0.0-2 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | libvirt | 1.3.1-1ubuntu10.19 | USN-3576-1 |
| Ubuntu 14.04 LTS | libvirt | 1.2.2-0ubuntu13.1.26 | USN-3576-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 7 | libvirt +30 | 4.5.0-10.el7 | RHSA-2018:3113 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | libvirt | 3.3.0-5.19.2 | SUSE-SU-2018:0920-1 |
| SLES 12 SP3 | virt-manager | 1.4.1-5.8.1 | SUSE-SU-2018:0920-1 |
| SLES 12 SP2 | libvirt | 2.0.0-27.34.1 | SUSE-SU-2018:0861-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP3 | libvirt | 3.3.0-5.19.2 | SUSE-SU-2018:0920-1 |
| SLES for SAP 12 SP3 | virt-manager | 1.4.1-5.8.1 | SUSE-SU-2018:0920-1 |
| SLES for SAP 12 SP2 | libvirt | 2.0.0-27.34.1 | SUSE-SU-2018:0861-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | libvirt +30 | 4.5.0-10.amzn2.3.1 | ALAS2-2018-1134 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 7 | libvirt +30 | 4.5.0-10.el7 | ELSA-2018-3113 |
Advisories 6
- RHSA-2018:3113 Red Hat Security Advisory: libvirt security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- USN-3576-1 libvirt vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- SUSE-SU-2018:0861-1 Security update for libvirt SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0920-1 Security update for libvirt SUSE / openSUSE Security Updates · Feb 4, 2026
- ALAS2-2018-1134 Moderate: libvirt security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Dec 19, 2018
- ELSA-2018-3113 Moderate: libvirt security, bug fix, and enhancement update (Oracle Linux 7) Oracle Linux Security Advisories (ELSA) · Nov 5, 2018
References
- DSA-4137 vendor-advisory
- RHSA-2018:3113 vendor-advisory
- [libvirt] 20180205 [PATCH] virlog: determine the hostname on startup CVE-2018-XXX mailing-list
- USN-3576-1 vendor-advisory