QID 996226

Date Published: 2023-12-13

QID 996226: Rust (Rust) Security Update for cranelift-codegen (GHSA-xm67-587q-r2vw)

Wasmtime's code generation backend, Cranelift, has a bug on x86_64 platforms for the WebAssembly i8x16.select instruction which will produce the wrong results when the same operand is provided to the instruction and some of the selected indices are greater than 16. There is an off-by-one error in the calculation of the mask to the pshufb instruction which causes incorrect results to be returned if lanes are selected from the second vector.

Successful exploitation of this vulnerability could lead to a security breach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Medium - 4.3 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Refer to Github security advisory GHSA-xm67-587q-r2vw for updates and patch information.
    Vendor References

    CVEs related to QID 996226

    Software Advisories
    Advisory ID Software Component Link
    GHSA-xm67-587q-r2vw cranelift-codegen URL Logo github.com/advisories/GHSA-xm67-587q-r2vw