Advisory

RUSTSEC-2020-0004

Also known as: CVE-2020-35859, GHSA-3933-wvjf-pcvc

Summary

sigstack allocation bug can cause memory corruption or leak

Details

An embedding using affected versions of lucet-runtime configured to use
non-default Wasm globals sizes of more than 4KiB, or compiled in debug mode
without optimizations, could leak data from the signal handler stack to guest
programs. This can potentially cause data from the embedding host to leak to
guest programs or cause corruption of guest program memory.

This flaw was resolved by correcting the sigstack allocation logic.

Severity

Critical Basis: CVSS v3 score 9.1, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Dates

Published
2020-01-24 12:00 UTC
Modified
2023-11-08 04:03 UTC

Affected packages and fixes

lucet-runtime-internals

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.3, introduced 0.5.0, fixed 0.5.1 (semver)

Fixed versions

0.4.3, 0.5.1

Fix

  • Fixed version 0.4.3
    cargo update -p lucet-runtime-internals --precise 0.4.3
  • Fixed version 0.5.1
    cargo update -p lucet-runtime-internals --precise 0.5.1

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: RustSec Advisory Database · CC0-1.0

Sources & licences