{"api_version":"1","generated_at":"2026-04-22T21:39:10+00:00","cve":"CVE-2022-42332","urls":{"html":"https://cve.report/CVE-2022-42332","api":"https://cve.report/api/cve/CVE-2022-42332.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-42332","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-42332"},"summary":{"title":"CVE-2022-42332","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.","state":"PUBLIC","assigner":"security@xen.org","published_at":"2023-03-21 13:15:00","updated_at":"2024-02-04 08:15:00"},"problem_types":["CWE-416"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5L6PM4RE7MUE6OWA32ZVOXCP235RM2TM/","name":"FEDORA-2023-da8315e641","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 37 Update: xen-4.16.3-4.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APBMS2Q6746AXAFAITNJMGBNFGNMVLWR/","name":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APBMS2Q6746AXAFAITNJMGBNFGNMVLWR/","refsource":"MISC","tags":[],"title":"[SECURITY] Fedora 38 Update: xen-4.17.0-8.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://www.openwall.com/lists/oss-security/2023/03/21/1","name":"[oss-security] 20230321 Xen Security Advisory 427 v2 (CVE-2022-42332) - x86 shadow plus log-dirty mode use-after-free","refsource":"MLIST","tags":[],"title":"oss-security - Xen Security Advisory 427 v2 (CVE-2022-42332) - x86 shadow plus\n log-dirty mode use-after-free","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://security.gentoo.org/glsa/202402-07","name":"https://security.gentoo.org/glsa/202402-07","refsource":"","tags":[],"title":"Xen: Multiple Vulnerabilities (GLSA 202402-07) — Gentoo security","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/APBMS2Q6746AXAFAITNJMGBNFGNMVLWR/","name":"FEDORA-2023-703f133eb3","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 38 Update: xen-4.17.0-8.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5L6PM4RE7MUE6OWA32ZVOXCP235RM2TM/","name":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5L6PM4RE7MUE6OWA32ZVOXCP235RM2TM/","refsource":"MISC","tags":[],"title":"[SECURITY] Fedora 37 Update: xen-4.16.3-4.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://xenbits.xenproject.org/xsa/advisory-427.txt","name":"https://xenbits.xenproject.org/xsa/advisory-427.txt","refsource":"MISC","tags":[],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"404"},{"url":"http://xenbits.xen.org/xsa/advisory-427.html","name":"http://xenbits.xen.org/xsa/advisory-427.html","refsource":"CONFIRM","tags":[],"title":"XSA-427 - Xen Security Advisories","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.debian.org/security/2023/dsa-5378","name":"DSA-5378","refsource":"DEBIAN","tags":[],"title":"Debian -- Security Information -- DSA-5378-1 xen","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-42332","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42332","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"42332","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"debian","cpe5":"debian_linux","cpe6":"11.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"42332","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"37","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"42332","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"38","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"42332","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"xen","cpe5":"xen","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"x86","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-42332","qid":"181654","title":"Debian Security Update for xen (DSA 5378-1)"},{"cve":"CVE-2022-42332","qid":"182141","title":"Debian Security Update for xen (CVE-2022-42332)"},{"cve":"CVE-2022-42332","qid":"283819","title":"Fedora Security Update for xen (FEDORA-2023-da8315e641)"},{"cve":"CVE-2022-42332","qid":"283862","title":"Fedora Security Update for xen (FEDORA-2023-04b5338dd0)"},{"cve":"CVE-2022-42332","qid":"284230","title":"Fedora Security Update for xen (FEDORA-2023-703f133eb3)"},{"cve":"CVE-2022-42332","qid":"502992","title":"Alpine Linux Security Update for xen"},{"cve":"CVE-2022-42332","qid":"503145","title":"Alpine Linux Security Update for xen"},{"cve":"CVE-2022-42332","qid":"505966","title":"Alpine Linux Security Update for xen"},{"cve":"CVE-2022-42332","qid":"710858","title":"Gentoo Linux Xen Multiple Vulnerabilities (GLSA 202402-07)"},{"cve":"CVE-2022-42332","qid":"753820","title":"SUSE Enterprise Linux Security Update for xen (SUSE-SU-2023:0845-1)"},{"cve":"CVE-2022-42332","qid":"753822","title":"SUSE Enterprise Linux Security Update for xen (SUSE-SU-2023:0858-1)"},{"cve":"CVE-2022-42332","qid":"753825","title":"SUSE Enterprise Linux Security Update for xen (SUSE-SU-2023:0847-1)"},{"cve":"CVE-2022-42332","qid":"753827","title":"SUSE Enterprise Linux Security Update for xen (SUSE-SU-2023:0862-1)"},{"cve":"CVE-2022-42332","qid":"753833","title":"SUSE Enterprise Linux Security Update for xen (SUSE-SU-2023:0859-1)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-42332","ASSIGNER":"security@xen.org","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"unknown"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"Xen","product":{"product_data":[{"product_name":"xen","version":{"version_data":[{"version_value":"not down converted","x_cve_json_5_version_data":{"versions":[{"version":"consult Xen advisory XSA-427","status":"unknown"}]}}]}}]}}]}},"references":{"reference_data":[{"url":"https://xenbits.xenproject.org/xsa/advisory-427.txt","refsource":"MISC","name":"https://xenbits.xenproject.org/xsa/advisory-427.txt"},{"url":"https://www.debian.org/security/2023/dsa-5378","refsource":"MISC","name":"https://www.debian.org/security/2023/dsa-5378"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APBMS2Q6746AXAFAITNJMGBNFGNMVLWR/","refsource":"MISC","name":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/APBMS2Q6746AXAFAITNJMGBNFGNMVLWR/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5L6PM4RE7MUE6OWA32ZVOXCP235RM2TM/","refsource":"MISC","name":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5L6PM4RE7MUE6OWA32ZVOXCP235RM2TM/"},{"url":"http://xenbits.xen.org/xsa/advisory-427.html","refsource":"MISC","name":"http://xenbits.xen.org/xsa/advisory-427.html"},{"url":"http://www.openwall.com/lists/oss-security/2023/03/21/1","refsource":"MISC","name":"http://www.openwall.com/lists/oss-security/2023/03/21/1"}]},"credits":[{"lang":"en","value":"{'credit_data': {'description': {'description_data': [{'lang': 'eng', 'value': 'This issue was discovered by Jan Beulich of SUSE.'}]}}}"}]},"nvd":{"publishedDate":"2023-03-21 13:15:00","lastModifiedDate":"2024-02-04 08:15:00","problem_types":["CWE-416"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:xen:xen:*:*:*:*:*:*:x86:*","versionStartIncluding":"3.2.0","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}