CVE-2022-42332
- State
- Published
- Severity
- Not scored
- Published
- Mar 21, 2023
- Updated
- Feb 13, 2025
- Reserved
- Oct 3, 2022
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.
Scores
The record has no CVSS score.
Weaknesses
The record names no weakness.
Affected Products
| Product | Versions |
|---|---|
xenXen |
|
References
- https://xenbits.xenproject.org/xsa/advisory-427.txt
- http://xenbits.xen.org/xsa/advisory-427.html
- [oss-security] 20230321 Xen Security Advisory 427 v2 (CVE-2022-42332) - x86 shadow plus log-dirty mode use-after-freemailing-list
- FEDORA-2023-703f133eb3vendor-advisory
- FEDORA-2023-da8315e641vendor-advisory
- DSA-5378vendor-advisory
- https://security.gentoo.org/glsa/202402-07
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.