CVEfocus › CVE database › CVE-2018-12892

CVE-2018-12892

CVSS 9.9 CriticalEPSS 2.5% (higher than 85% of CVEs)Published 2018-07-02Updated 2024-08-05Assigner: mitre

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

23Fixed
2Fix pending
7Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04xenNot affected
vulnerable_code_not_present
Ubuntu 25.10xenNot affected
vulnerable_code_not_present
Ubuntu 24.04xenNot affected
vulnerable_code_not_present
Ubuntu 22.04xenNot affected
vulnerable_code_not_present
Ubuntu 20.04xenNot affected
vulnerable_code_not_present
Ubuntu 18.04xenFix pendingUBUNTU-CVE-2018-12892
Ubuntu 16.04xenNot affected
vulnerable_code_not_present
Ubuntu 14.04xenFix pending
Debian 14xenFixed4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9DEBIAN-CVE-2018-12892
Debian 13xenFixed4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9DEBIAN-CVE-2018-12892
Debian 12xenFixed4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9DEBIAN-CVE-2018-12892
Red Hat Enterprise Linux 5xenNot affected
Alpine Linux 3.24xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.23xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.22xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.21xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.20xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.19xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.18xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.17xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.16xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.15xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.14xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.13xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.12xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.11xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.10xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.9xenFixed4.11.0-r0ALPINE-CVE-2018-12892
Alpine Linux 3.8xenFixed4.10.1-r3ALPINE-CVE-2018-12892
Alpine Linux 3.7xenFixed4.9.3-r0ALPINE-CVE-2018-12892
Alpine Linux 3.6xenFixed4.8.4-r0ALPINE-CVE-2018-12892
Alpine Linux 3.5xenFixed4.7.6-r0ALPINE-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:

References

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.