{"id":"CVE-2022-42324","state":"PUBLISHED","title":"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 di","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.","publishedAt":"2022-11-01T00:00:00.000Z","updatedAt":"2024-08-03T13:03:45.972Z","severity":null,"assigner":"XEN","products":["Xen xen"],"affected":[{"vendor":"Xen","product":"xen","versions":[{"version":"consult Xen advisory XSA-420","status":"unknown"}]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T19:50:40.706Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/42xxx/CVE-2022-42324.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-42324","state":"PUBLISHED","datePublished":"2022-11-01T00:00:00.000Z","dateUpdated":"2024-08-03T13:03:45.972Z","assignerShortName":"XEN","assignerOrgId":"23aa2041-22e1-471f-9209-9b7396fa234f","dateReserved":"2022-10-03T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"Xen","product":"xen","versions":[{"version":"consult Xen advisory XSA-420","status":"unknown"}]}],"references":[{"url":"https://xenbits.xenproject.org/xsa/advisory-420.txt"},{"url":"http://xenbits.xen.org/xsa/advisory-420.html"},{"url":"http://www.openwall.com/lists/oss-security/2022/11/01/10","name":"[oss-security] 20221101 Xen Security Advisory 420 v2 (CVE-2022-42324) - Oxenstored 32->31 bit integer truncation issues","tags":["mailing-list"]},{"url":"https://www.debian.org/security/2022/dsa-5272","name":"DSA-5272","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZLI2NPNEH7CNJO3VZGQNOI4M4EWLNKPZ/","name":"FEDORA-2022-07438e12df","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YZVXG7OOOXCX6VIPEMLFDPIPUTFAYWPE/","name":"FEDORA-2022-99af00f60e","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YTMITQBGC23MSDHUCAPCVGLMVXIBXQTQ/","name":"FEDORA-2022-9f51d13fa3","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/202402-07","name":"GLSA-202402-07","tags":["vendor-advisory"]}],"metrics":[{"other":{"type":"unknown","content":{"description":{"description_data":[{"lang":"eng","value":"A malicious or buggy guest can write a packet into the xenstore ring\nwhich causes 32-bit builds of oxenstored to busy loop."}]}}}}],"problemTypes":[{"descriptions":[{"type":"text","lang":"en","description":"unknown"}]}],"providerMetadata":{"shortName":"XEN","orgId":"23aa2041-22e1-471f-9209-9b7396fa234f","dateUpdated":"2024-02-04T08:07:22.705Z"},"credits":[{"lang":"en","value":"{'credit_data': {'description': {'description_data': [{'lang': 'eng', 'value': 'This issue was discovered by Jürgen Groß of SUSE.'}]}}}"}]},"adp":[{"title":"CVE Program Container","references":[{"url":"https://xenbits.xenproject.org/xsa/advisory-420.txt","tags":["x_transferred"]},{"url":"http://xenbits.xen.org/xsa/advisory-420.html","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/01/10","name":"[oss-security] 20221101 Xen Security Advisory 420 v2 (CVE-2022-42324) - Oxenstored 32->31 bit integer truncation issues","tags":["mailing-list","x_transferred"]},{"url":"https://www.debian.org/security/2022/dsa-5272","name":"DSA-5272","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZLI2NPNEH7CNJO3VZGQNOI4M4EWLNKPZ/","name":"FEDORA-2022-07438e12df","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YZVXG7OOOXCX6VIPEMLFDPIPUTFAYWPE/","name":"FEDORA-2022-99af00f60e","tags":["vendor-advisory","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/YTMITQBGC23MSDHUCAPCVGLMVXIBXQTQ/","name":"FEDORA-2022-9f51d13fa3","tags":["vendor-advisory","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202402-07","name":"GLSA-202402-07","tags":["vendor-advisory","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T13:03:45.972Z"}}]}}}