# CVE-2022-42332

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-03-21 · Modified: 2025-02-13
- Aliases: ALPINE-CVE-2022-42332, UBUNTU-CVE-2022-42332, DEBIAN-CVE-2022-42332
- Record: https://cvemate.com/vulnerability/CVE-2022-42332 · JSON: https://cvemate.com/vulnerability/CVE-2022-42332/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.27%, percentile 20.51%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine xen (Alpine Linux): ≥ 3.2.0, \< 4.15.5-r0 \| ≥ 3.2.0, \< 4.16.4-r0 \| ≥ 3.2.0, \< 4.17.0-r5
- debian xen (Debian): \< 4.17.0+74-g3eac216e6e-1
- ubuntu xen (Ubuntu): All versions (No fix recorded)
- debian debian\_linux: 11.0
- fedoraproject fedora: 37 \| 38
- xen xen: ≥ 3.2.0 (No fix recorded)

## References

- <https://xenbits.xenproject.org/xsa/advisory-427.txt>
- <http://xenbits.xen.org/xsa/advisory-427.html>
- <http://www.openwall.com/lists/oss-security/2023/03/21/1>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APBMS2Q6746AXAFAITNJMGBNFGNMVLWR/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5L6PM4RE7MUE6OWA32ZVOXCP235RM2TM/>
- <https://www.debian.org/security/2023/dsa-5378>
- <https://security.gentoo.org/glsa/202402-07>
- <https://security.alpinelinux.org/vuln/CVE-2022-42332>
- <https://ubuntu.com/security/CVE-2022-42332>
- <https://www.openwall.com/lists/oss-security/2023/03/21/1>
- <https://xenbits.xen.org/xsa/advisory-427.html>
- <https://www.cve.org/CVERecord?id=CVE-2022-42332>
- <https://security-tracker.debian.org/tracker/CVE-2022-42332>

---

Data as of 2026-12-05T02:45:50.527Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
