CVE-2018-12892
An issue was discovered in Xen 4.7 through 4.10.x. libxl fails to pass the readonly flag to qemu when setting up a SCSI disk, due to what was probably an erroneous merge conflict resolution. Malicious guest administrators or (in some situations) users may be able to write to supposedly read-only disk images. Only emulated SCSI disks (specified as "sd" in the libxl disk configuration, or an equivalent) are affected. IDE disks ("hd") are not affected (because attempts to make them readonly are rejected). Additionally, CDROM devices (that is, devices specified to be presented to the guest as CDROMs, regardless of the nature of the backing storage on the host) are not affected; they are always read only. Only systems using qemu-xen (rather than qemu-xen-traditional) as the device model version are vulnerable. Only systems using libxl or libxl-based toolstacks are vulnerable. (This includes xl, and libvirt with the libxl driver.) The vulnerability is present in Xen versions 4.7 and later. (In earlier versions, provided that the patch for XSA-142 has been applied, attempts to create read only disks are rejected.) If the host and guest together usually support PVHVM, the issue is exploitable only if the malicious guest administrator has control of the guest kernel or guest kernel command line.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
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 26.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | xen | Fix pending | UBUNTU-CVE-2018-12892 | |
| Ubuntu 16.04 | xen | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | xen | Fix pending | ||
| Debian 14 | xen | Fixed | 4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9 | DEBIAN-CVE-2018-12892 |
| Debian 13 | xen | Fixed | 4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9 | DEBIAN-CVE-2018-12892 |
| Debian 12 | xen | Fixed | 4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9 | DEBIAN-CVE-2018-12892 |
| Red Hat Enterprise Linux 5 | xen | Not affected | ||
| Alpine Linux 3.24 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.23 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.22 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.21 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.20 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.19 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.18 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.17 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.16 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.15 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.14 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.13 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.12 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.11 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.10 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.9 | xen | Fixed | 4.11.0-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.8 | xen | Fixed | 4.10.1-r3 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.7 | xen | Fixed | 4.9.3-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.6 | xen | Fixed | 4.8.4-r0 | ALPINE-CVE-2018-12892 |
| Alpine Linux 3.5 | xen | Fixed | 4.7.6-r0 | ALPINE-CVE-2018-12892 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://www.debian.org/security/2018/dsa-4236 (vendor-advisory)
- https://security.gentoo.org/glsa/201810-06 (vendor-advisory)
References
- https://www.debian.org/security/2018/dsa-4236
- https://security.gentoo.org/glsa/201810-06
- http://www.securityfocus.com/bid/104571
- http://xenbits.xen.org/xsa/advisory-266.html
- http://www.securitytracker.com/id/1041203
- http://www.openwall.com/lists/oss-security/2018/06/27/12
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.