mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2025-12-28 23:36:15 +01:00
Merge pull request #778 from jonasbb/heapless
heapless: use-after-free when cloning partially consumed Iterator
This commit is contained in:
23
crates/heapless/RUSTSEC-0000-0000.md
Normal file
23
crates/heapless/RUSTSEC-0000-0000.md
Normal file
@@ -0,0 +1,23 @@
|
||||
```toml
|
||||
[advisory]
|
||||
id = "RUSTSEC-0000-0000"
|
||||
package = "heapless"
|
||||
date = "2010-11-02"
|
||||
url = "https://github.com/japaric/heapless/issues/181"
|
||||
categories = ["memory-corruption", "memory-exposure"]
|
||||
keywords = ["use-after-free"]
|
||||
informational = "unsound"
|
||||
|
||||
[affected.functions]
|
||||
"heapless::vec::IntoIter::clone" = ["<= 0.6"]
|
||||
|
||||
[versions]
|
||||
patched = []
|
||||
```
|
||||
|
||||
# Use-after-free when cloning a partially consumed `Vec` iterator
|
||||
|
||||
The `IntoIter` `Clone` implementation clones the whole underlying `Vec`.
|
||||
If the iterator is partially consumed the consumed items will be copied, thus creating a use-after-free access.
|
||||
|
||||
A proof of concept is available in the original bug report.
|
||||
Reference in New Issue
Block a user