Vulnerabilities / CVE-2018-12892

critical

CVE-2018-12892

xen: libxl fails to honour readonly flag on HVM emulated SCSI disks

Published Modified CWE 200
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.9CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Red Hat7.7CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Ubuntu (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.10xen4.11.0-r0
alpine 3.11xen4.11.0-r0
alpine 3.12xen4.11.0-r0
alpine 3.13xen4.11.0-r0
alpine 3.14xen4.11.0-r0
alpine 3.15xen4.11.0-r0
alpine 3.16xen4.11.0-r0
alpine 3.17xen4.11.0-r0
alpine 3.18xen4.11.0-r0
alpine 3.19xen4.11.0-r0
alpine 3.20xen4.11.0-r0
alpine 3.21xen4.11.0-r0
Show all 28 entries from 28 sources
SourcePackageFixed in
alpine 3.10xen4.11.0-r0
alpine 3.11xen4.11.0-r0
alpine 3.12xen4.11.0-r0
alpine 3.13xen4.11.0-r0
alpine 3.14xen4.11.0-r0
alpine 3.15xen4.11.0-r0
alpine 3.16xen4.11.0-r0
alpine 3.17xen4.11.0-r0
alpine 3.18xen4.11.0-r0
alpine 3.19xen4.11.0-r0
alpine 3.20xen4.11.0-r0
alpine 3.21xen4.11.0-r0
alpine 3.22xen4.11.0-r0
alpine 3.23xen4.11.0-r0
alpine 3.24xen4.11.0-r0
alpine 3.5xen4.7.6-r0
alpine 3.6xen4.8.4-r0
alpine 3.7xen4.9.3-r0
alpine 3.8xen4.10.1-r3
alpine 3.9xen4.11.0-r0
alpine edgexen4.11.0-r0
debian 11xen4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9
debian 12xen4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9
debian 13xen4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9
debian 14xen4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9
debian 9xen4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9
echoxen4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9
ubuntu 18.04-ESMxenno fix listed

References

All 10 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.