CVE-2022-42324
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | xen | Fix pending | UBUNTU-CVE-2022-42324 | |
| Ubuntu 26.04 | xen | Under investigation | UBUNTU-CVE-2022-42324 | |
| Ubuntu 25.10 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2022-42324 | |
| Ubuntu 24.04 | xen | Under investigation | UBUNTU-CVE-2022-42324 | |
| Ubuntu 22.04 | xen | Under investigation | UBUNTU-CVE-2022-42324 | |
| Ubuntu 20.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2022-42324 | |
| Ubuntu 18.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2022-42324 | |
| Ubuntu 16.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | UBUNTU-CVE-2022-42324 | |
| Ubuntu 14.04 | xen | Will not fix hypervisor packages are in universe. For issues in the hypervisor, add appropriate tags to each section, ex: Tags_xen: universe-binary | ||
| Debian 14 | xen | Fixed | 4.16.2+90-g0d39a6d1ae-1 | DEBIAN-CVE-2022-42324 |
| Debian 13 | xen | Fixed | 4.16.2+90-g0d39a6d1ae-1 | DEBIAN-CVE-2022-42324 |
| Debian 12 | xen | Fixed | 4.16.2+90-g0d39a6d1ae-1 | DEBIAN-CVE-2022-42324 |
| Alpine Linux 3.24 | xen | Fixed | 4.17.0-r0 | ALPINE-CVE-2022-42324 |
| Alpine Linux 3.23 | xen | Fixed | 4.17.0-r0 | ALPINE-CVE-2022-42324 |
| Alpine Linux 3.22 | xen | Fixed | 4.17.0-r0 | ALPINE-CVE-2022-42324 |
| Alpine Linux 3.21 | xen | Fixed | 4.17.0-r0 | ALPINE-CVE-2022-42324 |
| Alpine Linux 3.20 | xen | Fixed | 4.17.0-r0 | ALPINE-CVE-2022-42324 |
| Alpine Linux 3.19 | xen | Fixed | 4.17.0-r0 | ALPINE-CVE-2022-42324 |
| Alpine Linux 3.18 | xen | Fixed | 4.17.0-r0 | ALPINE-CVE-2022-42324 |
| Alpine Linux 3.15 | xen | Fixed | 4.15.4-r0 | ALPINE-CVE-2022-42324 |
| Alpine Linux 3.14 | xen | Fixed | 4.15.4-r0 | ALPINE-CVE-2022-42324 |
What the vendor says
As published in the CVE record by XEN, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- xen
Vendor advisories:
- https://www.debian.org/security/2022/dsa-5272 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202402-07 (vendor-advisory)
References
- https://xenbits.xenproject.org/xsa/advisory-420.txt
- http://xenbits.xen.org/xsa/advisory-420.html
- http://www.openwall.com/lists/oss-security/2022/11/01/10
- https://www.debian.org/security/2022/dsa-5272
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZLI2NPNEH7CNJO3VZGQNOI4M4EWLNKPZ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YZVXG7OOOXCX6VIPEMLFDPIPUTFAYWPE/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YTMITQBGC23MSDHUCAPCVGLMVXIBXQTQ/
- https://security.gentoo.org/glsa/202402-07
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.