Advisory

GHSA-69fv-gw6g-8ccg

Also known as: CVE-2018-20998, RUSTSEC-2018-0011

Summary

Potential memory corruption in arrayfire

Details

The attribute repr() added to enums to be compatible with C-FFI caused memory corruption on MSVC toolchain.

arrayfire crates <= version 3.5.0 do not have this issue when used with Rust versions 1.27 or earlier. The issue only started to appear since Rust version 1.28.

The issue seems to be interlinked with which version of Rust is being used.

The issue was fixed in crate 3.6.0.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-08-25 20:43 UTC
Modified
2024-09-12 20:52 UTC

Affected packages and fixes

arrayfire

crates.io · All systems

Affected

  • introduced 0, fixed 3.6.0 (semver)

Fixed versions

3.6.0

Fix

  • Fixed version 3.6.0
    cargo update -p arrayfire --precise 3.6.0

arrayfire

PyPI · All systems

Affected

  • introduced 0, fixed 3.6.0 (ecosystem)

Fixed versions

3.6.0

Fix

  • Fixed version 3.6.0
    pip install --upgrade arrayfire==3.6.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences