Advisory

RUSTSEC-2022-0007

Also known as: GHSA-9c9f-7x9p-4wqp

Summary

A malicious coder can get unsound access to TCell or TLCell memory

Details

This is impossible to do by accident, but by carefully constructing
marker types to be covariant, a malicious coder can cheat the
singleton check in TCellOwner and TLCellOwner, giving unsound
access to cell memory. This could take the form of getting two
mutable references to the same memory, or a mutable reference and an
immutable reference.

The fix is for the crate to internally force the marker type to be
invariant. This blocks the conversion between covariant types which
Rust normally allows.

Severity

Not rated by the source.

Dates

Published
2022-01-24 12:00 UTC
Modified
2023-11-08 04:17 UTC

Affected packages and fixes

qcell

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.4.3 (semver)

Fixed versions

0.4.3

Fix

  • Fixed version 0.4.3
    cargo update -p qcell --precise 0.4.3

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