GHSA-9c9f-7x9p-4wqp json
A malicious coder can get unsound access to TCell or TLCell memory
published 4y ago modified 3y ago also RUSTSEC-2022-0007
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io qcell 0.4.3
Is GHSA-9c9f-7x9p-4wqp in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | qcell | <0.4.3 >=0.0.0-0, <0.4.3 |
0.4.3 |
References
-
github.com
/uazu/qcell/issues/20
web, report
-
github.com
/uazu/qcell
package
-
rustsec.org
/advisories/RUSTSEC-2022-0007.html
web, advisory
-
crates.io
/crates/qcell
package
Sources
- GitHub Advisory GHSA-9c9f-7x9p-4wqp
- OSV RUSTSEC-2022-0007
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.