{"api_version":"1","generated_at":"2026-04-22T21:40:02+00:00","cve":"CVE-2022-42336","urls":{"html":"https://cve.report/CVE-2022-42336","api":"https://cve.report/api/cve/CVE-2022-42336.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-42336","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-42336"},"summary":{"title":"CVE-2022-42336","description":"Mishandling of guest SSBD selection on AMD hardware The current logic to set SSBD on AMD Family 17h and Hygon Family 18h processors requires that the setting of SSBD is coordinated at a core level, as the setting is shared between threads. Logic was introduced to keep track of how many threads require SSBD active in order to coordinate it, such logic relies on using a per-core counter of threads that have SSBD active. When running on the mentioned hardware, it's possible for a guest to under or overflow the thread counter, because each write to VIRT_SPEC_CTRL.SSBD by the guest gets propagated to the helper that does the per-core active accounting. Underflowing the counter causes the value to get saturated, and thus attempts for guests running on the same core to set SSBD won't have effect because the hypervisor assumes it's already active.","state":"PUBLIC","assigner":"security@xen.org","published_at":"2023-05-17 01:15:00","updated_at":"2023-11-07 03:53:00"},"problem_types":["NVD-CWE-noinfo"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTO3U3WYLAZW3KLPKJZ332FYUREXPZMQ/","name":"FEDORA-2023-8334fe0ecb","refsource":"","tags":[],"title":"[SECURITY] Fedora 38 Update: xen-4.17.1-2.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTO3U3WYLAZW3KLPKJZ332FYUREXPZMQ/","name":"FEDORA-2023-8334fe0ecb","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 38 Update: xen-4.17.1-2.fc38 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://xenbits.xenproject.org/xsa/advisory-431.txt","name":"https://xenbits.xenproject.org/xsa/advisory-431.txt","refsource":"MISC","tags":[],"title":"","mime":"text/plain","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-42336","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42336","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"42336","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"xen","cpe5":"xen","cpe6":"4.17","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"x86","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-42336","qid":"182265","title":"Debian Security Update for xen (CVE-2022-42336)"},{"cve":"CVE-2022-42336","qid":"284133","title":"Fedora Security Update for xen (FEDORA-2023-8334fe0ecb)"},{"cve":"CVE-2022-42336","qid":"503146","title":"Alpine Linux Security Update for xen"},{"cve":"CVE-2022-42336","qid":"505967","title":"Alpine Linux Security Update for xen"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@xen.org","ID":"CVE-2022-42336","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"xen","version":{"version_data":[{"version_affected":"?","version_value":"consult Xen advisory XSA-431"}]}}]},"vendor_name":"Xen"}]}},"configuration":{"configuration_data":{"description":{"description_data":[{"lang":"eng","value":"Only Xen version 4.17 is vulnerable.\n\nOnly x86 AMD systems are vulnerable.  The vulnerability can be leveraged\nby and affects only HVM guests."}]}}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Mishandling of guest SSBD selection on AMD hardware The current logic to set SSBD on AMD Family 17h and Hygon Family 18h processors requires that the setting of SSBD is coordinated at a core level, as the setting is shared between threads. Logic was introduced to keep track of how many threads require SSBD active in order to coordinate it, such logic relies on using a per-core counter of threads that have SSBD active. When running on the mentioned hardware, it's possible for a guest to under or overflow the thread counter, because each write to VIRT_SPEC_CTRL.SSBD by the guest gets propagated to the helper that does the per-core active accounting. Underflowing the counter causes the value to get saturated, and thus attempts for guests running on the same core to set SSBD won't have effect because the hypervisor assumes it's already active."}]},"impact":{"impact_data":{"description":{"description_data":[{"lang":"eng","value":"An attacker with control over a guest can mislead other guests into\nobserving SSBD active when it is not."}]}}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"unknown"}]}]},"references":{"reference_data":[{"url":"https://xenbits.xenproject.org/xsa/advisory-431.txt","refsource":"MISC","name":"https://xenbits.xenproject.org/xsa/advisory-431.txt"},{"refsource":"FEDORA","name":"FEDORA-2023-8334fe0ecb","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTO3U3WYLAZW3KLPKJZ332FYUREXPZMQ/"}]},"workaround":{"workaround_data":{"description":{"description_data":[{"lang":"eng","value":"Running PV guests only will prevent the vulnerability.\n\nSetting `spec-ctrl=ssbd` on the hypervisor command line will force SSBD\nto be unconditionally active."}]}}}},"nvd":{"publishedDate":"2023-05-17 01:15:00","lastModifiedDate":"2023-11-07 03:53:00","problem_types":["NVD-CWE-noinfo"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":3.3,"baseSeverity":"LOW"},"exploitabilityScore":1.8,"impactScore":1.4}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:xen:xen:4.17:*:*:*:*:*:x86:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}