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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | xen | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | xen | 4.15.1_01-1.2 | openSUSE-SU-2024:11520-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
- DSA-4236-1 xen - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:2081-2 Security update for xen SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1981-1 Security update for xen SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2081-1 Security update for xen SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:2059-1 Security update for xen SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11520-1 xen-4.15.1_01-1.2 on GA media SUSE / openSUSE Security Updates · May 7, 2025
References
- DSA-4236 vendor-advisory
- GLSA-201810-06 vendor-advisory
- 104571 vdb-entry
- http://xenbits.xen.org/xsa/advisory-266.html
- 1041203 vdb-entry
- [oss-security] 20180627 Xen Security Advisory 266 (CVE-2018-12892) - libxl fails to honour readonly flag on HVM emulated SCSI disks mailing-list