Vulnerability · Published May 17, 2023 · Assigned by XEN

CVE-2022-42336

Low 3.3

In plain English

A low-severity security flaw in xen from Xen. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 19% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.3Low
Exploit odds (30 days)0.3%top 81.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20xen4.17.1-r1ALPINE-CVE-2022-42336
Alpine:v3.21xen4.17.1-r1ALPINE-CVE-2022-42336
Alpine:v3.22xen4.17.1-r1ALPINE-CVE-2022-42336
Alpine:v3.23xen4.17.1-r1ALPINE-CVE-2022-42336
Alpine:v3.24xen4.17.1-r1ALPINE-CVE-2022-42336
Debian:12xen4.17.1+2-gb773c48e36-1DEBIAN-CVE-2022-42336
Debian:13xen4.17.1+2-gb773c48e36-1DEBIAN-CVE-2022-42336
Debian:14xen4.17.1+2-gb773c48e36-1DEBIAN-CVE-2022-42336
Ubuntu:22.04:LTSxenno fix listedUBUNTU-CVE-2022-42336
Ubuntu:24.04:LTSxenno fix listedUBUNTU-CVE-2022-42336
Ubuntu:25.10xenno fix listedUBUNTU-CVE-2022-42336
Ubuntu:26.04:LTSxenno fix listedUBUNTU-CVE-2022-42336
Ubuntu:26.10xenno fix listedUBUNTU-CVE-2022-42336

Affected products (as reported)

VendorProductVersions
Xen xen see references

References