kritisch9.8
CVE-2021-28034
Double free in stack_dst
Auswirkung
Affected versions of stack_dst used a push_inner function that increased the internal length of the array and then called val.clone(). If the val.clone() call panics, the stack could drop an already dropped element or drop uninitialized memory. This issue was fixed in `2a4d538` by increasing the length of the array after elements are cloned.
Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, ohne Zutun eines Nutzers. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden, hohes Risiko, dass Daten oder Systeme verändert werden, hohes Risiko für Ausfälle.
Betroffene Pakete
| Ökosystem | Paket | Betroffen | Behoben in |
|---|---|---|---|
| rust | stack_dst | < 0.6.1 | 0.6.1 |
Betroffene Produkte · Stack Dst Project
| Produkt | Betroffene Versionen |
|---|---|
| Stack Dst | vor 0.6.1 |
Schwachstellenklasse
Referenzen
- NVD-Eintrag
- CVE.org-Eintrag
- GitHub-Advisory
- https://rustsec.org/advisories/RUSTSEC-2021-0033.html
- https://github.com/advisories/GHSA-8mjx-h23h-w2pg
- https://nvd.nist.gov/vuln/detail/CVE-2021-28034
- https://github.com/thepowersgang/stack_dst-rs/commit/2a4d53809e3000f40085f2b229b6b1a33759881d
- https://github.com/thepowersgang/stack_dst-rs/issues/5
- https://github.com/thepowersgang/stack_dst-rs/commit/2a4d538