cve.bz

CVE-2022-42332 Use After Free

7.8 highEPSS 0.3%

High (7.8). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 19th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-12-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-416 Use After Free
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-42332 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-42332?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-42332?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-42332 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xen:xen3.2.0 and later
debian:debian_linux11.0
fedoraproject:fedora37
fedoraproject:fedora38

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11xen4.14.5+94-ge49571868d-1DSA-5378-1
Debian12, 13, 14xen4.17.0+74-g3eac216e6e-1DEBIAN-CVE-2022-42332
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 morexenno fix listedUBUNTU-CVE-2022-42332
SUSEEnterprise Storage 7, Linux Enterprise High Performance Computing 15 SP2-LTSS, Linux Enterprise Server 15 SP2-LTSS and 1 morexen4.13.4_20-150200.3.71.1SUSE-SU-2023:0862-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 7 morexen4.14.5_12-150300.3.48.1SUSE-SU-2023:0847-1
SUSELinux Enterprise High Performance Computing 15 SP1-LTSS, Linux Enterprise Server 15 SP1-LTSS, Linux Enterprise Server for SAP Applications 15 SP1xen4.12.4_34-150100.3.86.1SUSE-SU-2023:0858-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Module for Basesystem 15 SP4, Linux Enterprise Module for Server Applications 15 SP4xen4.16.3_06-150400.4.25.1SUSE-SU-2023:0848-1
SUSELinux Enterprise Micro 5.4xen4.16.3_06-150400.4.25.1SUSE-SU-2023:0848-2
SUSELinux Enterprise Server 12 SP2-BCLxen4.7.6_32-43.104.1SUSE-SU-2023:0846-1
SUSELinux Enterprise Server 12 SP4-ESPOS, Linux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server for SAP Applications 12 SP4 and 2 morexen4.11.4_38-2.89.1SUSE-SU-2023:0859-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5, Linux Enterprise Software Development Kit 12 SP5xen4.12.4_34-3.88.1SUSE-SU-2023:0845-1
openSUSELeap 15.4, Leap Micro 5.3xen4.16.3_06-150400.4.25.1SUSE-SU-2023:0848-1
openSUSETumbleweedxen4.17.0_06-1.1openSUSE-SU-2024:12833-1
Alpinev3.15xen4.15.5-r0ALPINE-CVE-2022-42332
Alpinev3.16, v3.17xen4.16.4-r0ALPINE-CVE-2022-42332
Alpinev3.18, v3.19, v3.20 and 4 morexen4.17.0-r5ALPINE-CVE-2022-42332

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

References

Check your stackJSON