Skip to content
OpenAdvisories
Unscored CVE-2018-12892 EUVD-2018-4845GHSA-pv22-mjm8-4f83

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 w…

Published Jul 2, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

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.

ReleasePackageFixed inAdvisory
Debian 14 xen 4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9 —
Debian 13 xen 4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9 —
Debian 12 xen 4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9 —
Debian 9 xen 4.8.3+xsa267+shim4.10.1+xsa267-1+deb9u9 DSA-4236-1
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS xen No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 xen 4.10.1_06-3.3.1 SUSE-SU-2018:1981-1
SLES 12 SP3 xen 4.9.2_08-3.35.2 SUSE-SU-2018:2059-1
SLES 12 SP2 xen 4.7.6_02-43.36.1 SUSE-SU-2018:2081-2, SUSE-SU-2018:2081-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP3 xen 4.9.2_08-3.35.2 SUSE-SU-2018:2059-1
SLES for SAP 12 SP2 xen 4.7.6_02-43.36.1 SUSE-SU-2018:2081-1
SUSE OpenStack Cloud 7 xen 4.7.6_02-43.36.1 SUSE-SU-2018:2081-1
SUSE Enterprise Storage 4 xen 4.7.6_02-43.36.1 SUSE-SU-2018:2081-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed xen 4.15.1_01-1.2 openSUSE-SU-2024:11520-1
ReleasePackageFixed inAdvisory
Alpine v3.24 xen 4.11.0-r0 —
Alpine v3.23 xen 4.11.0-r0 —
Alpine v3.22 xen 4.11.0-r0 —
Alpine v3.21 xen 4.11.0-r0 —
Alpine v3.20 xen 4.11.0-r0 —
Show 15 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 xen 4.11.0-r0 —
Alpine v3.18 xen 4.11.0-r0 —
Alpine v3.17 xen 4.11.0-r0 —
Alpine v3.16 xen 4.11.0-r0 —
Alpine v3.15 xen 4.11.0-r0 —
Alpine v3.14 xen 4.11.0-r0 —
Alpine v3.13 xen 4.11.0-r0 —
Alpine v3.12 xen 4.11.0-r0 —
Alpine v3.11 xen 4.11.0-r0 —
Alpine v3.10 xen 4.11.0-r0 —
Alpine v3.9 xen 4.11.0-r0 —
Alpine v3.8 xen 4.10.1-r3 —
Alpine v3.7 xen 4.9.3-r0 —
Alpine v3.6 xen 4.8.4-r0 —
Alpine v3.5 xen 4.7.6-r0 —

Advisories 6

References