Lucene search

K
rustsecRustsecRUSTSEC-2020-0148
HistoryDec 10, 2020 - 12:00 p.m.

Multiple soundness issues in `Ptr`

2020-12-1012:00:00
rustsec.org
6
ptr
soundness issues
send
sync
mutable alias rules
non-atomic writes
data races
threads
software

EPSS

0.001

Percentile

45.7%

Affected versions of this crate have the following issues:

  1. Ptr implements Send and Sync for all types, this can lead to data
    races by sending non-thread safe types across threads.

  2. Ptr::get violates mutable alias rules by returning multiple mutable
    references to the same object.

  3. Ptr::write uses non-atomic writes to the underlying pointer. This means
    that when used across threads it can lead to data races.

EPSS

0.001

Percentile

45.7%

Related for RUSTSEC-2020-0148