CVE-2020-36203
Data races in reffers
Auswirkung
ARefss<'a, V> is a type that is assumed to contain objects that are Send + Sync. In the affected versions of this crate, Send/Sync traits are unconditionally implemented for ARefss<'a, V>. By using the ARefss::map() API, we can insert a !Send or !Sync object into ARefss<'a, V>. After that, it is possible to create a data race to the inner object of ARefss<'a, V>, which can lead to undefined behavior & memory corruption. The flaw was corrected in commit `6dd7ca0` by adding trait bound V: Send + Sync to ARefss::map() API.
Ein Angreifer kann die Lücke mit lokalem Zugriff auf das System ausnutzen, mit einem normalen Benutzerkonto, ohne Zutun eines Nutzers. Dafür müssen bestimmte Bedingungen erfüllt sein, was einen Angriff erschwert. Bei Erfolg: hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | reffers | < 0.6.1 | 0.6.1 |
Betroffene Produkte · Reffers Project
| Produkt | Betroffene Versionen |
|---|---|
| Reffers | bis einschließlich 2020-12-01 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://rustsec.org/advisories/RUSTSEC-2020-0094.html
- https://github.com/advisories/GHSA-39xg-8p43-h76x
- https://nvd.nist.gov/vuln/detail/CVE-2020-36203
- https://github.com/diwic/reffers-rs/issues/7
- https://github.com/diwic/reffers-rs/commit/6dd7ca0d50f2464df708975cdafcfaeeb6d41c66