{"id":"CVE-2022-23639","aliases":["CVE-2022-23639","GHSA-qc84-gqf4-9926","RUSTSEC-2022-0041"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Restriction of Operations within the Bounds of a Memory Buffer and Race Condition in crossbeam-utils","summary":"crossbeam-utils provides atomics, synchronization primitives, scoped threads, and other utilities for concurrent programming in Rust. crossbeam-utils prior to version 0.8.7 incorrectly assumed that the alignment of `{i,u}64` was always the same as `Atomic{I,U}64`. However, the alignment of `{i,u}64` on a 32-bit target can be smaller than `Atomic{I,U}64`. This can cause unaligned memory accesses and data race. Crates using `fetch_*` methods with `AtomicCell<{i,u}64>` are affected by this issue. 32-bit targets without `Atomic{I,U}64` and 64-bit targets are not affected by this issue. This has been fixed in crossbeam-utils 0.8.7. There are currently no known workarounds.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"crossbeam-utils provides atomics, synchronization primitives, scoped threads, and other utilities for concurrent programming in Rust. crossbeam-utils prior to version 0.8.7 incorrectly assumed that the alignment of `{i,u}64` was always the same as `Atomic{I,U}64`. However, the alignment of `{i,u}64` on a 32-bit target can be smaller than `Atomic{I,U}64`. This can cause unaligned memory accesses and data race. Crates using `fetch_*` methods with `AtomicCell<{i,u}64>` are affected by this issue. 32-bit targets without `Atomic{I,U}64` and 64-bit targets are not affected by this issue. This has been fixed in crossbeam-utils 0.8.7. There are currently no known workarounds.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe affected versions of this crate incorrectly assumed that the alignment of `{i,u}64` was always the same as `Atomic{I,U}64`. \n\nHowever, the alignment of `{i,u}64` on a 32-bit target can be smaller than `Atomic{I,U}64`.\n\nThis can cause the following problems:\n\n- Unaligned memory accesses\n- Data race\n\nCrates using `fetch_*` methods with `AtomicCell<{i,u}64>` are affected by this issue.\n\n32-bit targets without `Atomic{I,U}64` and 64-bit targets are not affected by this issue.\n32-bit targets with `Atomic{I,U}64` and `{i,u}64` have the same alignment are also not affected by this issue.\n\nThe following is a complete list of the builtin targets that may be affected. (last update: nightly-2022-02-11)\n\n- armv7-apple-ios (tier 3)\n- armv7s-apple-ios (tier 3)\n- i386-apple-ios (tier 3)\n- i586-unknown-linux-gnu\n- i586-unknown-linux-musl\n- i686-apple-darwin (tier 3)\n- i686-linux-android\n- i686-unknown-freebsd\n- i686-unknown-haiku (tier 3)\n- i686-unknown-linux-gnu\n- i686-unknown-linux-musl\n- i686-unknown-netbsd (tier 3)\n- i686-unknown-openbsd (tier 3)\n- i686-wrs-vxworks (tier 3)\n\n([script to get list](https://gist.github.com/taiki-e/3c7891e8c5f5e0cbcb44d7396aabfe10))\n\n### Patches\n\nThis has been fixed in crossbeam-utils 0.8.7.\n\nAffected 0.8.x releases have been yanked.\n\n### References\n\nhttps://github.com/crossbeam-rs/crossbeam/pull/781 \n\n### License\n\nThis advisory is in the public domain.","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Impact\n\nAffected versions of this crate incorrectly assumed that the alignment of {i,u}64 was always the same as Atomic{I,U}64.\n\nHowever, the alignment of {i,u}64 on a 32-bit target can be smaller than Atomic{I,U}64.\n\nThis can cause the following problems:\n\n- Unaligned memory accesses\n- Data race\n\nCrates using fetch_* methods with AtomicCell<{i,u}64> are affected by this issue.\n\n32-bit targets without Atomic{I,U}64 and 64-bit targets are not affected by this issue.\n\n32-bit targets with Atomic{I,U}64 and {i,u}64 have the same alignment are also not affected by this issue.\n\nThe following is a complete list of the builtin targets that may be affected. (last update: nightly-2022-02-11)\n\n- armv7-apple-ios (tier 3)\n- armv7s-apple-ios (tier 3)\n- i386-apple-ios (tier 3)\n- i586-unknown-linux-gnu\n- i586-unknown-linux-musl\n- i686-apple-darwin (tier 3)\n- i686-linux-android\n- i686-unknown-freebsd\n- i686-unknown-haiku (tier 3)\n- i686-unknown-linux-gnu\n- i686-unknown-linux-musl\n- i686-unknown-netbsd (tier 3)\n- i686-unknown-openbsd (tier 3)\n- i686-wrs-vxworks (tier 3)\n\n([script to get list](https://gist.github.com/taiki-e/3c7891e8c5f5e0cbcb44d7396aabfe10))\n\n## Patches\n\nThis has been fixed in crossbeam-utils 0.8.7.\n\nAffected 0.8.x releases have been yanked.\n\nThanks to [@taiki-e](https://github.com/taiki-e).","format":"markdown","source":"rustsec"},{"lang":"es","text":"crossbeam-utils proporciona atómicos, primitivas de sincronización, hilos de alcance y otras utilidades para la programación concurrente en Rust. crossbeam-utils versiones anteriores a 0.8.7, asumía incorrectamente que la alineación de \"{i,u}64\" era siempre la misma que \"Atomic{I,U}64\". Sin embargo, la alineación de \"{i,u}64\" en un objetivo de 32 bits puede ser menor que \"Atomic{I,U}64\". Esto puede causar accesos a memoria no alineados y carreras de datos. Los crates que usan métodos \"fetch_*\" con \"AtomicCell({i,u}64)\" están afectados por este problema. Los objetivos de 32 bits sin \"Atomic{I,U}64\" y los objetivos de 64 bits no están afectados por este problema. Esto ha sido corregido en crossbeam-utils versión 0.8.7. Actualmente no se presentan medidas de mitigación conocidas","source":"nvd"}],"published":"2022-02-05T12:00:00.000Z","modified":"2026-07-17T16:00:03.387Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"version":"< 0.8.7","status":"affected"}],"vendor":"crossbeam-rs","product":"crossbeam","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.7"}],"ecosystem":"crates.io","package":"crossbeam-utils","purl":"pkg:cargo/crossbeam-utils","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.8.7"}],"ecosystem":"crates.io","package":"crossbeam-utils","purl":"pkg:cargo/crossbeam-utils","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.8.7"}],"vendor":"crossbeam_project","product":"crossbeam","cpe":"cpe:2.3:a:crossbeam_project:crossbeam:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/crossbeam-rs/crossbeam/security/advisories/GHSA-qc84-gqf4-9926","tags":["exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/crossbeam-rs/crossbeam/pull/781","tags":["issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://github.com/crossbeam-rs/crossbeam/releases/tag/crossbeam-utils-0.8.7","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23639","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/crossbeam-rs/crossbeam","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0041.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/crossbeam-utils","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-04-22T15:44:27.286Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-23639","url":"https://www.cve.org/CVERecord?id=CVE-2022-23639","licence":"CVE Terms of Use","modified":"2025-04-22T18:22:02.437Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qc84-gqf4-9926","url":"https://github.com/advisories/GHSA-qc84-gqf4-9926","licence":"CC-BY-4.0","modified":"2025-02-04T17:30:19.000Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0041","url":"https://rustsec.org/advisories/RUSTSEC-2022-0041.html","licence":"CC0-1.0","modified":"2026-07-17T16:00:03.387Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-23639","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23639","licence":"Public domain","modified":"2026-06-17T04:30:32.423Z"}],"updatedAt":"2026-11-25T22:58:09.709Z","epss":{"score":0.01229,"percentile":0.6974,"date":"2026-12-01T12:00:22.000Z"}}