Skip to content
OpenAdvisories
Unscored CVE-2022-42332 EUVD-2022-45407GHSA-jg93-x3r7-r8pf

x86 shadow plus log-dirty mode use-after-free In environments where host assisted address translation is necessary but Hardware Assisted Pa…

Published Mar 21, 2023 · Updated Feb 13, 2025 · Assigned by XEN

Description

x86 shadow plus log-dirty mode use-after-free In environments where host assisted address translation is necessary but Hardware Assisted Paging (HAP) is unavailable, Xen will run guests in so called shadow mode. Shadow mode maintains a pool of memory used for both shadow page tables as well as auxiliary data structures. To migrate or snapshot guests, Xen additionally runs them in so called log-dirty mode. The data structures needed by the log-dirty tracking are part of aformentioned auxiliary data. In order to keep error handling efforts within reasonable bounds, for operations which may require memory allocations shadow mode logic ensures up front that enough memory is available for the worst case requirements. Unfortunately, while page table memory is properly accounted for on the code path requiring the potential establishing of new shadows, demands by the log-dirty infrastructure were not taken into consideration. As a result, just established shadow page tables could be freed again immediately, while other code is still accessing them on the assumption that they would remain allocated.

Affected products

VendorProductAffectedFixed
Xen xen — —

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.17.0+74-g3eac216e6e-1 —
Debian 13 xen 4.17.0+74-g3eac216e6e-1 —
Debian 12 xen 4.17.0+74-g3eac216e6e-1 —
Debian 11 xen 4.14.5+94-ge49571868d-1 DSA-5378-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 xen No fix yet —
Ubuntu 26.04 LTS xen No fix yet —
Ubuntu 25.10 xen No fix yet —
Ubuntu 24.04 LTS xen No fix yet —
Ubuntu 22.04 LTS xen No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS xen No fix yet —
Ubuntu 18.04 LTS xen No fix yet —
Ubuntu 16.04 LTS xen No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP4 xen 4.16.3_06-150400.4.25.1 SUSE-SU-2023:0848-1
SLES 15 SP3 xen 4.14.5_12-150300.3.48.1 SUSE-SU-2023:0847-1
SLES 15 SP2 xen 4.13.4_20-150200.3.71.1 SUSE-SU-2023:0862-1
SLES 15 SP1 xen 4.12.4_34-150100.3.86.1 SUSE-SU-2023:0858-1
SLES 12 SP5 xen 4.12.4_34-3.88.1 SUSE-SU-2023:0845-1
Show 21 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 xen 4.11.4_38-2.89.1 SUSE-SU-2023:0859-1
SLES 12 SP2 xen 4.7.6_32-43.104.1 SUSE-SU-2023:0846-1
SLES for SAP 15 SP3 xen 4.14.5_12-150300.3.48.1 SUSE-SU-2023:0847-1
SLES for SAP 15 SP2 xen 4.13.4_20-150200.3.71.1 SUSE-SU-2023:0862-1
SLES for SAP 15 SP1 xen 4.12.4_34-150100.3.86.1 SUSE-SU-2023:0858-1
SLES for SAP 12 SP5 xen 4.12.4_34-3.88.1 SUSE-SU-2023:0845-1
SLES for SAP 12 SP4 xen 4.11.4_38-2.89.1 SUSE-SU-2023:0859-1
SLE Real Time 15 SP3 xen 4.14.5_12-150300.3.48.1 SUSE-SU-2023:0847-1
SLE Micro 5.4 xen 4.16.3_06-150400.4.25.1 SUSE-SU-2023:0848-2
SLE Micro 5.3 xen 4.16.3_06-150400.4.25.1 SUSE-SU-2023:0848-1
SLE Micro 5.2 xen 4.14.5_12-150300.3.48.1 SUSE-SU-2023:0847-1
SLE Micro 5.1 xen 4.14.5_12-150300.3.48.1 SUSE-SU-2023:0847-1
SLE HPC 15 SP3 xen 4.14.5_12-150300.3.48.1 SUSE-SU-2023:0847-1
SLE HPC 15 SP2 xen 4.13.4_20-150200.3.71.1 SUSE-SU-2023:0862-1
SLE HPC 15 SP1 xen 4.12.4_34-150100.3.86.1 SUSE-SU-2023:0858-1
SUSE OpenStack Cloud Crowbar 9 xen 4.11.4_38-2.89.1 SUSE-SU-2023:0859-1
SUSE OpenStack Cloud 9 xen 4.11.4_38-2.89.1 SUSE-SU-2023:0859-1
SUSE Manager Server 4.2 xen 4.14.5_12-150300.3.48.1 SUSE-SU-2023:0847-1
SUSE Manager Proxy 4.2 xen 4.14.5_12-150300.3.48.1 SUSE-SU-2023:0847-1
SUSE Enterprise Storage 7.1 xen 4.14.5_12-150300.3.48.1 SUSE-SU-2023:0847-1
SUSE Enterprise Storage 7 xen 4.13.4_20-150200.3.71.1 SUSE-SU-2023:0862-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed xen 4.17.0_06-1.1 openSUSE-SU-2024:12833-1
openSUSE Leap 15.4 xen 4.16.3_06-150400.4.25.1 SUSE-SU-2023:0848-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.3 xen 4.16.3_06-150400.4.25.1 SUSE-SU-2023:0848-1
ReleasePackageFixed inAdvisory
Alpine v3.24 xen 4.17.0-r5 —
Alpine v3.23 xen 4.17.0-r5 —
Alpine v3.22 xen 4.17.0-r5 —
Alpine v3.21 xen 4.17.0-r5 —
Alpine v3.20 xen 4.17.0-r5 —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 xen 4.17.0-r5 —
Alpine v3.18 xen 4.17.0-r5 —
Alpine v3.17 xen 4.16.4-r0 —
Alpine v3.16 xen 4.16.4-r0 —
Alpine v3.15 xen 4.15.5-r0 —

Advisories 11

References