Vulnerability · Published Nov 1, 2022 · Assigned by XEN

CVE-2022-42324

Medium 5.5

In plain English

A medium-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 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.5Medium
Exploit odds (30 days)0.3%top 77.5% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

Oxenstored 32->31 bit integer truncation issues Integers in Ocaml are 63 or 31 bits of signed precision. The Ocaml Xenbus library takes a C uint32_t out of the ring and casts it directly to an Ocaml integer. In 64-bit Ocaml builds this is fine, but in 32-bit builds, it truncates off the most significant bit, and then creates unsigned/signed confusion in the remainder. This in turn can feed a negative value into logic not expecting a negative value, resulting in unexpected exceptions being thrown. The unexpected exception is not handled suitably, creating a busy-loop trying (and failing) to take the bad packet out of the xenstore ring.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20xen4.17.0-r0ALPINE-CVE-2022-42324
Alpine:v3.21xen4.17.0-r0ALPINE-CVE-2022-42324
Alpine:v3.22xen4.17.0-r0ALPINE-CVE-2022-42324
Alpine:v3.23xen4.17.0-r0ALPINE-CVE-2022-42324
Alpine:v3.24xen4.17.0-r0ALPINE-CVE-2022-42324
Debian:12xen4.16.2+90-g0d39a6d1ae-1DEBIAN-CVE-2022-42324
Debian:13xen4.16.2+90-g0d39a6d1ae-1DEBIAN-CVE-2022-42324
Debian:14xen4.16.2+90-g0d39a6d1ae-1DEBIAN-CVE-2022-42324
Ubuntu:22.04:LTSxenno fix listedUBUNTU-CVE-2022-42324
Ubuntu:24.04:LTSxenno fix listedUBUNTU-CVE-2022-42324
Ubuntu:25.10xenno fix listedUBUNTU-CVE-2022-42324
Ubuntu:26.04:LTSxenno fix listedUBUNTU-CVE-2022-42324
Ubuntu:26.10xenno fix listedUBUNTU-CVE-2022-42324

Affected products (as reported)

VendorProductVersions
Xen xen see references

References