CVEfocus › CVE database › CVE-2022-42332

CVE-2022-42332

CVSS 7.8 HighEPSS 0.4% (higher than 22% of CVEs)Published 2023-03-21Updated 2025-02-13Assigner: XEN

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.

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

13Fixed
1Fix pending
3Under investigation
5Will not fix

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.10xenFix pendingUBUNTU-CVE-2022-42332
Ubuntu 26.04xenUnder investigationUBUNTU-CVE-2022-42332
Ubuntu 25.10xenWill not fix
hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary
UBUNTU-CVE-2022-42332
Ubuntu 24.04xenUnder investigationUBUNTU-CVE-2022-42332
Ubuntu 22.04xenUnder investigationUBUNTU-CVE-2022-42332
Ubuntu 20.04xenWill not fix
hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary
UBUNTU-CVE-2022-42332
Ubuntu 18.04xenWill not fix
hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary
UBUNTU-CVE-2022-42332
Ubuntu 16.04xenWill not fix
hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary
UBUNTU-CVE-2022-42332
Ubuntu 14.04xenWill not fix
hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary
Debian 14xenFixed4.17.0+74-g3eac216e6e-1DEBIAN-CVE-2022-42332
Debian 13xenFixed4.17.0+74-g3eac216e6e-1DEBIAN-CVE-2022-42332
Debian 12xenFixed4.17.0+74-g3eac216e6e-1DEBIAN-CVE-2022-42332
Alpine Linux 3.24xenFixed4.17.0-r5ALPINE-CVE-2022-42332
Alpine Linux 3.23xenFixed4.17.0-r5ALPINE-CVE-2022-42332
Alpine Linux 3.22xenFixed4.17.0-r5ALPINE-CVE-2022-42332
Alpine Linux 3.21xenFixed4.17.0-r5ALPINE-CVE-2022-42332
Alpine Linux 3.20xenFixed4.17.0-r5ALPINE-CVE-2022-42332
Alpine Linux 3.19xenFixed4.17.0-r5ALPINE-CVE-2022-42332
Alpine Linux 3.18xenFixed4.17.0-r5ALPINE-CVE-2022-42332
Alpine Linux 3.17xenFixed4.16.4-r0ALPINE-CVE-2022-42332
Alpine Linux 3.16xenFixed4.16.4-r0ALPINE-CVE-2022-42332
Alpine Linux 3.15xenFixed4.15.5-r0ALPINE-CVE-2022-42332

What the vendor says

As published in the CVE record by XEN, 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.